diff --git a/api_specs/service.openapi.yaml b/api_specs/service.openapi.yaml index fb47a28..64028b5 100644 --- a/api_specs/service.openapi.yaml +++ b/api_specs/service.openapi.yaml @@ -2052,7 +2052,7 @@ components: properties: to: type: string - pattern: ^(0x)?[0-9a-fA-F]{40}$ + pattern: ^$|^(0x)?[0-9a-fA-F]{40}$ calldata: type: string value: diff --git a/api_specs/wallet.openapi.yaml b/api_specs/wallet.openapi.yaml index 5103f6a..475820e 100644 --- a/api_specs/wallet.openapi.yaml +++ b/api_specs/wallet.openapi.yaml @@ -2903,8 +2903,8 @@ components: type: string description: Intent to create a vault enum: - - create - - preview + - Create + - Preview example: "Create" planName: type: string diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..4255030 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,3 @@ +export * as Service from "./service"; +export * as Wallet from "./wallet"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/esm/index.d.ts.map b/dist/esm/index.d.ts.map new file mode 100644 index 0000000..4330022 --- /dev/null +++ b/dist/esm/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..f994f99 --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,3 @@ +export * as Service from "./service"; +export * as Wallet from "./wallet"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/index.js.map b/dist/esm/index.js.map new file mode 100644 index 0000000..42c55f2 --- /dev/null +++ b/dist/esm/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api.d.ts b/dist/esm/service/api.d.ts new file mode 100644 index 0000000..404e835 --- /dev/null +++ b/dist/esm/service/api.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AccountsApi from './api/accounts-api'; +export * as AddressesApi from './api/addresses-api'; +export * as BorrowsApi from './api/borrows-api'; +export * as CollectorApi from './api/collector-api'; +export * as DepositsApi from './api/deposits-api'; +export * as IlksApi from './api/ilks-api'; +export * as LendingPoolApi from './api/lending-pool-api'; +export * as LogsApi from './api/logs-api'; +export * as OrdersApi from './api/orders-api'; +export * as PermitApi from './api/permit-api'; +export * as PointsApi from './api/points-api'; +export * as PricesApi from './api/prices-api'; +export * as StableCoinSystemApi from './api/stable-coin-system-api'; +export * as StakingApi from './api/staking-api'; +export * as SwapApi from './api/swap-api'; +export * as VaultsApi from './api/vaults-api'; +export * as WebsocketApi from './api/websocket-api'; +//# sourceMappingURL=api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api.d.ts.map b/dist/esm/service/api.d.ts.map new file mode 100644 index 0000000..7b20a87 --- /dev/null +++ b/dist/esm/service/api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/service/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api.js b/dist/esm/service/api.js new file mode 100644 index 0000000..5740df2 --- /dev/null +++ b/dist/esm/service/api.js @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AccountsApi from './api/accounts-api'; +export * as AddressesApi from './api/addresses-api'; +export * as BorrowsApi from './api/borrows-api'; +export * as CollectorApi from './api/collector-api'; +export * as DepositsApi from './api/deposits-api'; +export * as IlksApi from './api/ilks-api'; +export * as LendingPoolApi from './api/lending-pool-api'; +export * as LogsApi from './api/logs-api'; +export * as OrdersApi from './api/orders-api'; +export * as PermitApi from './api/permit-api'; +export * as PointsApi from './api/points-api'; +export * as PricesApi from './api/prices-api'; +export * as StableCoinSystemApi from './api/stable-coin-system-api'; +export * as StakingApi from './api/staking-api'; +export * as SwapApi from './api/swap-api'; +export * as VaultsApi from './api/vaults-api'; +export * as WebsocketApi from './api/websocket-api'; +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/esm/service/api.js.map b/dist/esm/service/api.js.map new file mode 100644 index 0000000..350a9a2 --- /dev/null +++ b/dist/esm/service/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/service/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/accounts-api.d.ts b/dist/esm/service/api/accounts-api.d.ts new file mode 100644 index 0000000..3451bfe --- /dev/null +++ b/dist/esm/service/api/accounts-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Account } from '../model'; +/** + * AccountsApi - axios parameter creator + * @export + */ +export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress: (address: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AccountsApi - functional programming interface + * @export + */ +export declare const AccountsApiFp: (configuration?: Configuration) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AccountsApi - factory interface + * @export + */ +export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AccountsApi - interface + * @export + * @interface AccountsApi + */ +export interface AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApiInterface + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AccountsApi - object-oriented interface + * @export + * @class AccountsApi + * @extends {BaseAPI} + */ +export declare class AccountsApi extends BaseAPI implements AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApi + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=accounts-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/accounts-api.d.ts.map b/dist/esm/service/api/accounts-api.d.ts.map new file mode 100644 index 0000000..47dc69b --- /dev/null +++ b/dist/esm/service/api/accounts-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"accounts-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/accounts-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mBAA6B,aAAa;IAE3E;;;;;;OAMG;mCACkC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4B9G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAA4B,aAAa;IAG3D;;;;;;OAMG;iCACgC,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;CAOhK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG3G;;;;;;OAMG;iCAC0B,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC;CAInG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;OAOG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAEhG;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;;OAOG;IACI,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9E"} \ No newline at end of file diff --git a/dist/esm/service/api/accounts-api.js b/dist/esm/service/api/accounts-api.js new file mode 100644 index 0000000..5476b14 --- /dev/null +++ b/dist/esm/service/api/accounts-api.js @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * AccountsApi - axios parameter creator + * @export + */ +export const AccountsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress: (address_1, ...args_1) => __awaiter(this, [address_1, ...args_1], void 0, function* (address, options = {}) { + // verify required parameter 'address' is not null or undefined + assertParamExists('getAccountByAddress', 'address', address); + const localVarPath = `/v2/accounts/{address}` + .replace(`{${"address"}}`, encodeURIComponent(String(address))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * AccountsApi - functional programming interface + * @export + */ +export const AccountsApiFp = function (configuration) { + const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration); + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountByAddress(address, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountsApi.getAccountByAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * AccountsApi - factory interface + * @export + */ +export const AccountsApiFactory = function (configuration, basePath, axios) { + const localVarFp = AccountsApiFp(configuration); + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address, options) { + return localVarFp.getAccountByAddress(address, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * AccountsApi - object-oriented interface + * @export + * @class AccountsApi + * @extends {BaseAPI} + */ +export class AccountsApi extends BaseAPI { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApi + */ + getAccountByAddress(address, options) { + return AccountsApiFp(this.configuration).getAccountByAddress(address, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=accounts-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/accounts-api.js.map b/dist/esm/service/api/accounts-api.js.map new file mode 100644 index 0000000..001722a --- /dev/null +++ b/dist/esm/service/api/accounts-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"accounts-api.js","sourceRoot":"","sources":["../../../../src/service/api/accounts-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACH;;;;;;WAMG;QACH,mBAAmB,EAAE,uBAAmF,EAAE,4DAA9E,OAAe,EAAE,UAAiC,EAAE;YAC5E,+DAA+D;YAC/D,iBAAiB,CAAC,qBAAqB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YAC5D,MAAM,YAAY,GAAG,wBAAwB;iBACxC,OAAO,CAAC,IAAI,SAAS,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACpE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cA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,EAAE,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC/G,MAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,CAAA;IAC/C,OAAO;QACH;;;;;;WAMG;QACH,mBAAmB,CAAC,OAAe,EAAE,OAA+B;YAChE,OAAO,UAAU,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACxG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IACpC;;;;;;;OAOG;IACI,mBAAmB,CAAC,OAAe,EAAE,OAA+B;QACvE,OAAO,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/addresses-api.d.ts b/dist/esm/service/api/addresses-api.d.ts new file mode 100644 index 0000000..eb8ee61 --- /dev/null +++ b/dist/esm/service/api/addresses-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AddressResponse } from '../model'; +/** + * AddressesApi - axios parameter creator + * @export + */ +export declare const AddressesApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses: (format?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AddressesApi - functional programming interface + * @export + */ +export declare const AddressesApiFp: (configuration?: Configuration) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AddressesApi - factory interface + * @export + */ +export declare const AddressesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AddressesApi - interface + * @export + * @interface AddressesApi + */ +export interface AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApiInterface + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AddressesApi - object-oriented interface + * @export + * @class AddressesApi + * @extends {BaseAPI} + */ +export declare class AddressesApi extends BaseAPI implements AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=addresses-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/addresses-api.d.ts.map b/dist/esm/service/api/addresses-api.d.ts.map new file mode 100644 index 0000000..e25a9b8 --- /dev/null +++ b/dist/esm/service/api/addresses-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"addresses-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/addresses-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;;OAMG;+BAC8B,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6B1G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA4B,aAAa;IAG5D;;;;;;OAMG;6BAC4B,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,eAAe,CAAC,CAAC;CAOpK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG5G;;;;;;OAMG;6BACsB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,eAAe,CAAC;CAIvG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;OAOG;IACH,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;CAEpG;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;;OAOG;IACI,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG1E"} \ No newline at end of file diff --git a/dist/esm/service/api/addresses-api.js b/dist/esm/service/api/addresses-api.js new file mode 100644 index 0000000..5783dda --- /dev/null +++ b/dist/esm/service/api/addresses-api.js @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * AddressesApi - axios parameter creator + * @export + */ +export const AddressesApiAxiosParamCreator = function (configuration) { + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses: (format_1, ...args_1) => __awaiter(this, [format_1, ...args_1], void 0, function* (format, options = {}) { + const localVarPath = `/v2/addresses`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * AddressesApi - functional programming interface + * @export + */ +export const AddressesApiFp = function (configuration) { + const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration); + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllAddresses(format, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AddressesApi.getAllAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * AddressesApi - factory interface + * @export + */ +export const AddressesApiFactory = function (configuration, basePath, axios) { + const localVarFp = AddressesApiFp(configuration); + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format, options) { + return localVarFp.getAllAddresses(format, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * AddressesApi - object-oriented interface + * @export + * @class AddressesApi + * @extends {BaseAPI} + */ +export class AddressesApi extends BaseAPI { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + getAllAddresses(format, options) { + return AddressesApiFp(this.configuration).getAllAddresses(format, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=addresses-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/addresses-api.js.map b/dist/esm/service/api/addresses-api.js.map new file mode 100644 index 0000000..a865e93 --- /dev/null +++ b/dist/esm/service/api/addresses-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"addresses-api.js","sourceRoot":"","sources":["../../../../src/service/api/addresses-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;;WAMG;QACH,eAAe,EAAE,sBAAmF,EAAE,2DAA9E,MAAe,EAAE,UAAiC,EAAE;YACxE,MAAM,YAAY,GAAG,eAAe,CAAC;YACrC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,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,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAChH,MAAM,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;;WAMG;QACH,eAAe,CAAC,MAAe,EAAE,OAA+B;YAC5D,OAAO,UAAU,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACnG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,YAAa,SAAQ,OAAO;IACrC;;;;;;;OAOG;IACI,eAAe,CAAC,MAAe,EAAE,OAA+B;QACnE,OAAO,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/borrows-api.d.ts b/dist/esm/service/api/borrows-api.d.ts new file mode 100644 index 0000000..eb1f0da --- /dev/null +++ b/dist/esm/service/api/borrows-api.d.ts @@ -0,0 +1,106 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { UserBorrowsResponse } from '../model'; +/** + * BorrowsApi - axios parameter creator + * @export + */ +export declare const BorrowsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * BorrowsApi - functional programming interface + * @export + */ +export declare const BorrowsApiFp: (configuration?: Configuration) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * BorrowsApi - factory interface + * @export + */ +export declare const BorrowsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * BorrowsApi - interface + * @export + * @interface BorrowsApi + */ +export interface BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * BorrowsApi - object-oriented interface + * @export + * @class BorrowsApi + * @extends {BaseAPI} + */ +export declare class BorrowsApi extends BaseAPI implements BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApi + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=borrows-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/borrows-api.d.ts.map b/dist/esm/service/api/borrows-api.d.ts.map new file mode 100644 index 0000000..290ed69 --- /dev/null +++ b/dist/esm/service/api/borrows-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"borrows-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/borrows-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;;;;OASG;4BAC2B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyC1J,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;;;;OASG;0BACyB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAOxN,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;;;;OASG;0BACmB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC;CAI3J,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAExJ;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG1H"} \ No newline at end of file diff --git a/dist/esm/service/api/borrows-api.js b/dist/esm/service/api/borrows-api.js new file mode 100644 index 0000000..025c6a8 --- /dev/null +++ b/dist/esm/service/api/borrows-api.js @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * BorrowsApi - axios parameter creator + * @export + */ +export const BorrowsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/borrows`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * BorrowsApi - functional programming interface + * @export + */ +export const BorrowsApiFp = function (configuration) { + const localVarAxiosParamCreator = BorrowsApiAxiosParamCreator(configuration); + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BorrowsApi.getUserBorrows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * BorrowsApi - factory interface + * @export + */ +export const BorrowsApiFactory = function (configuration, basePath, axios) { + const localVarFp = BorrowsApiFp(configuration); + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * BorrowsApi - object-oriented interface + * @export + * @class BorrowsApi + * @extends {BaseAPI} + */ +export class BorrowsApi extends BaseAPI { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApi + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return BorrowsApiFp(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=borrows-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/borrows-api.js.map b/dist/esm/service/api/borrows-api.js.map new file mode 100644 index 0000000..905ad3c --- /dev/null +++ b/dist/esm/service/api/borrows-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"borrows-api.js","sourceRoot":"","sources":["../../../../src/service/api/borrows-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;;;;WASG;QACH,cAAc,EAAE,kDAAoI,EAAE,uFAA/H,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,UAAiC,EAAE;YACxH,MAAM,YAAY,GAAG,yBAAyB,CAAC;YAC/C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,I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AAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACnH,OAAO,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/collector-api.d.ts b/dist/esm/service/api/collector-api.d.ts new file mode 100644 index 0000000..1538f02 --- /dev/null +++ b/dist/esm/service/api/collector-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Stats } from '../model'; +/** + * CollectorApi - axios parameter creator + * @export + */ +export declare const CollectorApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * CollectorApi - functional programming interface + * @export + */ +export declare const CollectorApiFp: (configuration?: Configuration) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * CollectorApi - factory interface + * @export + */ +export declare const CollectorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * CollectorApi - interface + * @export + * @interface CollectorApi + */ +export interface CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * CollectorApi - object-oriented interface + * @export + * @class CollectorApi + * @extends {BaseAPI} + */ +export declare class CollectorApi extends BaseAPI implements CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApi + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=collector-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/collector-api.d.ts.map b/dist/esm/service/api/collector-api.d.ts.map new file mode 100644 index 0000000..459ac8b --- /dev/null +++ b/dist/esm/service/api/collector-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"collector-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/collector-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;OAKG;iCAC+B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyB1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA4B,aAAa;IAG5D;;;;;OAKG;+BAC8B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC;CAO1I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG5G;;;;;OAKG;+BACwB,qBAAqB,GAAG,YAAY,CAAC,KAAK,CAAC;CAI7E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;CAE1E;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;OAMG;IACI,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG1D"} \ No newline at end of file diff --git a/dist/esm/service/api/collector-api.js b/dist/esm/service/api/collector-api.js new file mode 100644 index 0000000..29477b6 --- /dev/null +++ b/dist/esm/service/api/collector-api.js @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * CollectorApi - axios parameter creator + * @export + */ +export const CollectorApiAxiosParamCreator = function (configuration) { + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/stats`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * CollectorApi - functional programming interface + * @export + */ +export const CollectorApiFp = function (configuration) { + const localVarAxiosParamCreator = CollectorApiAxiosParamCreator(configuration); + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectorApi.getCollectorData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * CollectorApi - factory interface + * @export + */ +export const CollectorApiFactory = function (configuration, basePath, axios) { + const localVarFp = CollectorApiFp(configuration); + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * CollectorApi - object-oriented interface + * @export + * @class CollectorApi + * @extends {BaseAPI} + */ +export class CollectorApi extends BaseAPI { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApi + */ + getCollectorData(options) { + return CollectorApiFp(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=collector-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/collector-api.js.map b/dist/esm/service/api/collector-api.js.map new file mode 100644 index 0000000..d21dc13 --- /dev/null +++ b/dist/esm/service/api/collector-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"collector-api.js","sourceRoot":"","sources":["../../../../src/service/api/collector-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAAE;YACxD,MAAM,YAAY,GAAG,WAAW,CAAC;YACjC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KA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,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAChH,MAAM,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,CAAC,OAA+B;YAC5C,OAAO,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAmBF;;;;;GAKG;AACH,MAAM,OAAO,YAAa,SAAQ,OAAO;IACrC;;;;;;OAMG;IACI,gBAAgB,CAAC,OAA+B;QACnD,OAAO,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/deposits-api.d.ts b/dist/esm/service/api/deposits-api.d.ts new file mode 100644 index 0000000..dda61e5 --- /dev/null +++ b/dist/esm/service/api/deposits-api.d.ts @@ -0,0 +1,106 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { UserDepositsResponse } from '../model'; +/** + * DepositsApi - axios parameter creator + * @export + */ +export declare const DepositsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * DepositsApi - functional programming interface + * @export + */ +export declare const DepositsApiFp: (configuration?: Configuration) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * DepositsApi - factory interface + * @export + */ +export declare const DepositsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * DepositsApi - interface + * @export + * @interface DepositsApi + */ +export interface DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * DepositsApi - object-oriented interface + * @export + * @class DepositsApi + * @extends {BaseAPI} + */ +export declare class DepositsApi extends BaseAPI implements DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApi + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=deposits-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/deposits-api.d.ts.map b/dist/esm/service/api/deposits-api.d.ts.map new file mode 100644 index 0000000..512bfc1 --- /dev/null +++ b/dist/esm/service/api/deposits-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deposits-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/deposits-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mBAA6B,aAAa;IAE3E;;;;;;;;;OASG;6BAC4B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyC3J,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAA4B,aAAa;IAG3D;;;;;;;;;OASG;2BAC0B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAO1N,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG3G;;;;;;;;;OASG;2BACoB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAI7J,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAE1J;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3H"} \ No newline at end of file diff --git a/dist/esm/service/api/deposits-api.js b/dist/esm/service/api/deposits-api.js new file mode 100644 index 0000000..4d879cc --- /dev/null +++ b/dist/esm/service/api/deposits-api.js @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * DepositsApi - axios parameter creator + * @export + */ +export const DepositsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/deposits`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * DepositsApi - functional programming interface + * @export + */ +export const DepositsApiFp = function (configuration) { + const localVarAxiosParamCreator = DepositsApiAxiosParamCreator(configuration); + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DepositsApi.getUserDeposits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * DepositsApi - factory interface + * @export + */ +export const DepositsApiFactory = function (configuration, basePath, axios) { + const localVarFp = DepositsApiFp(configuration); + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * DepositsApi - object-oriented interface + * @export + * @class DepositsApi + * @extends {BaseAPI} + */ +export class DepositsApi extends BaseAPI { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApi + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return DepositsApiFp(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=deposits-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/deposits-api.js.map b/dist/esm/service/api/deposits-api.js.map new file mode 100644 index 0000000..a12b34a --- /dev/null +++ b/dist/esm/service/api/deposits-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposits-api.js","sourceRoot":"","sources":["../../../../src/service/api/deposits-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACH;;;;;;;;;WASG;QACH,eAAe,EAAE,kDAAoI,EAAE,uFAA/H,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,UAAiC,EAAE;YACzH,MAAM,YAAY,GAAG,0BAA0B,CAAC;YAChD,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5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a,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1J,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/ilks-api.d.ts b/dist/esm/service/api/ilks-api.d.ts new file mode 100644 index 0000000..354c0a8 --- /dev/null +++ b/dist/esm/service/api/ilks-api.d.ts @@ -0,0 +1,129 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Ilk } from '../model'; +import type { IlksResponse } from '../model'; +/** + * IlksApi - axios parameter creator + * @export + */ +export declare const IlksApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * IlksApi - functional programming interface + * @export + */ +export declare const IlksApiFp: (configuration?: Configuration) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * IlksApi - factory interface + * @export + */ +export declare const IlksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * IlksApi - interface + * @export + * @interface IlksApi + */ +export interface IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * IlksApi - object-oriented interface + * @export + * @class IlksApi + * @extends {BaseAPI} + */ +export declare class IlksApi extends BaseAPI implements IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=ilks-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/ilks-api.d.ts.map b/dist/esm/service/api/ilks-api.d.ts.map new file mode 100644 index 0000000..d66cdea --- /dev/null +++ b/dist/esm/service/api/ilks-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/ilks-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;OAKG;2BACyB,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAwB7E;;;;;;OAMG;yBACwB,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4BpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;OAKG;yBACwB,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;IAMpI;;;;;;OAMG;uBACsB,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC;CAOlJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;OAKG;yBACkB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;IAGvE;;;;;;OAMG;uBACgB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,GAAG,CAAC;CAIrF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAExE;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;CAElF;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;OAMG;IACI,UAAU,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAIjD;;;;;;;OAOG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGpE"} \ No newline at end of file diff --git a/dist/esm/service/api/ilks-api.js b/dist/esm/service/api/ilks-api.js new file mode 100644 index 0000000..c5e8da8 --- /dev/null +++ b/dist/esm/service/api/ilks-api.js @@ -0,0 +1,183 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * IlksApi - axios parameter creator + * @export + */ +export const IlksApiAxiosParamCreator = function (configuration) { + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ilks`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + // verify required parameter 'name' is not null or undefined + assertParamExists('getIlkByName', 'name', name); + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * IlksApi - functional programming interface + * @export + */ +export const IlksApiFp = function (configuration) { + const localVarAxiosParamCreator = IlksApiAxiosParamCreator(configuration); + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IlksApi.getAllIlks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IlksApi.getIlkByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * IlksApi - factory interface + * @export + */ +export const IlksApiFactory = function (configuration, basePath, axios) { + const localVarFp = IlksApiFp(configuration); + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * IlksApi - object-oriented interface + * @export + * @class IlksApi + * @extends {BaseAPI} + */ +export class IlksApi extends BaseAPI { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getAllIlks(options) { + return IlksApiFp(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getIlkByName(name, options) { + return IlksApiFp(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=ilks-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/ilks-api.js.map b/dist/esm/service/api/ilks-api.js.map new file mode 100644 index 0000000..7d52386 --- /dev/null +++ b/dist/esm/service/api/ilks-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-api.js","sourceRoot":"","sources":["../../../../src/service/api/ilks-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,S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IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC9F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AA6BF;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAChC;;;;;;OAMG;IACI,UAAU,CAAC,OAA+B;QAC7C,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnH,CAAC;IAED;;;;;;;OAOG;IACI,YAAY,CAAC,IAAY,EAAE,OAA+B;QAC7D,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/lending-pool-api.d.ts b/dist/esm/service/api/lending-pool-api.d.ts new file mode 100644 index 0000000..458735b --- /dev/null +++ b/dist/esm/service/api/lending-pool-api.d.ts @@ -0,0 +1,427 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { FormattedReserveData } from '../model'; +import type { LendingpoolBorrowTxRequest } from '../model'; +import type { LendingpoolBorrowTxResponse } from '../model'; +import type { LendingpoolDepositTxRequest } from '../model'; +import type { LendingpoolDepositTxResponse } from '../model'; +import type { LendingpoolRepayTxRequest } from '../model'; +import type { LendingpoolRepayTxResponse } from '../model'; +import type { LendingpoolUseAssetAsCollateralTxRequest } from '../model'; +import type { LendingpoolUseAssetAsCollateralTxResponse } from '../model'; +import type { LendingpoolWithdrawTxRequest } from '../model'; +import type { LendingpoolWithdrawTxResponse } from '../model'; +import type { UserBorrowsResponse } from '../model'; +import type { UserDepositsResponse } from '../model'; +/** + * LendingPoolApi - axios parameter creator + * @export + */ +export declare const LendingPoolApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow: (lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit: (lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay: (lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw: (lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset: (asset?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral: (lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LendingPoolApi - functional programming interface + * @export + */ +export declare const LendingPoolApiFp: (configuration?: Configuration) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LendingPoolApi - factory interface + * @export + */ +export declare const LendingPoolApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LendingPoolApi - interface + * @export + * @interface LendingPoolApi + */ +export interface LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LendingPoolApi - object-oriented interface + * @export + * @class LendingPoolApi + * @extends {BaseAPI} + */ +export declare class LendingPoolApi extends BaseAPI implements LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=lending-pool-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/lending-pool-api.d.ts.map b/dist/esm/service/api/lending-pool-api.d.ts.map new file mode 100644 index 0000000..aa559a8 --- /dev/null +++ b/dist/esm/service/api/lending-pool-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lending-pool-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/lending-pool-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBA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git a/dist/esm/service/api/lending-pool-api.js b/dist/esm/service/api/lending-pool-api.js new file mode 100644 index 0000000..6338427 --- /dev/null +++ b/dist/esm/service/api/lending-pool-api.js @@ -0,0 +1,633 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * LendingPoolApi - axios parameter creator + * @export + */ +export const LendingPoolApiAxiosParamCreator = function (configuration) { + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow: (lendingpoolBorrowTxRequest_1, ...args_1) => __awaiter(this, [lendingpoolBorrowTxRequest_1, ...args_1], void 0, function* (lendingpoolBorrowTxRequest, options = {}) { + // verify required parameter 'lendingpoolBorrowTxRequest' is not null or undefined + assertParamExists('createLendingPoolBorrow', 'lendingpoolBorrowTxRequest', lendingpoolBorrowTxRequest); + const localVarPath = `/v2/lendingpool/tx/borrow`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolBorrowTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit: (lendingpoolDepositTxRequest_1, ...args_1) => __awaiter(this, [lendingpoolDepositTxRequest_1, ...args_1], void 0, function* (lendingpoolDepositTxRequest, options = {}) { + // verify required parameter 'lendingpoolDepositTxRequest' is not null or undefined + assertParamExists('createLendingPoolDeposit', 'lendingpoolDepositTxRequest', lendingpoolDepositTxRequest); + const localVarPath = `/v2/lendingpool/tx/deposit`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolDepositTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay: (lendingpoolRepayTxRequest_1, ...args_1) => __awaiter(this, [lendingpoolRepayTxRequest_1, ...args_1], void 0, function* (lendingpoolRepayTxRequest, options = {}) { + // verify required parameter 'lendingpoolRepayTxRequest' is not null or undefined + assertParamExists('createLendingPoolRepay', 'lendingpoolRepayTxRequest', lendingpoolRepayTxRequest); + const localVarPath = `/v2/lendingpool/tx/repay`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolRepayTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw: (lendingpoolWithdrawTxRequest_1, ...args_1) => __awaiter(this, [lendingpoolWithdrawTxRequest_1, ...args_1], void 0, function* (lendingpoolWithdrawTxRequest, options = {}) { + // verify required parameter 'lendingpoolWithdrawTxRequest' is not null or undefined + assertParamExists('createLendingPoolWithdraw', 'lendingpoolWithdrawTxRequest', lendingpoolWithdrawTxRequest); + const localVarPath = `/v2/lendingpool/tx/withdraw`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolWithdrawTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset: (asset_1, ...args_1) => __awaiter(this, [asset_1, ...args_1], void 0, function* (asset, options = {}) { + const localVarPath = `/v2/lendingpool/reserves`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (asset !== undefined) { + localVarQueryParameter['asset'] = asset; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/borrows`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/deposits`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral: (lendingpoolUseAssetAsCollateralTxRequest_1, ...args_1) => __awaiter(this, [lendingpoolUseAssetAsCollateralTxRequest_1, ...args_1], void 0, function* (lendingpoolUseAssetAsCollateralTxRequest, options = {}) { + // verify required parameter 'lendingpoolUseAssetAsCollateralTxRequest' is not null or undefined + assertParamExists('setLendingPoolAssetCollateral', 'lendingpoolUseAssetAsCollateralTxRequest', lendingpoolUseAssetAsCollateralTxRequest); + const localVarPath = `/v2/lendingpool/tx/useassetascollateral`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolUseAssetAsCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * LendingPoolApi - functional programming interface + * @export + */ +export const LendingPoolApiFp = function (configuration) { + const localVarAxiosParamCreator = LendingPoolApiAxiosParamCreator(configuration); + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.createLendingPoolBorrow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolDeposit(lendingpoolDepositTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.createLendingPoolDeposit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolRepay(lendingpoolRepayTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.createLendingPoolRepay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.createLendingPoolWithdraw']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.fetchReserveDataByAsset(asset, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.fetchReserveDataByAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.getUserBorrows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.getUserDeposits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LendingPoolApi.setLendingPoolAssetCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * LendingPoolApi - factory interface + * @export + */ +export const LendingPoolApiFactory = function (configuration, basePath, axios) { + const localVarFp = LendingPoolApiFp(configuration); + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return localVarFp.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return localVarFp.createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return localVarFp.createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return localVarFp.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset, options) { + return localVarFp.fetchReserveDataByAsset(asset, options).then((request) => request(axios, basePath)); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return localVarFp.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * LendingPoolApi - object-oriented interface + * @export + * @class LendingPoolApi + * @extends {BaseAPI} + */ +export class LendingPoolApi extends BaseAPI { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return LendingPoolApiFp(this.configuration).createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return LendingPoolApiFp(this.configuration).createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return LendingPoolApiFp(this.configuration).createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return LendingPoolApiFp(this.configuration).createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + fetchReserveDataByAsset(asset, options) { + return LendingPoolApiFp(this.configuration).fetchReserveDataByAsset(asset, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return LendingPoolApiFp(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return LendingPoolApiFp(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return LendingPoolApiFp(this.configuration).setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=lending-pool-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/lending-pool-api.js.map b/dist/esm/service/api/lending-pool-api.js.map new file mode 100644 index 0000000..0eb028b --- /dev/null +++ b/dist/esm/service/api/lending-pool-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lending-pool-api.js","sourceRoot":"","sources":["../../../../src/service/api/lending-pool-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA6BtH;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,aAA6B;IAClF,OAAO;QACH;;;;;;WAMG;QACH,uBAAuB,EAAE,0CAA0H,EAAE,+EAArH,0BAAsD,EAAE,UAAiC,EAAE;YACvH,kFAAkF;YAClF,iBAAiB,CAAC,yBAAyB,EAAE,4BAA4B,EAAE,0BAA0B,CAAC,CAAA;YACtG,MAAM,YAAY,GAAG,2BAA2B,CAAC;YACjD,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,MAAM,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,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,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5J,CAAC;IAED;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACpH,OAAO,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7J,CAAC;IAED;;;;;;;OAOG;IACI,6BAA6B,CAAC,wCAAkF,EAAE,OAA+B;QACpJ,OAAO,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,6BAA6B,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/logs-api.d.ts b/dist/esm/service/api/logs-api.d.ts new file mode 100644 index 0000000..ed55376 --- /dev/null +++ b/dist/esm/service/api/logs-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { EventDetailsResponse } from '../model'; +/** + * LogsApi - axios parameter creator + * @export + */ +export declare const LogsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash: (txHash: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LogsApi - functional programming interface + * @export + */ +export declare const LogsApiFp: (configuration?: Configuration) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LogsApi - factory interface + * @export + */ +export declare const LogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LogsApi - interface + * @export + * @interface LogsApi + */ +export interface LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApiInterface + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LogsApi - object-oriented interface + * @export + * @class LogsApi + * @extends {BaseAPI} + */ +export declare class LogsApi extends BaseAPI implements LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApi + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=logs-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/logs-api.d.ts.map b/dist/esm/service/api/logs-api.d.ts.map new file mode 100644 index 0000000..0aabd7f --- /dev/null +++ b/dist/esm/service/api/logs-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"logs-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/logs-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;;OAMG;uCACsC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4BlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;;OAMG;qCACoC,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAOjL,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;;OAMG;qCAC8B,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAIpH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEjH;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;;OAOG;IACI,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGlF"} \ No newline at end of file diff --git a/dist/esm/service/api/logs-api.js b/dist/esm/service/api/logs-api.js new file mode 100644 index 0000000..345627c --- /dev/null +++ b/dist/esm/service/api/logs-api.js @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * LogsApi - axios parameter creator + * @export + */ +export const LogsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash: (txHash_1, ...args_1) => __awaiter(this, [txHash_1, ...args_1], void 0, function* (txHash, options = {}) { + // verify required parameter 'txHash' is not null or undefined + assertParamExists('getLogsByTransactionHash', 'txHash', txHash); + const localVarPath = `/v2/logs/{txHash}` + .replace(`{${"txHash"}}`, encodeURIComponent(String(txHash))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * LogsApi - functional programming interface + * @export + */ +export const LogsApiFp = function (configuration) { + const localVarAxiosParamCreator = LogsApiAxiosParamCreator(configuration); + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsByTransactionHash(txHash, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LogsApi.getLogsByTransactionHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * LogsApi - factory interface + * @export + */ +export const LogsApiFactory = function (configuration, basePath, axios) { + const localVarFp = LogsApiFp(configuration); + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash, options) { + return localVarFp.getLogsByTransactionHash(txHash, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * LogsApi - object-oriented interface + * @export + * @class LogsApi + * @extends {BaseAPI} + */ +export class LogsApi extends BaseAPI { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApi + */ + getLogsByTransactionHash(txHash, options) { + return LogsApiFp(this.configuration).getLogsByTransactionHash(txHash, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=logs-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/logs-api.js.map b/dist/esm/service/api/logs-api.js.map new file mode 100644 index 0000000..461cb8f --- /dev/null +++ b/dist/esm/service/api/logs-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logs-api.js","sourceRoot":"","sources":["../../../../src/service/api/logs-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,wBAAwB,EAAE,sBAAkF,EAAE,2DAA7E,MAAc,EAAE,UAAiC,EAAE;YAChF,8DAA8D;YAC9D,iBAAiB,CAAC,0BAA0B,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;YAC/D,MAAM,YAAY,GAAG,mBAAmB;iBACnC,OAAO,CAAC,IAAI,QAAQ,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAClE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAA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EAAE,EAAE,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC3G,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,CAAA;IAC3C,OAAO;QACH;;;;;;WAMG;QACH,wBAAwB,CAAC,MAAc,EAAE,OAA+B;YACpE,OAAO,UAAU,CAAC,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5G,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAChC;;;;;;;OAOG;IACI,wBAAwB,CAAC,MAAc,EAAE,OAA+B;QAC3E,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/orders-api.d.ts b/dist/esm/service/api/orders-api.d.ts new file mode 100644 index 0000000..e4880b6 --- /dev/null +++ b/dist/esm/service/api/orders-api.d.ts @@ -0,0 +1,200 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { OrderResponse } from '../model'; +import type { TimeRange } from '../model'; +import type { UpdateOrderRequest } from '../model'; +/** + * OrdersApi - axios parameter creator + * @export + */ +export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders: (type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder: (updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * OrdersApi - functional programming interface + * @export + */ +export declare const OrdersApiFp: (configuration?: Configuration) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * OrdersApi - factory interface + * @export + */ +export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * OrdersApi - interface + * @export + * @interface OrdersApi + */ +export interface OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * OrdersApi - object-oriented interface + * @export + * @class OrdersApi + * @extends {BaseAPI} + */ +export declare class OrdersApi extends BaseAPI implements OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetUnfilledOrdersTypeEnum: { + readonly LIMIT: "limit"; + readonly DUTCH: "dutch"; +}; +export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; +/** + * @export + */ +export declare const GetUnfilledOrdersStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; +//# sourceMappingURL=orders-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/orders-api.d.ts.map b/dist/esm/service/api/orders-api.d.ts.map new file mode 100644 index 0000000..65978a2 --- /dev/null +++ b/dist/esm/service/api/orders-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"orders-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/orders-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE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MAAM,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/R;;;;;;;OAOG;IACI,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3F;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/orders-api.js b/dist/esm/service/api/orders-api.js new file mode 100644 index 0000000..bcf68bf --- /dev/null +++ b/dist/esm/service/api/orders-api.js @@ -0,0 +1,278 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * OrdersApi - axios parameter creator + * @export + */ +export const OrdersApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders: (type_1, hash_1, status_1, offerer_1, filler_1, decayStartTime_1, decayEndTime_1, deadline_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [type_1, hash_1, status_1, offerer_1, filler_1, decayStartTime_1, decayEndTime_1, deadline_1, cursor_1, limit_1, ...args_1], void 0, function* (type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options = {}) { + const localVarPath = `/v2/orders`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (offerer !== undefined) { + localVarQueryParameter['offerer'] = offerer; + } + if (filler !== undefined) { + localVarQueryParameter['filler'] = filler; + } + if (decayStartTime !== undefined) { + for (const [key, value] of Object.entries(decayStartTime)) { + localVarQueryParameter[key] = value; + } + } + if (decayEndTime !== undefined) { + for (const [key, value] of Object.entries(decayEndTime)) { + localVarQueryParameter[key] = value; + } + } + if (deadline !== undefined) { + for (const [key, value] of Object.entries(deadline)) { + localVarQueryParameter[key] = value; + } + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder: (updateOrderRequest_1, ...args_1) => __awaiter(this, [updateOrderRequest_1, ...args_1], void 0, function* (updateOrderRequest, options = {}) { + // verify required parameter 'updateOrderRequest' is not null or undefined + assertParamExists('syncOrder', 'updateOrderRequest', updateOrderRequest); + const localVarPath = `/v2/orders/sync`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(updateOrderRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * OrdersApi - functional programming interface + * @export + */ +export const OrdersApiFp = function (configuration) { + const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration); + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getUnfilledOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.syncOrder(updateOrderRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.syncOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * OrdersApi - factory interface + * @export + */ +export const OrdersApiFactory = function (configuration, basePath, axios) { + const localVarFp = OrdersApiFp(configuration); + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return localVarFp.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest, options) { + return localVarFp.syncOrder(updateOrderRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * OrdersApi - object-oriented interface + * @export + * @class OrdersApi + * @extends {BaseAPI} + */ +export class OrdersApi extends BaseAPI { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return OrdersApiFp(this.configuration).getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + syncOrder(updateOrderRequest, options) { + return OrdersApiFp(this.configuration).syncOrder(updateOrderRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const GetUnfilledOrdersTypeEnum = { + LIMIT: 'limit', + DUTCH: 'dutch' +}; +/** + * @export + */ +export const GetUnfilledOrdersStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +//# sourceMappingURL=orders-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/orders-api.js.map b/dist/esm/service/api/orders-api.js.map new file mode 100644 index 0000000..00b8b24 --- /dev/null +++ b/dist/esm/service/api/orders-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"orders-api.js","sourceRoot":"","sources":["../../../../src/service/api/orders-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa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,EAAE,IAAa,EAAE,MAAoC,EAAE,OAAgB,EAAE,MAAe,EAAE,cAA0B,EAAE,YAAwB,EAAE,QAAoB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QAC3R,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxN,CAAC;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,kBAAsC,EAAE,OAA+B;QACpF,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/permit-api.d.ts b/dist/esm/service/api/permit-api.d.ts new file mode 100644 index 0000000..260e20e --- /dev/null +++ b/dist/esm/service/api/permit-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { PermitSingle } from '../model'; +/** + * PermitApi - axios parameter creator + * @export + */ +export declare const PermitApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit: (token: string, user: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PermitApi - functional programming interface + * @export + */ +export declare const PermitApiFp: (configuration?: Configuration) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PermitApi - factory interface + * @export + */ +export declare const PermitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PermitApi - interface + * @export + * @interface PermitApi + */ +export interface PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApiInterface + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PermitApi - object-oriented interface + * @export + * @class PermitApi + * @extends {BaseAPI} + */ +export declare class PermitApi extends BaseAPI implements PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApi + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=permit-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/permit-api.d.ts.map b/dist/esm/service/api/permit-api.d.ts.map new file mode 100644 index 0000000..663a578 --- /dev/null +++ b/dist/esm/service/api/permit-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/permit-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;;;OAOG;kCACiC,MAAM,QAAQ,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAqC3H,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;;;OAOG;gCAC+B,MAAM,QAAQ,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAOlL,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;;;OAOG;gCACyB,MAAM,QAAQ,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAIrH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;OAQG;IACH,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAElH;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;;;OAQG;IACI,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3F"} \ No newline at end of file diff --git a/dist/esm/service/api/permit-api.js b/dist/esm/service/api/permit-api.js new file mode 100644 index 0000000..4d240a9 --- /dev/null +++ b/dist/esm/service/api/permit-api.js @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * PermitApi - axios parameter creator + * @export + */ +export const PermitApiAxiosParamCreator = function (configuration) { + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit: (token_1, user_1, ...args_1) => __awaiter(this, [token_1, user_1, ...args_1], void 0, function* (token, user, options = {}) { + // verify required parameter 'token' is not null or undefined + assertParamExists('getSingleTokenPermit', 'token', token); + // verify required parameter 'user' is not null or undefined + assertParamExists('getSingleTokenPermit', 'user', user); + const localVarPath = `/v2/permit/single`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * PermitApi - functional programming interface + * @export + */ +export const PermitApiFp = function (configuration) { + const localVarAxiosParamCreator = PermitApiAxiosParamCreator(configuration); + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token, user, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSingleTokenPermit(token, user, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PermitApi.getSingleTokenPermit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * PermitApi - factory interface + * @export + */ +export const PermitApiFactory = function (configuration, basePath, axios) { + const localVarFp = PermitApiFp(configuration); + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token, user, options) { + return localVarFp.getSingleTokenPermit(token, user, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * PermitApi - object-oriented interface + * @export + * @class PermitApi + * @extends {BaseAPI} + */ +export class PermitApi extends BaseAPI { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApi + */ + getSingleTokenPermit(token, user, options) { + return PermitApiFp(this.configuration).getSingleTokenPermit(token, user, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=permit-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/permit-api.js.map b/dist/esm/service/api/permit-api.js.map new file mode 100644 index 0000000..0a09e48 --- /dev/null +++ b/dist/esm/service/api/permit-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-api.js","sourceRoot":"","sources":["../../../../src/service/api/permit-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAA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AE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC7G,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAqBF;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAClC;;;;;;;;OAQG;IACI,oBAAoB,CAAC,KAAa,EAAE,IAAY,EAAE,OAA+B;QACpF,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5I,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/points-api.d.ts b/dist/esm/service/api/points-api.d.ts new file mode 100644 index 0000000..e4a11d3 --- /dev/null +++ b/dist/esm/service/api/points-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Scoreboard } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export declare const PointsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export declare const PointsApiFp: (configuration?: Configuration) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PointsApi - factory interface + * @export + */ +export declare const PointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export declare class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getScoreboard(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=points-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/points-api.d.ts.map b/dist/esm/service/api/points-api.d.ts.map new file mode 100644 index 0000000..e82176f --- /dev/null +++ b/dist/esm/service/api/points-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/points-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;8BAC4B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBvF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;4BAC2B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,UAAU,CAAC,CAAC;CAO5I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;4BACqB,qBAAqB,GAAG,YAAY,CAAC,UAAU,CAAC;CAI/E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;CAE5E;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,aAAa,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGvD"} \ No newline at end of file diff --git a/dist/esm/service/api/points-api.js b/dist/esm/service/api/points-api.js new file mode 100644 index 0000000..4008dcf --- /dev/null +++ b/dist/esm/service/api/points-api.js @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * PointsApi - axios parameter creator + * @export + */ +export const PointsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/points/scoreboard`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export const PointsApiFp = function (configuration) { + const localVarAxiosParamCreator = PointsApiAxiosParamCreator(configuration); + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getScoreboard(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PointsApi.getScoreboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * PointsApi - factory interface + * @export + */ +export const PointsApiFactory = function (configuration, basePath, axios) { + const localVarFp = PointsApiFp(configuration); + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options) { + return localVarFp.getScoreboard(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export class PointsApi extends BaseAPI { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getScoreboard(options) { + return PointsApiFp(this.configuration).getScoreboard(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=points-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/points-api.js.map b/dist/esm/service/api/points-api.js.map new file mode 100644 index 0000000..1650cf4 --- /dev/null +++ b/dist/esm/service/api/points-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.js","sourceRoot":"","sources":["../../../../src/service/api/points-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,aAAa,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAAE;YACrD,MAAM,YAAY,GAAG,uBAAuB,CAAC;YAC7C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D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AAE,SAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC7G,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;WAKG;QACH,aAAa,CAAC,OAA+B;YACzC,OAAO,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACzF,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAmBF;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAClC;;;;;;OAMG;IACI,aAAa,CAAC,OAA+B;QAChD,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxH,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/prices-api.d.ts b/dist/esm/service/api/prices-api.d.ts new file mode 100644 index 0000000..4d07b49 --- /dev/null +++ b/dist/esm/service/api/prices-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { PriceListResponse } from '../model'; +/** + * PricesApi - axios parameter creator + * @export + */ +export declare const PricesApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices: (symbol?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PricesApi - functional programming interface + * @export + */ +export declare const PricesApiFp: (configuration?: Configuration) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PricesApi - factory interface + * @export + */ +export declare const PricesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PricesApi - interface + * @export + * @interface PricesApi + */ +export interface PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApiInterface + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PricesApi - object-oriented interface + * @export + * @class PricesApi + * @extends {BaseAPI} + */ +export declare class PricesApi extends BaseAPI implements PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApi + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=prices-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/prices-api.d.ts.map b/dist/esm/service/api/prices-api.d.ts.map new file mode 100644 index 0000000..e6f0543 --- /dev/null +++ b/dist/esm/service/api/prices-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prices-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/prices-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;;OAMG;0BACyB,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6BrG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;;OAMG;wBACuB,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAOjK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;;OAMG;wBACiB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,iBAAiB,CAAC;CAIpG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAEjG;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;;OAOG;IACI,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGrE"} \ No newline at end of file diff --git a/dist/esm/service/api/prices-api.js b/dist/esm/service/api/prices-api.js new file mode 100644 index 0000000..8f0c704 --- /dev/null +++ b/dist/esm/service/api/prices-api.js @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * PricesApi - axios parameter creator + * @export + */ +export const PricesApiAxiosParamCreator = function (configuration) { + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + const localVarPath = `/v2/prices`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * PricesApi - functional programming interface + * @export + */ +export const PricesApiFp = function (configuration) { + const localVarAxiosParamCreator = PricesApiAxiosParamCreator(configuration); + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.listPrices(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PricesApi.listPrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * PricesApi - factory interface + * @export + */ +export const PricesApiFactory = function (configuration, basePath, axios) { + const localVarFp = PricesApiFp(configuration); + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol, options) { + return localVarFp.listPrices(symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * PricesApi - object-oriented interface + * @export + * @class PricesApi + * @extends {BaseAPI} + */ +export class PricesApi extends BaseAPI { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApi + */ + listPrices(symbol, options) { + return PricesApiFp(this.configuration).listPrices(symbol, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=prices-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/prices-api.js.map b/dist/esm/service/api/prices-api.js.map new file mode 100644 index 0000000..0fe2e43 --- /dev/null +++ b/dist/esm/service/api/prices-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prices-api.js","sourceRoot":"","sources":["../../../../src/service/api/prices-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,sBAAmF,EAAE,2DAA9E,MAAe,EAAE,UAAiC,EAAE;YACnE,MAAM,YAAY,GAAG,YAAY,CAAC;YAClC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,MAAM,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AAC,MAAM,gBAAgB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC7G,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;;WAMG;QACH,UAAU,CAAC,MAAe,EAAE,OAA+B;YACvD,OAAO,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC9F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAClC;;;;;;;OAOG;IACI,UAAU,CAAC,MAAe,EAAE,OAA+B;QAC9D,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/stable-coin-system-api.d.ts b/dist/esm/service/api/stable-coin-system-api.d.ts new file mode 100644 index 0000000..2ea2503 --- /dev/null +++ b/dist/esm/service/api/stable-coin-system-api.d.ts @@ -0,0 +1,785 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { ChainActivity } from '../model'; +import type { Ilk } from '../model'; +import type { IlksResponse } from '../model'; +import type { StablecoinSystemBarkTxRequest } from '../model'; +import type { StablecoinSystemCreateVaultTxRequest } from '../model'; +import type { StablecoinSystemDepositCollateralTxRequest } from '../model'; +import type { StablecoinSystemGemexitTxRequest } from '../model'; +import type { StablecoinSystemMintZarTxRequest } from '../model'; +import type { StablecoinSystemRedoTxRequest } from '../model'; +import type { StablecoinSystemRepayZarTxRequest } from '../model'; +import type { StablecoinSystemTakeTxRequest } from '../model'; +import type { StablecoinSystemWithdrawCollateralTxRequest } from '../model'; +import type { StablecoinSystemZarexitTxRequest } from '../model'; +import type { StablecoinSystemZarjoinTxRequest } from '../model'; +import type { Stats } from '../model'; +import type { Vault } from '../model'; +import type { VaultEventsResponse } from '../model'; +import type { VaultsResponse } from '../model'; +/** + * StableCoinSystemApi - axios parameter creator + * @export + */ +export declare const StableCoinSystemApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction: (stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault: (stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral: (stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction: (stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction: (stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name: string, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction: (stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction: (stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction: (stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction: (stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction: (stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction: (stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * StableCoinSystemApi - functional programming interface + * @export + */ +export declare const StableCoinSystemApiFp: (configuration?: Configuration) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * StableCoinSystemApi - factory interface + * @export + */ +export declare const StableCoinSystemApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * StableCoinSystemApi - interface + * @export + * @interface StableCoinSystemApi + */ +export interface StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * StableCoinSystemApi - object-oriented interface + * @export + * @class StableCoinSystemApi + * @extends {BaseAPI} + */ +export declare class StableCoinSystemApi extends BaseAPI implements StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise>; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=stable-coin-system-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/stable-coin-system-api.d.ts.map b/dist/esm/service/api/stable-coin-system-api.d.ts.map new file mode 100644 index 0000000..4990504 --- /dev/null +++ b/dist/esm/service/api/stable-coin-system-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stable-coin-system-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/stable-coin-system-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AAE3E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,E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A6B,CAAC,2CAA2C,EAAE,2CAA2C,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGjK;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/stable-coin-system-api.js b/dist/esm/service/api/stable-coin-system-api.js new file mode 100644 index 0000000..548e0ea --- /dev/null +++ b/dist/esm/service/api/stable-coin-system-api.js @@ -0,0 +1,1193 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * StableCoinSystemApi - axios parameter creator + * @export + */ +export const StableCoinSystemApiAxiosParamCreator = function (configuration) { + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction: (stablecoinSystemZarjoinTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemZarjoinTxRequest_1, ...args_1], void 0, function* (stablecoinSystemZarjoinTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemZarjoinTxRequest' is not null or undefined + assertParamExists('approveAndJoinZarTransaction', 'stablecoinSystemZarjoinTxRequest', stablecoinSystemZarjoinTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarjoin`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemZarjoinTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault: (stablecoinSystemCreateVaultTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemCreateVaultTxRequest_1, ...args_1], void 0, function* (stablecoinSystemCreateVaultTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemCreateVaultTxRequest' is not null or undefined + assertParamExists('createStableCoinVault', 'stablecoinSystemCreateVaultTxRequest', stablecoinSystemCreateVaultTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/createvault`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemCreateVaultTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral: (stablecoinSystemDepositCollateralTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemDepositCollateralTxRequest_1, ...args_1], void 0, function* (stablecoinSystemDepositCollateralTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemDepositCollateralTxRequest' is not null or undefined + assertParamExists('depositStableCoinCollateral', 'stablecoinSystemDepositCollateralTxRequest', stablecoinSystemDepositCollateralTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/depositcollateral`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemDepositCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction: (stablecoinSystemGemexitTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemGemexitTxRequest_1, ...args_1], void 0, function* (stablecoinSystemGemexitTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemGemexitTxRequest' is not null or undefined + assertParamExists('exitGemTransaction', 'stablecoinSystemGemexitTxRequest', stablecoinSystemGemexitTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/gemexit`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemGemexitTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction: (stablecoinSystemZarexitTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemZarexitTxRequest_1, ...args_1], void 0, function* (stablecoinSystemZarexitTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemZarexitTxRequest' is not null or undefined + assertParamExists('exitZarTransaction', 'stablecoinSystemZarexitTxRequest', stablecoinSystemZarexitTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarexit`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemZarexitTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ilks`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/stats`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + // verify required parameter 'name' is not null or undefined + assertParamExists('getIlkByName', 'name', name); + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultById', 'id', id); + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id_1, type_1, ...args_1) => __awaiter(this, [id_1, type_1, ...args_1], void 0, function* (id, type, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultEventsById', 'id', id); + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner_1, ...args_1) => __awaiter(this, [owner_1, ...args_1], void 0, function* (owner, options = {}) { + const localVarPath = `/v2/vaults`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction: (stablecoinSystemBarkTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemBarkTxRequest_1, ...args_1], void 0, function* (stablecoinSystemBarkTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemBarkTxRequest' is not null or undefined + assertParamExists('liquidateVaultTransaction', 'stablecoinSystemBarkTxRequest', stablecoinSystemBarkTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/bark`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemBarkTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction: (stablecoinSystemMintZarTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemMintZarTxRequest_1, ...args_1], void 0, function* (stablecoinSystemMintZarTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemMintZarTxRequest' is not null or undefined + assertParamExists('mintZarTransaction', 'stablecoinSystemMintZarTxRequest', stablecoinSystemMintZarTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/mintzar`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemMintZarTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction: (stablecoinSystemRepayZarTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemRepayZarTxRequest_1, ...args_1], void 0, function* (stablecoinSystemRepayZarTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemRepayZarTxRequest' is not null or undefined + assertParamExists('repayZarTransaction', 'stablecoinSystemRepayZarTxRequest', stablecoinSystemRepayZarTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/repayzar`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemRepayZarTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction: (stablecoinSystemRedoTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemRedoTxRequest_1, ...args_1], void 0, function* (stablecoinSystemRedoTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemRedoTxRequest' is not null or undefined + assertParamExists('resetAuctionTransaction', 'stablecoinSystemRedoTxRequest', stablecoinSystemRedoTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/redo`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemRedoTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction: (stablecoinSystemTakeTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemTakeTxRequest_1, ...args_1], void 0, function* (stablecoinSystemTakeTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemTakeTxRequest' is not null or undefined + assertParamExists('takeAuctionTransaction', 'stablecoinSystemTakeTxRequest', stablecoinSystemTakeTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/take`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemTakeTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction: (stablecoinSystemWithdrawCollateralTxRequest_1, ...args_1) => __awaiter(this, [stablecoinSystemWithdrawCollateralTxRequest_1, ...args_1], void 0, function* (stablecoinSystemWithdrawCollateralTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemWithdrawCollateralTxRequest' is not null or undefined + assertParamExists('withdrawCollateralTransaction', 'stablecoinSystemWithdrawCollateralTxRequest', stablecoinSystemWithdrawCollateralTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/withdrawcollateral`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemWithdrawCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * StableCoinSystemApi - functional programming interface + * @export + */ +export const StableCoinSystemApiFp = function (configuration) { + const localVarAxiosParamCreator = StableCoinSystemApiAxiosParamCreator(configuration); + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.approveAndJoinZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.createStableCoinVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.depositStableCoinCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.exitGemTransaction(stablecoinSystemGemexitTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.exitGemTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.exitZarTransaction(stablecoinSystemZarexitTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.exitZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getAllIlks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getCollectorData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getIlkByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getVaultById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getVaultEventsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.getVaultsByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.liquidateVaultTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.mintZarTransaction(stablecoinSystemMintZarTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.mintZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.repayZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.resetAuctionTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.takeAuctionTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StableCoinSystemApi.withdrawCollateralTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * StableCoinSystemApi - factory interface + * @export + */ +export const StableCoinSystemApiFactory = function (configuration, basePath, axios) { + const localVarFp = StableCoinSystemApiFp(configuration); + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return localVarFp.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return localVarFp.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return localVarFp.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return localVarFp.exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return localVarFp.exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return localVarFp.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return localVarFp.mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return localVarFp.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return localVarFp.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return localVarFp.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return localVarFp.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * StableCoinSystemApi - object-oriented interface + * @export + * @class StableCoinSystemApi + * @extends {BaseAPI} + */ +export class StableCoinSystemApi extends BaseAPI { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getAllIlks(options) { + return StableCoinSystemApiFp(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getCollectorData(options) { + return StableCoinSystemApiFp(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getIlkByName(name, options) { + return StableCoinSystemApiFp(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultById(id, options) { + return StableCoinSystemApiFp(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultEventsById(id, type, options) { + return StableCoinSystemApiFp(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultsByOwner(owner, options) { + return StableCoinSystemApiFp(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return StableCoinSystemApiFp(this.configuration).withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=stable-coin-system-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/stable-coin-system-api.js.map b/dist/esm/service/api/stable-coin-system-api.js.map new file mode 100644 index 0000000..22b6a33 --- /dev/null +++ b/dist/esm/service/api/stable-coin-system-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stable-coin-system-api.js","sourceRoot":"","sources":["../../../../src/service/api/stable-coin-system-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAqCtH;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAU,aAA6B;IACvF,OAAO;QACH;;;;;;WA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AqB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,uBAAuB,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3K,CAAC;IAED;;;;;;;OAOG;IACI,sBAAsB,CAAC,6BAA4D,EAAE,OAA+B;QACvH,OAAO,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1K,CAAC;IAED;;;;;;;OAOG;IACI,6BAA6B,CAAC,2CAAwF,EAAE,OAA+B;QAC1J,OAAO,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,6BAA6B,CAAC,2CAA2C,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/L,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/staking-api.d.ts b/dist/esm/service/api/staking-api.d.ts new file mode 100644 index 0000000..df4f36b --- /dev/null +++ b/dist/esm/service/api/staking-api.d.ts @@ -0,0 +1,281 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { StakePlansResponse } from '../model'; +import type { StakingCollectRewardTxRequest } from '../model'; +import type { StakingCollectRewardTxResponse } from '../model'; +import type { StakingStakeTxRequest } from '../model'; +import type { StakingStakeTxResponse } from '../model'; +import type { StakingWithdrawTxRequest } from '../model'; +import type { StakingWithdrawTxResponse } from '../model'; +import type { UserStakesResponse } from '../model'; +/** + * StakingApi - axios parameter creator + * @export + */ +export declare const StakingApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward: (stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats: (user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract: (stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset: (stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * StakingApi - functional programming interface + * @export + */ +export declare const StakingApiFp: (configuration?: Configuration) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * StakingApi - factory interface + * @export + */ +export declare const StakingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * StakingApi - interface + * @export + * @interface StakingApi + */ +export interface StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +export declare class StakingApi extends BaseAPI implements StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getStakingPlans(options?: RawAxiosRequestConfig): Promise>; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=staking-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/staking-api.d.ts.map b/dist/esm/service/api/staking-api.d.ts.map new file mode 100644 index 0000000..e52d84c --- /dev/null +++ b/dist/esm/service/api/staking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6BAA6B,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzH;;;;;;OAMG;IACI,eAAe,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAItD;;;;;;;;;;;OAWG;IACI,mBAAmB,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI9I;;;;;;;OAOG;IACI,sBAAsB,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI3G;;;;;;;OAOG;IACI,mBAAmB,CAAC,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGjH"} \ No newline at end of file diff --git a/dist/esm/service/api/staking-api.js b/dist/esm/service/api/staking-api.js new file mode 100644 index 0000000..af3a929 --- /dev/null +++ b/dist/esm/service/api/staking-api.js @@ -0,0 +1,412 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * StakingApi - axios parameter creator + * @export + */ +export const StakingApiAxiosParamCreator = function (configuration) { + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward: (stakingCollectRewardTxRequest_1, ...args_1) => __awaiter(this, [stakingCollectRewardTxRequest_1, ...args_1], void 0, function* (stakingCollectRewardTxRequest, options = {}) { + // verify required parameter 'stakingCollectRewardTxRequest' is not null or undefined + assertParamExists('collectStakingReward', 'stakingCollectRewardTxRequest', stakingCollectRewardTxRequest); + const localVarPath = `/v2/staking/tx/collectreward`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stakingCollectRewardTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/staking/plans`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats: (user_1, address_1, active_1, cursor_1, limit_1, ...args_1) => __awaiter(this, [user_1, address_1, active_1, cursor_1, limit_1, ...args_1], void 0, function* (user, address, active, cursor, limit, options = {}) { + const localVarPath = `/v2/staking/stats`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + if (active !== undefined) { + localVarQueryParameter['active'] = active; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract: (stakingStakeTxRequest_1, ...args_1) => __awaiter(this, [stakingStakeTxRequest_1, ...args_1], void 0, function* (stakingStakeTxRequest, options = {}) { + // verify required parameter 'stakingStakeTxRequest' is not null or undefined + assertParamExists('stakeToStakingContract', 'stakingStakeTxRequest', stakingStakeTxRequest); + const localVarPath = `/v2/staking/tx/stake`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stakingStakeTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset: (stakingWithdrawTxRequest_1, ...args_1) => __awaiter(this, [stakingWithdrawTxRequest_1, ...args_1], void 0, function* (stakingWithdrawTxRequest, options = {}) { + // verify required parameter 'stakingWithdrawTxRequest' is not null or undefined + assertParamExists('withdrawStakedAsset', 'stakingWithdrawTxRequest', stakingWithdrawTxRequest); + const localVarPath = `/v2/staking/tx/withdraw`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(stakingWithdrawTxRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * StakingApi - functional programming interface + * @export + */ +export const StakingApiFp = function (configuration) { + const localVarAxiosParamCreator = StakingApiAxiosParamCreator(configuration); + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.collectStakingReward(stakingCollectRewardTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StakingApi.collectStakingReward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getStakingPlans(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StakingApi.getStakingPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserStakingStats(user, address, active, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StakingApi.getUserStakingStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.stakeToStakingContract(stakingStakeTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StakingApi.stakeToStakingContract']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.withdrawStakedAsset(stakingWithdrawTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StakingApi.withdrawStakedAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * StakingApi - factory interface + * @export + */ +export const StakingApiFactory = function (configuration, basePath, axios) { + const localVarFp = StakingApiFp(configuration); + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return localVarFp.collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options) { + return localVarFp.getStakingPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return localVarFp.getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return localVarFp.stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return localVarFp.withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +export class StakingApi extends BaseAPI { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return StakingApiFp(this.configuration).collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getStakingPlans(options) { + return StakingApiFp(this.configuration).getStakingPlans(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return StakingApiFp(this.configuration).getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return StakingApiFp(this.configuration).stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return StakingApiFp(this.configuration).withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=staking-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/staking-api.js.map b/dist/esm/service/api/staking-api.js.map new file mode 100644 index 0000000..fc14060 --- /dev/null +++ b/dist/esm/service/api/staking-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-api.js","sourceRoot":"","sources":["../../../../src/service/api/staking-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE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AO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrK,CAAC;IAED;;;;;;;OAOG;IACI,sBAAsB,CAAC,qBAA4C,EAAE,OAA+B;QACvG,OAAO,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzJ,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CAAC,wBAAkD,EAAE,OAA+B;QAC1G,OAAO,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/swap-api.d.ts b/dist/esm/service/api/swap-api.d.ts new file mode 100644 index 0000000..d4badf2 --- /dev/null +++ b/dist/esm/service/api/swap-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { QuoteRequest } from '../model'; +import type { QuoteResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export declare const SwapApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote: (quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export declare const SwapApiFp: (configuration?: Configuration) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * SwapApi - factory interface + * @export + */ +export declare const SwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export declare class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=swap-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/swap-api.d.ts.map b/dist/esm/service/api/swap-api.d.ts.map new file mode 100644 index 0000000..d54aa9a --- /dev/null +++ b/dist/esm/service/api/swap-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/swap-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;;OAMG;iCACgC,YAAY,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA8BlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;;OAMG;+BAC8B,YAAY,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC;CAO1K,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;;OAMG;+BACwB,YAAY,YAAY,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC;CAI7G,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;CAE1G;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;;OAOG;IACI,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGlF"} \ No newline at end of file diff --git a/dist/esm/service/api/swap-api.js b/dist/esm/service/api/swap-api.js new file mode 100644 index 0000000..90e9978 --- /dev/null +++ b/dist/esm/service/api/swap-api.js @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * SwapApi - axios parameter creator + * @export + */ +export const SwapApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote: (quoteRequest_1, ...args_1) => __awaiter(this, [quoteRequest_1, ...args_1], void 0, function* (quoteRequest, options = {}) { + // verify required parameter 'quoteRequest' is not null or undefined + assertParamExists('getSwapQuote', 'quoteRequest', quoteRequest); + const localVarPath = `/v2/swap/quote`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(quoteRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export const SwapApiFp = function (configuration) { + const localVarAxiosParamCreator = SwapApiAxiosParamCreator(configuration); + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSwapQuote(quoteRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SwapApi.getSwapQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * SwapApi - factory interface + * @export + */ +export const SwapApiFactory = function (configuration, basePath, axios) { + const localVarFp = SwapApiFp(configuration); + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest, options) { + return localVarFp.getSwapQuote(quoteRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export class SwapApi extends BaseAPI { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + getSwapQuote(quoteRequest, options) { + return SwapApiFp(this.configuration).getSwapQuote(quoteRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=swap-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/swap-api.js.map b/dist/esm/service/api/swap-api.js.map new file mode 100644 index 0000000..78a01e7 --- /dev/null +++ b/dist/esm/service/api/swap-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.js","sourceRoot":"","sources":["../../../../src/service/api/swap-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKtH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,YAAY,EAAE,4BAA8F,EAAE,iEAAzF,YAA0B,EAAE,UAAiC,EAAE;YAChF,oEAAoE;YACpE,iBAAiB,CAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;YAC/D,MAAM,YAAY,GAAG,gBAAgB,CAAC;YACtC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IA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AAA,kBAAkB,CAAC,sBAAsB,CAAC,0CAAG,4BAA4B,CAAC,0CAAE,GAAG,CAAC;gBACxH,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC3G,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,CAAA;IAC3C,OAAO;QACH;;;;;;WAMG;QACH,YAAY,CAAC,YAA0B,EAAE,OAA+B;YACpE,OAAO,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACtG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAChC;;;;;;;OAOG;IACI,YAAY,CAAC,YAA0B,EAAE,OAA+B;QAC3E,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/api/vaults-api.d.ts b/dist/esm/service/api/vaults-api.d.ts new file mode 100644 index 0000000..07de00d --- /dev/null +++ b/dist/esm/service/api/vaults-api.d.ts @@ -0,0 +1,192 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Vault } from '../model'; +import type { VaultEventsResponse } from '../model'; +import type { VaultsResponse } from '../model'; +/** + * VaultsApi - axios parameter creator + * @export + */ +export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * VaultsApi - functional programming interface + * @export + */ +export declare const VaultsApiFp: (configuration?: Configuration) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * VaultsApi - factory interface + * @export + */ +export declare const VaultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * VaultsApi - interface + * @export + * @interface VaultsApi + */ +export interface VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * VaultsApi - object-oriented interface + * @export + * @class VaultsApi + * @extends {BaseAPI} + */ +export declare class VaultsApi extends BaseAPI implements VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=vaults-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/vaults-api.d.ts.map b/dist/esm/service/api/vaults-api.d.ts.map new file mode 100644 index 0000000..d90a6e1 --- /dev/null +++ b/dist/esm/service/api/vaults-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/vaults-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,O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e --- /dev/null +++ b/dist/esm/service/api/vaults-api.js @@ -0,0 +1,272 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * VaultsApi - axios parameter creator + * @export + */ +export const VaultsApiAxiosParamCreator = function (configuration) { + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultById', 'id', id); + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id_1, type_1, ...args_1) => __awaiter(this, [id_1, type_1, ...args_1], void 0, function* (id, type, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultEventsById', 'id', id); + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner_1, ...args_1) => __awaiter(this, [owner_1, ...args_1], void 0, function* (owner, options = {}) { + const localVarPath = `/v2/vaults`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * VaultsApi - functional programming interface + * @export + */ +export const VaultsApiFp = function (configuration) { + const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VaultsApi.getVaultById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VaultsApi.getVaultEventsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VaultsApi.getVaultsByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * VaultsApi - factory interface + * @export + */ +export const VaultsApiFactory = function (configuration, basePath, axios) { + const localVarFp = VaultsApiFp(configuration); + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * VaultsApi - object-oriented interface + * @export + * @class VaultsApi + * @extends {BaseAPI} + */ +export class VaultsApi extends BaseAPI { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultById(id, options) { + return VaultsApiFp(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultEventsById(id, type, options) { + return VaultsApiFp(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultsByOwner(owner, options) { + return VaultsApiFp(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=vaults-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/vaults-api.js.map b/dist/esm/service/api/vaults-api.js.map new file mode 100644 index 0000000..3b5a06b --- /dev/null +++ b/dist/esm/service/api/vaults-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-api.js","sourceRoot":"","sources":["../../../../src/service/api/vaults-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOtH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;WAMG;QACH,Y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AAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;IAED;;;;;;;;OAQG;IACI,kBAAkB,CAAC,EAAU,EAAE,IAAiC,EAAE,OAA+B;QACpG,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,kBAAkB,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvI,CAAC;IAED;;;;;;;OAOG;IACI,gBAAgB,CAAC,KAAc,EAAE,OAA+B;QACnE,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClI,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/api/websocket-api.d.ts b/dist/esm/service/api/websocket-api.d.ts new file mode 100644 index 0000000..0d8864d --- /dev/null +++ b/dist/esm/service/api/websocket-api.d.ts @@ -0,0 +1,85 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +/** + * WebsocketApi - axios parameter creator + * @export + */ +export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * WebsocketApi - functional programming interface + * @export + */ +export declare const WebsocketApiFp: (configuration?: Configuration) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * WebsocketApi - factory interface + * @export + */ +export declare const WebsocketApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * WebsocketApi - interface + * @export + * @interface WebsocketApi + */ +export interface WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApiInterface + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * WebsocketApi - object-oriented interface + * @export + * @class WebsocketApi + * @extends {BaseAPI} + */ +export declare class WebsocketApi extends BaseAPI implements WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApi + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=websocket-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/api/websocket-api.d.ts.map b/dist/esm/service/api/websocket-api.d.ts.map new file mode 100644 index 0000000..db52d90 --- /dev/null +++ b/dist/esm/service/api/websocket-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket-api.d.ts","sourceRoot":"","sources":["../../../../src/service/api/websocket-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AACtH;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;OAKG;2CACyC,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA4B,aAAa;IAG5D;;;;;OAKG;yCACwC,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAOnJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG5G;;;;;OAKG;yCACkC,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC;CAItF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,0BAA0B,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;CAEnF;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;OAMG;IACI,0BAA0B,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGpE"} \ No newline at end of file diff --git a/dist/esm/service/api/websocket-api.js b/dist/esm/service/api/websocket-api.js new file mode 100644 index 0000000..5769273 --- /dev/null +++ b/dist/esm/service/api/websocket-api.js @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * WebsocketApi - axios parameter creator + * @export + */ +export const WebsocketApiAxiosParamCreator = function (configuration) { + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ws`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * WebsocketApi - functional programming interface + * @export + */ +export const WebsocketApiFp = function (configuration) { + const localVarAxiosParamCreator = WebsocketApiAxiosParamCreator(configuration); + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUnfilledOrdersWebsocket(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsocketApi.getUnfilledOrdersWebsocket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * WebsocketApi - factory interface + * @export + */ +export const WebsocketApiFactory = function (configuration, basePath, axios) { + const localVarFp = WebsocketApiFp(configuration); + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options) { + return localVarFp.getUnfilledOrdersWebsocket(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * WebsocketApi - object-oriented interface + * @export + * @class WebsocketApi + * @extends {BaseAPI} + */ +export class WebsocketApi extends BaseAPI { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApi + */ + getUnfilledOrdersWebsocket(options) { + return WebsocketApiFp(this.configuration).getUnfilledOrdersWebsocket(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=websocket-api.js.map \ No newline at end of file diff --git a/dist/esm/service/api/websocket-api.js.map b/dist/esm/service/api/websocket-api.js.map new file mode 100644 index 0000000..c2870ff --- /dev/null +++ b/dist/esm/service/api/websocket-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket-api.js","sourceRoot":"","sources":["../../../../src/service/api/websocket-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO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,CAAC,aAAa,CAAC,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/base.d.ts b/dist/esm/service/base.d.ts new file mode 100644 index 0000000..b8f37c3 --- /dev/null +++ b/dist/esm/service/base.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from './configuration'; +import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; +export declare const BASE_PATH: string; +/** + * + * @export + */ +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} +/** + * + * @export + * @class BaseAPI + */ +export declare class BaseAPI { + protected basePath: string; + protected axios: AxiosInstance; + protected configuration: Configuration | undefined; + constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); +} +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export declare class RequiredError extends Error { + field: string; + constructor(field: string, msg?: string); +} +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} +/** + * + * @export + */ +export declare const operationServerMap: ServerMap; +export {}; +//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/base.d.ts.map b/dist/esm/service/base.d.ts.map new file mode 100644 index 0000000..3cae370 --- /dev/null +++ b/dist/esm/service/base.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/service/base.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAgB,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGhF,eAAO,MAAM,SAAS,QAA8C,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAG2B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAAc,SAAS,CAAC,KAAK,EAAE,aAAa;IAFjH,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;gBAEvC,aAAa,CAAC,EAAE,aAAa,EAAY,QAAQ,GAAE,MAAkB,EAAY,KAAK,GAAE,aAA2B;CAMlI;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACjB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAIjD;AAED,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;CACP;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAChC,CAAA"} \ No newline at end of file diff --git a/dist/esm/service/base.js b/dist/esm/service/base.js new file mode 100644 index 0000000..f2e67a9 --- /dev/null +++ b/dist/esm/service/base.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import globalAxios from 'axios'; +export const BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + constructor(configuration, basePath = BASE_PATH, axios = globalAxios) { + var _a; + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath; + } + } +} +; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +/** + * + * @export + */ +export const operationServerMap = {}; +//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/esm/service/base.js.map b/dist/esm/service/base.js.map new file mode 100644 index 0000000..206cb3d --- /dev/null +++ b/dist/esm/service/base.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/service/base.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAOH,OAAO,WAAW,MAAM,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,SAAS,GAAG,uBAAuB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAM,OAAO,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,SAAS,EAAY,QAAuB,WAAW;;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,MAAA,aAAa,CAAC,QAAQ,mCAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AASD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAc,EAC5C,CAAA"} \ No newline at end of file diff --git a/dist/esm/service/common.d.ts b/dist/esm/service/common.d.ts new file mode 100644 index 0000000..55b6860 --- /dev/null +++ b/dist/esm/service/common.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { URL } from 'url'; +/** + * + * @export + */ +export declare const DUMMY_BASE_URL = "https://example.com"; +/** + * + * @throws {RequiredError} + * @export + */ +export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; +/** + * + * @export + */ +export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; +/** + * + * @export + */ +export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setSearchParams: (url: URL, ...objects: any[]) => void; +/** + * + * @export + */ +export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; +/** + * + * @export + */ +export declare const toPathString: (url: URL) => string; +/** + * + * @export + */ +export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/common.d.ts.map b/dist/esm/service/common.d.ts.map new file mode 100644 index 0000000..007e40f --- /dev/null +++ b/dist/esm/service/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/service/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,kBAAkB,aAAa,kBAOhH,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,kBAAkB,aAAa,SAIvF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,kBAAkB,aAAa,kBAO9F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,kBAAkB,aAAa,kBAOzH,CAAA;AAwBD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAInE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,kBAAkB,aAAa,QAQ5G,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,kBAAkB,aAAa,MACvI,CAAC,YAAY,CAAC,kCAA4B,aAAa,aAA0B,MAAM,eAIlG,CAAA"} \ No newline at end of file diff --git a/dist/esm/service/common.js b/dist/esm/service/common.js new file mode 100644 index 0000000..164737d --- /dev/null +++ b/dist/esm/service/common.js @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import { RequiredError } from "./base"; +import { URLSearchParams } from 'url'; +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com'; +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName, paramName, paramValue) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +}; +/** + * + * @export + */ +export const setApiKeyToObject = function (object, keyParamName, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? yield configuration.apiKey(keyParamName) + : yield configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } + }); +}; +/** + * + * @export + */ +export const setBasicAuthToObject = function (object, configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +}; +/** + * + * @export + */ +export const setBearerAuthToObject = function (object, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken() + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } + }); +}; +/** + * + * @export + */ +export const setOAuthToObject = function (object, name, scopes, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken(name, scopes) + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } + }); +}; +function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { + if (parameter == null) + return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} +/** + * + * @export + */ +export const setSearchParams = function (url, ...objects) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value, requestOptions, configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +}; +/** + * + * @export + */ +export const toPathString = function (url) { + return url.pathname + url.search + url.hash; +}; +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { + return (axios = globalAxios, basePath = BASE_PATH) => { + var _a; + const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url }); + return axios.request(axiosRequestArgs); + }; +}; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/esm/service/common.js.map b/dist/esm/service/common.js.map new file mode 100644 index 0000000..1af00e5 --- /dev/null +++ b/dist/esm/service/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/service/common.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAMH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAO,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,aAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;QAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;gBAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC1C,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC;YACjC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;QAC/C,CAAC;IACL,CAAC;CAAA,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,MAAW,EAAE,aAA6B;IACpF,IAAI,aAAa,IAAI,CAAC,aA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C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAClE,CAAC,CAAC,SAAS,CAAC;IAChB,OAAO,kBAAkB;QACrB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;AACxB,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,GAAQ;IAC1C,OAAO,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,CAAA;AAC/C,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,SAAsB,EAAE,WAA0B,EAAE,SAAiB,EAAE,aAA6B;IAC/I,OAAO,CAAoC,QAAuB,WAAW,EAAE,WAAmB,SAAS,EAAE,EAAE;;QAC3G,MAAM,gBAAgB,mCAAO,SAAS,CAAC,OAAO,KAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,mCAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,GAAC,CAAC;QAC1I,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/esm/service/configuration.d.ts b/dist/esm/service/configuration.d.ts new file mode 100644 index 0000000..7f5fa97 --- /dev/null +++ b/dist/esm/service/configuration.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} +export declare class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + constructor(param?: ConfigurationParameters); + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime: string): boolean; +} +//# sourceMappingURL=configuration.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/configuration.d.ts.map b/dist/esm/service/configuration.d.ts.map new file mode 100644 index 0000000..b24d3c5 --- /dev/null +++ b/dist/esm/service/configuration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/service/configuration.ts"],"names":[],"mappings":"AAEA;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AAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAW/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"} \ No newline at end of file diff --git a/dist/esm/service/configuration.js b/dist/esm/service/configuration.js new file mode 100644 index 0000000..20f8f6b --- /dev/null +++ b/dist/esm/service/configuration.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export class Configuration { + constructor(param = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} +//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/esm/service/configuration.js.map b/dist/esm/service/configuration.js.map new file mode 100644 index 0000000..c1abfc7 --- /dev/null +++ b/dist/esm/service/configuration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/service/configuration.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAcH,MAAM,OAAO,aAAa;IA0DtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/service/index.d.ts b/dist/esm/service/index.d.ts new file mode 100644 index 0000000..6ad2f4b --- /dev/null +++ b/dist/esm/service/index.d.ts @@ -0,0 +1,15 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/index.d.ts.map b/dist/esm/service/index.d.ts.map new file mode 100644 index 0000000..64a4a25 --- /dev/null +++ b/dist/esm/service/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/index.js b/dist/esm/service/index.js new file mode 100644 index 0000000..58d83e8 --- /dev/null +++ b/dist/esm/service/index.js @@ -0,0 +1,17 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/service/index.js.map b/dist/esm/service/index.js.map new file mode 100644 index 0000000..391224e --- /dev/null +++ b/dist/esm/service/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/account-lendingpool-summary.d.ts b/dist/esm/service/model/account-lendingpool-summary.d.ts new file mode 100644 index 0000000..9243f91 --- /dev/null +++ b/dist/esm/service/model/account-lendingpool-summary.d.ts @@ -0,0 +1,93 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountLendingpoolSummary + */ +export interface AccountLendingpoolSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalCollateral': { + [key: string]: string | undefined; + }; + /** + * Health factor in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'healthFactor': string; + /** + * Net annual percentage yield in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'netApy': string; + /** + * Total supply rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalSupplyApy': string; + /** + * Total borrow rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalBorrowApy': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'availableToBorrow': { + [key: string]: string | undefined; + }; + /** + * Borrow power used in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'borrowPowerUsed': string; + /** + * Current liquidation threshold in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'currentLiquidationThreshold': string; + /** + * Loan to value in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'loanToValue': string; +} +//# sourceMappingURL=account-lendingpool-summary.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/account-lendingpool-summary.d.ts.map b/dist/esm/service/model/account-lendingpool-summary.d.ts.map new file mode 100644 index 0000000..43c9eca --- /dev/null +++ b/dist/esm/service/model/account-lendingpool-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-lendingpool-summary.d.ts","sourceRoot":"","sources":["../../../../src/service/model/account-lendingpool-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/esm/service/model/account-lendingpool-summary.js b/dist/esm/service/model/account-lendingpool-summary.js new file mode 100644 index 0000000..18d3e2b --- /dev/null +++ b/dist/esm/service/model/account-lendingpool-summary.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=account-lendingpool-summary.js.map \ No newline at end of file diff --git a/dist/esm/service/model/account-lendingpool-summary.js.map b/dist/esm/service/model/account-lendingpool-summary.js.map new file mode 100644 index 0000000..f7f1d99 --- /dev/null +++ b/dist/esm/service/model/account-lendingpool-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-lendingpool-summary.js","sourceRoot":"","sources":["../../../../src/service/model/account-lendingpool-summary.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/account-stablecoin-system-summary.d.ts b/dist/esm/service/model/account-stablecoin-system-summary.d.ts new file mode 100644 index 0000000..755ac56 --- /dev/null +++ b/dist/esm/service/model/account-stablecoin-system-summary.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStablecoinSystemSummary + */ +export interface AccountStablecoinSystemSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in stablecoin system + * @type {string} + * @memberof AccountStablecoinSystemSummary + */ + 'netApy': string; +} +//# sourceMappingURL=account-stablecoin-system-summary.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/account-stablecoin-system-summary.d.ts.map b/dist/esm/service/model/account-stablecoin-system-summary.d.ts.map new file mode 100644 index 0000000..12fe161 --- /dev/null +++ b/dist/esm/service/model/account-stablecoin-system-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-stablecoin-system-summary.d.ts","sourceRoot":"","sources":["../../../../src/service/model/account-stablecoin-system-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/service/model/account-stablecoin-system-summary.js b/dist/esm/service/model/account-stablecoin-system-summary.js new file mode 100644 index 0000000..5f5eab4 --- /dev/null +++ b/dist/esm/service/model/account-stablecoin-system-summary.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=account-stablecoin-system-summary.js.map \ No newline at end of file diff --git a/dist/esm/service/model/account-stablecoin-system-summary.js.map b/dist/esm/service/model/account-stablecoin-system-summary.js.map new file mode 100644 index 0000000..1086d9c --- /dev/null +++ b/dist/esm/service/model/account-stablecoin-system-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-stablecoin-system-summary.js","sourceRoot":"","sources":["../../../../src/service/model/account-stablecoin-system-summary.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/account-staking-summary.d.ts b/dist/esm/service/model/account-staking-summary.d.ts new file mode 100644 index 0000000..e545dc5 --- /dev/null +++ b/dist/esm/service/model/account-staking-summary.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStakingSummary + */ +export interface AccountStakingSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'totalStake': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'unclaimedReward': { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in staking contract + * @type {string} + * @memberof AccountStakingSummary + */ + 'netApy': string; +} +//# sourceMappingURL=account-staking-summary.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/account-staking-summary.d.ts.map b/dist/esm/service/model/account-staking-summary.d.ts.map new file mode 100644 index 0000000..35908bb --- /dev/null +++ b/dist/esm/service/model/account-staking-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-staking-summary.d.ts","sourceRoot":"","sources":["../../../../src/service/model/account-staking-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/service/model/account-staking-summary.js b/dist/esm/service/model/account-staking-summary.js new file mode 100644 index 0000000..c92d28c --- /dev/null +++ b/dist/esm/service/model/account-staking-summary.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=account-staking-summary.js.map \ No newline at end of file diff --git a/dist/esm/service/model/account-staking-summary.js.map b/dist/esm/service/model/account-staking-summary.js.map new file mode 100644 index 0000000..a4a5305 --- /dev/null +++ b/dist/esm/service/model/account-staking-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-staking-summary.js","sourceRoot":"","sources":["../../../../src/service/model/account-staking-summary.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/account.d.ts b/dist/esm/service/model/account.d.ts new file mode 100644 index 0000000..ed9f3ab --- /dev/null +++ b/dist/esm/service/model/account.d.ts @@ -0,0 +1,83 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AccountLendingpoolSummary } from './account-lendingpool-summary'; +import type { AccountStablecoinSystemSummary } from './account-stablecoin-system-summary'; +import type { AccountStakingSummary } from './account-staking-summary'; +import type { WalletBalance } from './wallet-balance'; +/** + * + * @export + * @interface Account + */ +export interface Account { + /** + * The number of points the account has. + * @type {number} + * @memberof Account + */ + 'points': number; + /** + * Ethereum address of the account + * @type {string} + * @memberof Account + */ + 'address': string; + /** + * + * @type {WalletBalance} + * @memberof Account + */ + 'walletBalance': WalletBalance; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'netWorth': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * + * @type {AccountLendingpoolSummary} + * @memberof Account + */ + 'lendingpoolSummary': AccountLendingpoolSummary; + /** + * + * @type {AccountStablecoinSystemSummary} + * @memberof Account + */ + 'stabelcoinSystemSummary': AccountStablecoinSystemSummary; + /** + * + * @type {AccountStakingSummary} + * @memberof Account + */ + 'stakingSummary': AccountStakingSummary; +} +//# sourceMappingURL=account.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/account.d.ts.map b/dist/esm/service/model/account.d.ts.map new file mode 100644 index 0000000..c19ca81 --- /dev/null +++ b/dist/esm/service/model/account.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/service/model/account.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAG1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,oBAAoB,EAAE,yBAAyB,CAAC;IAChD;;;;OAIG;IACH,yBAAyB,EAAE,8BAA8B,CAAC;IAC1D;;;;OAIG;IACH,gBAAgB,EAAE,qBAAqB,CAAC;CAC3C"} \ No newline at end of file diff --git a/dist/esm/service/model/account.js b/dist/esm/service/model/account.js new file mode 100644 index 0000000..2ed70e7 --- /dev/null +++ b/dist/esm/service/model/account.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=account.js.map \ No newline at end of file diff --git a/dist/esm/service/model/account.js.map b/dist/esm/service/model/account.js.map new file mode 100644 index 0000000..f3b1404 --- /dev/null +++ b/dist/esm/service/model/account.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/service/model/account.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/address-response.d.ts b/dist/esm/service/model/address-response.d.ts new file mode 100644 index 0000000..e3edbe6 --- /dev/null +++ b/dist/esm/service/model/address-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Address } from './address'; +/** + * + * @export + * @interface AddressResponse + */ +export interface AddressResponse { + /** + * + * @type {Array
} + * @memberof AddressResponse + */ + 'data': Array
; +} +//# sourceMappingURL=address-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/address-response.d.ts.map b/dist/esm/service/model/address-response.d.ts.map new file mode 100644 index 0000000..6c5a07b --- /dev/null +++ b/dist/esm/service/model/address-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"address-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/address-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/esm/service/model/address-response.js b/dist/esm/service/model/address-response.js new file mode 100644 index 0000000..394c29b --- /dev/null +++ b/dist/esm/service/model/address-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=address-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/address-response.js.map b/dist/esm/service/model/address-response.js.map new file mode 100644 index 0000000..4e7df2b --- /dev/null +++ b/dist/esm/service/model/address-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"address-response.js","sourceRoot":"","sources":["../../../../src/service/model/address-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/address.d.ts b/dist/esm/service/model/address.d.ts new file mode 100644 index 0000000..362a3ba --- /dev/null +++ b/dist/esm/service/model/address.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Address + */ +export interface Address { + /** + * The label of the address. + * @type {string} + * @memberof Address + */ + 'label': string; + /** + * The Ethereum address. + * @type {string} + * @memberof Address + */ + 'address': string; +} +//# sourceMappingURL=address.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/address.d.ts.map b/dist/esm/service/model/address.d.ts.map new file mode 100644 index 0000000..b02ddf5 --- /dev/null +++ b/dist/esm/service/model/address.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../src/service/model/address.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/address.js b/dist/esm/service/model/address.js new file mode 100644 index 0000000..e31ae3d --- /dev/null +++ b/dist/esm/service/model/address.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=address.js.map \ No newline at end of file diff --git a/dist/esm/service/model/address.js.map b/dist/esm/service/model/address.js.map new file mode 100644 index 0000000..dcccc80 --- /dev/null +++ b/dist/esm/service/model/address.js.map @@ -0,0 +1 @@ +{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/service/model/address.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/balance.d.ts b/dist/esm/service/model/balance.d.ts new file mode 100644 index 0000000..5ec6ff2 --- /dev/null +++ b/dist/esm/service/model/balance.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Token} + * @memberof Balance + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Balance + */ + 'balance': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=balance.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/balance.d.ts.map b/dist/esm/service/model/balance.d.ts.map new file mode 100644 index 0000000..4c91c8c --- /dev/null +++ b/dist/esm/service/model/balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/service/model/balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACrD"} \ No newline at end of file diff --git a/dist/esm/service/model/balance.js b/dist/esm/service/model/balance.js new file mode 100644 index 0000000..6e3d43a --- /dev/null +++ b/dist/esm/service/model/balance.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=balance.js.map \ No newline at end of file diff --git a/dist/esm/service/model/balance.js.map b/dist/esm/service/model/balance.js.map new file mode 100644 index 0000000..3369de5 --- /dev/null +++ b/dist/esm/service/model/balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../../src/service/model/balance.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/basic-event.d.ts b/dist/esm/service/model/basic-event.d.ts new file mode 100644 index 0000000..46bbe51 --- /dev/null +++ b/dist/esm/service/model/basic-event.d.ts @@ -0,0 +1,53 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './event-domain'; +import type { EventName } from './event-name'; +import type { EventType } from './event-type'; +import type { Log } from './log'; +/** + * + * @export + * @interface BasicEvent + */ +export interface BasicEvent { + /** + * Identifier for the event. + * @type {number} + * @memberof BasicEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof BasicEvent + */ + 'name': EventName; + /** + * + * @type {EventType} + * @memberof BasicEvent + */ + 'type': EventType; + /** + * + * @type {EventDomain} + * @memberof BasicEvent + */ + 'domain': EventDomain; + /** + * + * @type {Log} + * @memberof BasicEvent + */ + 'raw': Log; +} +//# sourceMappingURL=basic-event.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/basic-event.d.ts.map b/dist/esm/service/model/basic-event.d.ts.map new file mode 100644 index 0000000..963ad55 --- /dev/null +++ b/dist/esm/service/model/basic-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"basic-event.d.ts","sourceRoot":"","sources":["../../../../src/service/model/basic-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/esm/service/model/basic-event.js b/dist/esm/service/model/basic-event.js new file mode 100644 index 0000000..7fa9c9c --- /dev/null +++ b/dist/esm/service/model/basic-event.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=basic-event.js.map \ No newline at end of file diff --git a/dist/esm/service/model/basic-event.js.map b/dist/esm/service/model/basic-event.js.map new file mode 100644 index 0000000..1e0325d --- /dev/null +++ b/dist/esm/service/model/basic-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"basic-event.js","sourceRoot":"","sources":["../../../../src/service/model/basic-event.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step-data.d.ts b/dist/esm/service/model/chain-activity-step-data.d.ts new file mode 100644 index 0000000..b26709b --- /dev/null +++ b/dist/esm/service/model/chain-activity-step-data.d.ts @@ -0,0 +1,20 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EIP712SignRequest } from './eip712-sign-request'; +import type { PersonalSignRequest } from './personal-sign-request'; +import type { PreparedTx } from './prepared-tx'; +/** + * @type ChainActivityStepData + * @export + */ +export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; +//# sourceMappingURL=chain-activity-step-data.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step-data.d.ts.map b/dist/esm/service/model/chain-activity-step-data.d.ts.map new file mode 100644 index 0000000..5f4f988 --- /dev/null +++ b/dist/esm/service/model/chain-activity-step-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step-data.d.ts","sourceRoot":"","sources":["../../../../src/service/model/chain-activity-step-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step-data.js b/dist/esm/service/model/chain-activity-step-data.js new file mode 100644 index 0000000..373fd37 --- /dev/null +++ b/dist/esm/service/model/chain-activity-step-data.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=chain-activity-step-data.js.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step-data.js.map b/dist/esm/service/model/chain-activity-step-data.js.map new file mode 100644 index 0000000..3ae119d --- /dev/null +++ b/dist/esm/service/model/chain-activity-step-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step-data.js","sourceRoot":"","sources":["../../../../src/service/model/chain-activity-step-data.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step.d.ts b/dist/esm/service/model/chain-activity-step.d.ts new file mode 100644 index 0000000..ed15fdf --- /dev/null +++ b/dist/esm/service/model/chain-activity-step.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStepData } from './chain-activity-step-data'; +/** + * + * @export + * @interface ChainActivityStep + */ +export interface ChainActivityStep { + /** + * + * @type {string} + * @memberof ChainActivityStep + */ + 'type': ChainActivityStepTypeEnum; + /** + * + * @type {ChainActivityStepData} + * @memberof ChainActivityStep + */ + 'data': ChainActivityStepData; +} +export declare const ChainActivityStepTypeEnum: { + readonly PREPARED_TX: "PreparedTx"; + readonly EIP712_SIGN_REQUEST: "EIP712SignRequest"; + readonly PERSONAL_SIGN_REQUEST: "PersonalSignRequest"; +}; +export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; +//# sourceMappingURL=chain-activity-step.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step.d.ts.map b/dist/esm/service/model/chain-activity-step.d.ts.map new file mode 100644 index 0000000..914b167 --- /dev/null +++ b/dist/esm/service/model/chain-activity-step.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step.d.ts","sourceRoot":"","sources":["../../../../src/service/model/chain-activity-step.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAClC;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;CACjC;AAED,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step.js b/dist/esm/service/model/chain-activity-step.js new file mode 100644 index 0000000..98b73e8 --- /dev/null +++ b/dist/esm/service/model/chain-activity-step.js @@ -0,0 +1,19 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const ChainActivityStepTypeEnum = { + PREPARED_TX: 'PreparedTx', + EIP712_SIGN_REQUEST: 'EIP712SignRequest', + PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' +}; +//# sourceMappingURL=chain-activity-step.js.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity-step.js.map b/dist/esm/service/model/chain-activity-step.js.map new file mode 100644 index 0000000..7be9e79 --- /dev/null +++ b/dist/esm/service/model/chain-activity-step.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step.js","sourceRoot":"","sources":["../../../../src/service/model/chain-activity-step.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AA2BH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,mBAAmB,EAAE,mBAAmB;IACxC,qBAAqB,EAAE,qBAAqB;CACtC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity.d.ts b/dist/esm/service/model/chain-activity.d.ts new file mode 100644 index 0000000..8b20504 --- /dev/null +++ b/dist/esm/service/model/chain-activity.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStep } from './chain-activity-step'; +/** + * + * @export + * @interface ChainActivity + */ +export interface ChainActivity { + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'stepNumber': number; + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'numberOfSteps': number; + /** + * + * @type {Array} + * @memberof ChainActivity + */ + 'steps': Array; +} +//# sourceMappingURL=chain-activity.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity.d.ts.map b/dist/esm/service/model/chain-activity.d.ts.map new file mode 100644 index 0000000..24c0dc2 --- /dev/null +++ b/dist/esm/service/model/chain-activity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity.d.ts","sourceRoot":"","sources":["../../../../src/service/model/chain-activity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACrC"} \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity.js b/dist/esm/service/model/chain-activity.js new file mode 100644 index 0000000..692e508 --- /dev/null +++ b/dist/esm/service/model/chain-activity.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=chain-activity.js.map \ No newline at end of file diff --git a/dist/esm/service/model/chain-activity.js.map b/dist/esm/service/model/chain-activity.js.map new file mode 100644 index 0000000..0108d6e --- /dev/null +++ b/dist/esm/service/model/chain-activity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity.js","sourceRoot":"","sources":["../../../../src/service/model/chain-activity.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/dutch-amount.d.ts b/dist/esm/service/model/dutch-amount.d.ts new file mode 100644 index 0000000..7d1b43d --- /dev/null +++ b/dist/esm/service/model/dutch-amount.d.ts @@ -0,0 +1,48 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface DutchAmount + */ +export interface DutchAmount { + /** + * + * @type {Token} + * @memberof DutchAmount + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'startAmount': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'endAmount': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof DutchAmount + */ + 'recipient'?: string; +} +//# sourceMappingURL=dutch-amount.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/dutch-amount.d.ts.map b/dist/esm/service/model/dutch-amount.d.ts.map new file mode 100644 index 0000000..6c483b7 --- /dev/null +++ b/dist/esm/service/model/dutch-amount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dutch-amount.d.ts","sourceRoot":"","sources":["../../../../src/service/model/dutch-amount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/dutch-amount.js b/dist/esm/service/model/dutch-amount.js new file mode 100644 index 0000000..1d9835f --- /dev/null +++ b/dist/esm/service/model/dutch-amount.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=dutch-amount.js.map \ No newline at end of file diff --git a/dist/esm/service/model/dutch-amount.js.map b/dist/esm/service/model/dutch-amount.js.map new file mode 100644 index 0000000..93c7e70 --- /dev/null +++ b/dist/esm/service/model/dutch-amount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dutch-amount.js","sourceRoot":"","sources":["../../../../src/service/model/dutch-amount.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/eip712-sign-request.d.ts b/dist/esm/service/model/eip712-sign-request.d.ts new file mode 100644 index 0000000..dc27eb4 --- /dev/null +++ b/dist/esm/service/model/eip712-sign-request.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface EIP712SignRequest + */ +export interface EIP712SignRequest { + /** + * The name of the EIP712 signature + * @type {string} + * @memberof EIP712SignRequest + */ + 'name': string; + /** + * + * @type {TypedData} + * @memberof EIP712SignRequest + */ + 'typedData': TypedData; + /** + * The hash of the EIP712 signature that needs to be signed + * @type {string} + * @memberof EIP712SignRequest + */ + 'hash': string; +} +//# sourceMappingURL=eip712-sign-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/eip712-sign-request.d.ts.map b/dist/esm/service/model/eip712-sign-request.d.ts.map new file mode 100644 index 0000000..8c97aa1 --- /dev/null +++ b/dist/esm/service/model/eip712-sign-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"eip712-sign-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/eip712-sign-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/service/model/eip712-sign-request.js b/dist/esm/service/model/eip712-sign-request.js new file mode 100644 index 0000000..e26a17a --- /dev/null +++ b/dist/esm/service/model/eip712-sign-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=eip712-sign-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/eip712-sign-request.js.map b/dist/esm/service/model/eip712-sign-request.js.map new file mode 100644 index 0000000..27b1e61 --- /dev/null +++ b/dist/esm/service/model/eip712-sign-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eip712-sign-request.js","sourceRoot":"","sources":["../../../../src/service/model/eip712-sign-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/error-message.d.ts b/dist/esm/service/model/error-message.d.ts new file mode 100644 index 0000000..c89cb8d --- /dev/null +++ b/dist/esm/service/model/error-message.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorMessage + */ +export interface ErrorMessage { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorMessage + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorMessage + */ + 'solutions': Array; +} +//# sourceMappingURL=error-message.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/error-message.d.ts.map b/dist/esm/service/model/error-message.d.ts.map new file mode 100644 index 0000000..4664fe7 --- /dev/null +++ b/dist/esm/service/model/error-message.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../../src/service/model/error-message.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/service/model/error-message.js b/dist/esm/service/model/error-message.js new file mode 100644 index 0000000..d835781 --- /dev/null +++ b/dist/esm/service/model/error-message.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=error-message.js.map \ No newline at end of file diff --git a/dist/esm/service/model/error-message.js.map b/dist/esm/service/model/error-message.js.map new file mode 100644 index 0000000..1fc196e --- /dev/null +++ b/dist/esm/service/model/error-message.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error-message.js","sourceRoot":"","sources":["../../../../src/service/model/error-message.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/event-details-response.d.ts b/dist/esm/service/model/event-details-response.d.ts new file mode 100644 index 0000000..febe43b --- /dev/null +++ b/dist/esm/service/model/event-details-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Log } from './log'; +/** + * + * @export + * @interface EventDetailsResponse + */ +export interface EventDetailsResponse { + /** + * + * @type {Array} + * @memberof EventDetailsResponse + */ + 'data': Array; +} +//# sourceMappingURL=event-details-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/event-details-response.d.ts.map b/dist/esm/service/model/event-details-response.d.ts.map new file mode 100644 index 0000000..c2f501b --- /dev/null +++ b/dist/esm/service/model/event-details-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-details-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/event-details-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/service/model/event-details-response.js b/dist/esm/service/model/event-details-response.js new file mode 100644 index 0000000..fcb5abc --- /dev/null +++ b/dist/esm/service/model/event-details-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=event-details-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/event-details-response.js.map b/dist/esm/service/model/event-details-response.js.map new file mode 100644 index 0000000..c8b13bb --- /dev/null +++ b/dist/esm/service/model/event-details-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-details-response.js","sourceRoot":"","sources":["../../../../src/service/model/event-details-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/event-domain.d.ts b/dist/esm/service/model/event-domain.d.ts new file mode 100644 index 0000000..8f348d8 --- /dev/null +++ b/dist/esm/service/model/event-domain.d.ts @@ -0,0 +1,24 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The domain of the event. + * @export + * @enum {string} + */ +export declare const EventDomain: { + readonly STABLE_COIN_SYSTEM: "stableCoinSystem"; + readonly LENDINGPOOL: "lendingpool"; + readonly CHAINLINK: "chainlink"; + readonly UNISWAP_V3: "uniswapV3"; +}; +export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; +//# sourceMappingURL=event-domain.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/event-domain.d.ts.map b/dist/esm/service/model/event-domain.d.ts.map new file mode 100644 index 0000000..663847f --- /dev/null +++ b/dist/esm/service/model/event-domain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-domain.d.ts","sourceRoot":"","sources":["../../../../src/service/model/event-domain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/event-domain.js b/dist/esm/service/model/event-domain.js new file mode 100644 index 0000000..6a10331 --- /dev/null +++ b/dist/esm/service/model/event-domain.js @@ -0,0 +1,25 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The domain of the event. + * @export + * @enum {string} + */ +export const EventDomain = { + STABLE_COIN_SYSTEM: 'stableCoinSystem', + LENDINGPOOL: 'lendingpool', + CHAINLINK: 'chainlink', + UNISWAP_V3: 'uniswapV3' +}; +//# sourceMappingURL=event-domain.js.map \ No newline at end of file diff --git a/dist/esm/service/model/event-domain.js.map b/dist/esm/service/model/event-domain.js.map new file mode 100644 index 0000000..df81043 --- /dev/null +++ b/dist/esm/service/model/event-domain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-domain.js","sourceRoot":"","sources":["../../../../src/service/model/event-domain.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,kBAAkB,EAAE,kBAAkB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,WAAW;CACjB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/event-name.d.ts b/dist/esm/service/model/event-name.d.ts new file mode 100644 index 0000000..fe8ed5f --- /dev/null +++ b/dist/esm/service/model/event-name.d.ts @@ -0,0 +1,36 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const EventName: { + readonly VAULTS_REPAY: "VaultsRepay"; + readonly VAULTS_WITHDRAW: "VaultsWithdraw"; + readonly VAULTS_DEPOSIT: "VaultsDeposit"; + readonly VAULTS_MINT: "VaultsMint"; + readonly VAULTS_KICK: "VaultsKick"; + readonly VAULTS_TAKE: "VaultsTake"; + readonly VAULTS_REDO: "VaultsRedo"; + readonly VAULTS_YANK: "VaultsYank"; + readonly LENDINGPOOL_WITHDRAW: "LendingpoolWithdraw"; + readonly LENDINGPOOL_REPAY: "LendingpoolRepay"; + readonly LENDINGPOOL_LIQUIDATION_CALL: "LendingpoolLiquidationCall"; + readonly LENDINGPOOL_BORROW: "LendingpoolBorrow"; + readonly FILE: "File"; + readonly PERMISSION: "Permission"; + readonly MEDIAN: "Median"; + readonly UNKNOWN: "Unknown"; +}; +export type EventName = typeof EventName[keyof typeof EventName]; +//# sourceMappingURL=event-name.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/event-name.d.ts.map b/dist/esm/service/model/event-name.d.ts.map new file mode 100644 index 0000000..17bd80a --- /dev/null +++ b/dist/esm/service/model/event-name.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-name.d.ts","sourceRoot":"","sources":["../../../../src/service/model/event-name.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/event-name.js b/dist/esm/service/model/event-name.js new file mode 100644 index 0000000..6df2894 --- /dev/null +++ b/dist/esm/service/model/event-name.js @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export const EventName = { + VAULTS_REPAY: 'VaultsRepay', + VAULTS_WITHDRAW: 'VaultsWithdraw', + VAULTS_DEPOSIT: 'VaultsDeposit', + VAULTS_MINT: 'VaultsMint', + VAULTS_KICK: 'VaultsKick', + VAULTS_TAKE: 'VaultsTake', + VAULTS_REDO: 'VaultsRedo', + VAULTS_YANK: 'VaultsYank', + LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', + LENDINGPOOL_REPAY: 'LendingpoolRepay', + LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', + LENDINGPOOL_BORROW: 'LendingpoolBorrow', + FILE: 'File', + PERMISSION: 'Permission', + MEDIAN: 'Median', + UNKNOWN: 'Unknown' +}; +//# sourceMappingURL=event-name.js.map \ No newline at end of file diff --git a/dist/esm/service/model/event-name.js.map b/dist/esm/service/model/event-name.js.map new file mode 100644 index 0000000..a4b365e --- /dev/null +++ b/dist/esm/service/model/event-name.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-name.js","sourceRoot":"","sources":["../../../../src/service/model/event-name.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE,aAAa;IAC3B,eAAe,EAAE,gBAAgB;IACjC,cAAc,EAAE,eAAe;IAC/B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,oBAAoB,EAAE,qBAAqB;IAC3C,iBAAiB,EAAE,kBAAkB;IACrC,4BAA4B,EAAE,4BAA4B;IAC1D,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/event-type.d.ts b/dist/esm/service/model/event-type.d.ts new file mode 100644 index 0000000..7ca5041 --- /dev/null +++ b/dist/esm/service/model/event-type.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The type of the event. who has triggered the event. + * @export + * @enum {string} + */ +export declare const EventType: { + readonly EXECUTIVE: "executive"; + readonly ORACLE: "oracle"; + readonly USER: "user"; +}; +export type EventType = typeof EventType[keyof typeof EventType]; +//# sourceMappingURL=event-type.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/event-type.d.ts.map b/dist/esm/service/model/event-type.d.ts.map new file mode 100644 index 0000000..86b7596 --- /dev/null +++ b/dist/esm/service/model/event-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../../../src/service/model/event-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/event-type.js b/dist/esm/service/model/event-type.js new file mode 100644 index 0000000..ca6043e --- /dev/null +++ b/dist/esm/service/model/event-type.js @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The type of the event. who has triggered the event. + * @export + * @enum {string} + */ +export const EventType = { + EXECUTIVE: 'executive', + ORACLE: 'oracle', + USER: 'user' +}; +//# sourceMappingURL=event-type.js.map \ No newline at end of file diff --git a/dist/esm/service/model/event-type.js.map b/dist/esm/service/model/event-type.js.map new file mode 100644 index 0000000..7a1b7bb --- /dev/null +++ b/dist/esm/service/model/event-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-type.js","sourceRoot":"","sources":["../../../../src/service/model/event-type.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/extended-event.d.ts b/dist/esm/service/model/extended-event.d.ts new file mode 100644 index 0000000..3a89a55 --- /dev/null +++ b/dist/esm/service/model/extended-event.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './event-domain'; +import type { EventName } from './event-name'; +import type { EventType } from './event-type'; +import type { Log } from './log'; +/** + * + * @export + * @interface ExtendedEvent + */ +export interface ExtendedEvent { + /** + * + * @type {EventDomain} + * @memberof ExtendedEvent + */ + 'domain': EventDomain; + /** + * Identifier for the event. + * @type {number} + * @memberof ExtendedEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof ExtendedEvent + */ + 'name': EventName; + /** + * + * @type {Log} + * @memberof ExtendedEvent + */ + 'raw': Log; + /** + * + * @type {EventType} + * @memberof ExtendedEvent + */ + 'type': EventType; + /** + * The payload of the event. The payload is a JSON-marshalled + * @type {{ [key: string]: any | undefined; }} + * @memberof ExtendedEvent + */ + 'payload': { + [key: string]: any | undefined; + }; +} +//# sourceMappingURL=extended-event.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/extended-event.d.ts.map b/dist/esm/service/model/extended-event.d.ts.map new file mode 100644 index 0000000..3ac9782 --- /dev/null +++ b/dist/esm/service/model/extended-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"extended-event.d.ts","sourceRoot":"","sources":["../../../../src/service/model/extended-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAClD"} \ No newline at end of file diff --git a/dist/esm/service/model/extended-event.js b/dist/esm/service/model/extended-event.js new file mode 100644 index 0000000..9a88a01 --- /dev/null +++ b/dist/esm/service/model/extended-event.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=extended-event.js.map \ No newline at end of file diff --git a/dist/esm/service/model/extended-event.js.map b/dist/esm/service/model/extended-event.js.map new file mode 100644 index 0000000..a17c1b4 --- /dev/null +++ b/dist/esm/service/model/extended-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"extended-event.js","sourceRoot":"","sources":["../../../../src/service/model/extended-event.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/formatted-reserve-data.d.ts b/dist/esm/service/model/formatted-reserve-data.d.ts new file mode 100644 index 0000000..c8832b9 --- /dev/null +++ b/dist/esm/service/model/formatted-reserve-data.d.ts @@ -0,0 +1,154 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface FormattedReserveData + */ +export interface FormattedReserveData { + /** + * Identifier for the reserve data. + * @type {string} + * @memberof FormattedReserveData + */ + 'id': string; + /** + * + * @type {Token} + * @memberof FormattedReserveData + */ + 'underlyingAsset': Token; + /** + * Address of the associated zToken contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'zTokenAddress': string; + /** + * Address of the associated variable debt token contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'variableDebtTokenAddress': string; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'borrowingEnabled': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isActive': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isFrozen': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'usageAsCollateralEnabled': boolean; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveFactor': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'baseLTVasCollateral': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationThreshold': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationBonus': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'utilizationRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalLiquidity': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'availableLiquidity': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPR': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPR': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'price': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=formatted-reserve-data.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/formatted-reserve-data.d.ts.map b/dist/esm/service/model/formatted-reserve-data.d.ts.map new file mode 100644 index 0000000..8cbf2a7 --- /dev/null +++ b/dist/esm/service/model/formatted-reserve-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"formatted-reserve-data.d.ts","sourceRoot":"","sources":["../../../../src/service/model/formatted-reserve-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,0BAA0B,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,oBAAoB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD"} \ No newline at end of file diff --git a/dist/esm/service/model/formatted-reserve-data.js b/dist/esm/service/model/formatted-reserve-data.js new file mode 100644 index 0000000..1a0248c --- /dev/null +++ b/dist/esm/service/model/formatted-reserve-data.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=formatted-reserve-data.js.map \ No newline at end of file diff --git a/dist/esm/service/model/formatted-reserve-data.js.map b/dist/esm/service/model/formatted-reserve-data.js.map new file mode 100644 index 0000000..5854bac --- /dev/null +++ b/dist/esm/service/model/formatted-reserve-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"formatted-reserve-data.js","sourceRoot":"","sources":["../../../../src/service/model/formatted-reserve-data.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/ilk.d.ts b/dist/esm/service/model/ilk.d.ts new file mode 100644 index 0000000..5ff1997 --- /dev/null +++ b/dist/esm/service/model/ilk.d.ts @@ -0,0 +1,150 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Ilk + */ +export interface Ilk { + /** + * Name of the ILK + * @type {string} + * @memberof Ilk + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Ilk + */ + 'symbol': Symbol; + /** + * Minimum Collateralization Ratio + * @type {string} + * @memberof Ilk + */ + 'minimumCollateralizationRatio': string; + /** + * Maximum Loan To Value + * @type {string} + * @memberof Ilk + */ + 'maximumLoanToValue': string; + /** + * Liquidation Penalty + * @type {string} + * @memberof Ilk + */ + 'liquidationPenalty': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debtCeiling': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debt': { + [key: string]: string | undefined; + }; + /** + * Annual Stability Fee + * @type {string} + * @memberof Ilk + */ + 'annualStabilityFee': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dustLimit': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'price': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'nextPrice': { + [key: string]: string | undefined; + }; + /** + * Join Address + * @type {string} + * @memberof Ilk + */ + 'join': string; + /** + * Median Address + * @type {string} + * @memberof Ilk + */ + 'median': string; + /** + * Gem Address + * @type {string} + * @memberof Ilk + */ + 'gem': string; + /** + * Clipper Address + * @type {string} + * @memberof Ilk + */ + 'clipper': string; + /** + * Pip Address + * @type {string} + * @memberof Ilk + */ + 'pip': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'hole': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dirt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'availableToBorrow': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=ilk.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/ilk.d.ts.map b/dist/esm/service/model/ilk.d.ts.map new file mode 100644 index 0000000..5c825e2 --- /dev/null +++ b/dist/esm/service/model/ilk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilk.d.ts","sourceRoot":"","sources":["../../../../src/service/model/ilk.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,+BAA+B,EAAE,MAAM,CAAC;IACxC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC/D"} \ No newline at end of file diff --git a/dist/esm/service/model/ilk.js b/dist/esm/service/model/ilk.js new file mode 100644 index 0000000..da3b1aa --- /dev/null +++ b/dist/esm/service/model/ilk.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=ilk.js.map \ No newline at end of file diff --git a/dist/esm/service/model/ilk.js.map b/dist/esm/service/model/ilk.js.map new file mode 100644 index 0000000..bbcd7e2 --- /dev/null +++ b/dist/esm/service/model/ilk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilk.js","sourceRoot":"","sources":["../../../../src/service/model/ilk.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/ilks-response.d.ts b/dist/esm/service/model/ilks-response.d.ts new file mode 100644 index 0000000..b9bd0bb --- /dev/null +++ b/dist/esm/service/model/ilks-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface IlksResponse + */ +export interface IlksResponse { + /** + * + * @type {Array} + * @memberof IlksResponse + */ + 'data': Array; +} +//# sourceMappingURL=ilks-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/ilks-response.d.ts.map b/dist/esm/service/model/ilks-response.d.ts.map new file mode 100644 index 0000000..ae1c5d8 --- /dev/null +++ b/dist/esm/service/model/ilks-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/ilks-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/service/model/ilks-response.js b/dist/esm/service/model/ilks-response.js new file mode 100644 index 0000000..43af135 --- /dev/null +++ b/dist/esm/service/model/ilks-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=ilks-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/ilks-response.js.map b/dist/esm/service/model/ilks-response.js.map new file mode 100644 index 0000000..8cd7e3d --- /dev/null +++ b/dist/esm/service/model/ilks-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-response.js","sourceRoot":"","sources":["../../../../src/service/model/ilks-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/index.d.ts b/dist/esm/service/model/index.d.ts new file mode 100644 index 0000000..e7deced --- /dev/null +++ b/dist/esm/service/model/index.d.ts @@ -0,0 +1,107 @@ +export * from './account'; +export * from './account-lendingpool-summary'; +export * from './account-stablecoin-system-summary'; +export * from './account-staking-summary'; +export * from './address'; +export * from './address-response'; +export * from './balance'; +export * from './basic-event'; +export * from './chain-activity'; +export * from './chain-activity-step'; +export * from './chain-activity-step-data'; +export * from './dutch-amount'; +export * from './eip712-sign-request'; +export * from './error-message'; +export * from './event-details-response'; +export * from './event-domain'; +export * from './event-name'; +export * from './event-type'; +export * from './extended-event'; +export * from './formatted-reserve-data'; +export * from './ilk'; +export * from './ilks-response'; +export * from './lendingpool-borrow'; +export * from './lendingpool-borrow-tx-request'; +export * from './lendingpool-borrow-tx-response'; +export * from './lendingpool-deposit'; +export * from './lendingpool-deposit-tx-request'; +export * from './lendingpool-deposit-tx-response'; +export * from './lendingpool-repay-tx-request'; +export * from './lendingpool-repay-tx-response'; +export * from './lendingpool-stats'; +export * from './lendingpool-tx-response'; +export * from './lendingpool-use-asset-as-collateral-tx-request'; +export * from './lendingpool-use-asset-as-collateral-tx-response'; +export * from './lendingpool-withdraw-tx-request'; +export * from './lendingpool-withdraw-tx-response'; +export * from './log'; +export * from './method-parameters'; +export * from './model-error'; +export * from './order'; +export * from './order-info'; +export * from './order-response'; +export * from './order-type'; +export * from './permit-single'; +export * from './personal-sign-request'; +export * from './prepared-tx'; +export * from './price'; +export * from './price-list-response'; +export * from './quote-request'; +export * from './quote-request-options'; +export * from './quote-response'; +export * from './raw-dutch-amount'; +export * from './route-item'; +export * from './scoreboard'; +export * from './scoreboard-item'; +export * from './stablecoin-system-bark-tx-request'; +export * from './stablecoin-system-create-vault-tx-request'; +export * from './stablecoin-system-deposit-collateral-tx-request'; +export * from './stablecoin-system-gemexit-tx-request'; +export * from './stablecoin-system-mint-zar-tx-request'; +export * from './stablecoin-system-redo-tx-request'; +export * from './stablecoin-system-repay-zar-tx-request'; +export * from './stablecoin-system-stats'; +export * from './stablecoin-system-take-tx-request'; +export * from './stablecoin-system-withdraw-collateral-tx-request'; +export * from './stablecoin-system-zarexit-tx-request'; +export * from './stablecoin-system-zarjoin-tx-request'; +export * from './stake-balance'; +export * from './stake-plan'; +export * from './stake-plans-response'; +export * from './staking-collect-reward-tx-request'; +export * from './staking-collect-reward-tx-response'; +export * from './staking-stake-tx-request'; +export * from './staking-stake-tx-response'; +export * from './staking-withdraw-tx-request'; +export * from './staking-withdraw-tx-response'; +export * from './stats'; +export * from './symbol'; +export * from './system-bad-debt'; +export * from './system-debt'; +export * from './system-debt-ceiling'; +export * from './system-surplus'; +export * from './system-surplus-buffer'; +export * from './system-surplus-lot-size'; +export * from './time-range'; +export * from './timestamp'; +export * from './token'; +export * from './trade-type'; +export * from './type'; +export * from './typed-data'; +export * from './typed-data-domain'; +export * from './unclaimed-reward'; +export * from './update-order-request'; +export * from './user-borrows-response'; +export * from './user-deposits-response'; +export * from './user-error'; +export * from './user-stake'; +export * from './user-stakes-response'; +export * from './v3-pool-in-route'; +export * from './vault'; +export * from './vault-event'; +export * from './vault-event-extension'; +export * from './vault-event-item'; +export * from './vault-events-response'; +export * from './vaults-response'; +export * from './wallet-balance'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/index.d.ts.map b/dist/esm/service/model/index.d.ts.map new file mode 100644 index 0000000..e40539d --- /dev/null +++ b/dist/esm/service/model/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,OAAO,CAAC;AACtB,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC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B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/index.js b/dist/esm/service/model/index.js new file mode 100644 index 0000000..561cc49 --- /dev/null +++ b/dist/esm/service/model/index.js @@ -0,0 +1,107 @@ +export * from './account'; +export * from './account-lendingpool-summary'; +export * from './account-stablecoin-system-summary'; +export * from './account-staking-summary'; +export * from './address'; +export * from './address-response'; +export * from './balance'; +export * from './basic-event'; +export * from './chain-activity'; +export * from './chain-activity-step'; +export * from './chain-activity-step-data'; +export * from './dutch-amount'; +export * from './eip712-sign-request'; +export * from './error-message'; +export * from './event-details-response'; +export * from './event-domain'; +export * from './event-name'; +export * from './event-type'; +export * from './extended-event'; +export * from './formatted-reserve-data'; +export * from './ilk'; +export * from './ilks-response'; +export * from './lendingpool-borrow'; +export * from './lendingpool-borrow-tx-request'; +export * from './lendingpool-borrow-tx-response'; +export * from './lendingpool-deposit'; +export * from './lendingpool-deposit-tx-request'; +export * from './lendingpool-deposit-tx-response'; +export * from './lendingpool-repay-tx-request'; +export * from './lendingpool-repay-tx-response'; +export * from './lendingpool-stats'; +export * from './lendingpool-tx-response'; +export * from './lendingpool-use-asset-as-collateral-tx-request'; +export * from './lendingpool-use-asset-as-collateral-tx-response'; +export * from './lendingpool-withdraw-tx-request'; +export * from './lendingpool-withdraw-tx-response'; +export * from './log'; +export * from './method-parameters'; +export * from './model-error'; +export * from './order'; +export * from './order-info'; +export * from './order-response'; +export * from './order-type'; +export * from './permit-single'; +export * from './personal-sign-request'; +export * from './prepared-tx'; +export * from './price'; +export * from './price-list-response'; +export * from './quote-request'; +export * from './quote-request-options'; +export * from './quote-response'; +export * from './raw-dutch-amount'; +export * from './route-item'; +export * from './scoreboard'; +export * from './scoreboard-item'; +export * from './stablecoin-system-bark-tx-request'; +export * from './stablecoin-system-create-vault-tx-request'; +export * from './stablecoin-system-deposit-collateral-tx-request'; +export * from './stablecoin-system-gemexit-tx-request'; +export * from './stablecoin-system-mint-zar-tx-request'; +export * from './stablecoin-system-redo-tx-request'; +export * from './stablecoin-system-repay-zar-tx-request'; +export * from './stablecoin-system-stats'; +export * from './stablecoin-system-take-tx-request'; +export * from './stablecoin-system-withdraw-collateral-tx-request'; +export * from './stablecoin-system-zarexit-tx-request'; +export * from './stablecoin-system-zarjoin-tx-request'; +export * from './stake-balance'; +export * from './stake-plan'; +export * from './stake-plans-response'; +export * from './staking-collect-reward-tx-request'; +export * from './staking-collect-reward-tx-response'; +export * from './staking-stake-tx-request'; +export * from './staking-stake-tx-response'; +export * from './staking-withdraw-tx-request'; +export * from './staking-withdraw-tx-response'; +export * from './stats'; +export * from './symbol'; +export * from './system-bad-debt'; +export * from './system-debt'; +export * from './system-debt-ceiling'; +export * from './system-surplus'; +export * from './system-surplus-buffer'; +export * from './system-surplus-lot-size'; +export * from './time-range'; +export * from './timestamp'; +export * from './token'; +export * from './trade-type'; +export * from './type'; +export * from './typed-data'; +export * from './typed-data-domain'; +export * from './unclaimed-reward'; +export * from './update-order-request'; +export * from './user-borrows-response'; +export * from './user-deposits-response'; +export * from './user-error'; +export * from './user-stake'; +export * from './user-stakes-response'; +export * from './v3-pool-in-route'; +export * from './vault'; +export * from './vault-event'; +export * from './vault-event-extension'; +export * from './vault-event-item'; +export * from './vault-events-response'; +export * from './vaults-response'; +export * from './wallet-balance'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/service/model/index.js.map b/dist/esm/service/model/index.js.map new file mode 100644 index 0000000..b2a8fbb --- /dev/null +++ b/dist/esm/service/model/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,OAAO,CAAC;AACtB,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CA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AC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts b/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts new file mode 100644 index 0000000..8357b05 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolBorrowTxRequest + */ +export interface LendingpoolBorrowTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'symbol': string; + /** + * The amount to borrow in native token units + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-borrow-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts.map b/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts.map new file mode 100644 index 0000000..0d6c96c --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-request.js b/dist/esm/service/model/lendingpool-borrow-tx-request.js new file mode 100644 index 0000000..91e4569 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-borrow-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-request.js.map b/dist/esm/service/model/lendingpool-borrow-tx-request.js.map new file mode 100644 index 0000000..709e957 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts b/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts new file mode 100644 index 0000000..00707d9 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolBorrowTxResponse + */ +export interface LendingpoolBorrowTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolBorrowTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolBorrowTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-borrow-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts.map new file mode 100644 index 0000000..90612a6 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-response.js b/dist/esm/service/model/lendingpool-borrow-tx-response.js new file mode 100644 index 0000000..303b937 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-borrow-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow-tx-response.js.map b/dist/esm/service/model/lendingpool-borrow-tx-response.js.map new file mode 100644 index 0000000..b1e18be --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow.d.ts b/dist/esm/service/model/lendingpool-borrow.d.ts new file mode 100644 index 0000000..c2604eb --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface LendingpoolBorrow + */ +export interface LendingpoolBorrow { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolBorrow + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * The borrow rate. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'borrowRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'maxBorrowAmount': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=lendingpool-borrow.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow.d.ts.map b/dist/esm/service/model/lendingpool-borrow.d.ts.map new file mode 100644 index 0000000..d4b8a90 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC7D"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow.js b/dist/esm/service/model/lendingpool-borrow.js new file mode 100644 index 0000000..b6bbf2c --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-borrow.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-borrow.js.map b/dist/esm/service/model/lendingpool-borrow.js.map new file mode 100644 index 0000000..5f88a46 --- /dev/null +++ b/dist/esm/service/model/lendingpool-borrow.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-borrow.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts b/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts new file mode 100644 index 0000000..e856b43 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolDepositTxRequest + */ +export interface LendingpoolDepositTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'symbol': string; + /** + * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-deposit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts.map b/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts.map new file mode 100644 index 0000000..077e46f --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-request.js b/dist/esm/service/model/lendingpool-deposit-tx-request.js new file mode 100644 index 0000000..8546396 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-deposit-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-request.js.map b/dist/esm/service/model/lendingpool-deposit-tx-request.js.map new file mode 100644 index 0000000..6665669 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts b/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts new file mode 100644 index 0000000..1c6e949 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolDepositTxResponse + */ +export interface LendingpoolDepositTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolDepositTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolDepositTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-deposit-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts.map new file mode 100644 index 0000000..a9d3b7d --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-response.js b/dist/esm/service/model/lendingpool-deposit-tx-response.js new file mode 100644 index 0000000..2c988ac --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-deposit-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit-tx-response.js.map b/dist/esm/service/model/lendingpool-deposit-tx-response.js.map new file mode 100644 index 0000000..464e61b --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit.d.ts b/dist/esm/service/model/lendingpool-deposit.d.ts new file mode 100644 index 0000000..be443a2 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit.d.ts @@ -0,0 +1,52 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface LendingpoolDeposit + */ +export interface LendingpoolDeposit { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolDeposit + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolDeposit + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * Whether the user has enabled the asset as collateral. + * @type {boolean} + * @memberof LendingpoolDeposit + */ + 'usageAsCollateralEnabledOnUser': boolean; + /** + * The supply APY. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'supplyAPY': string; +} +//# sourceMappingURL=lendingpool-deposit.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit.d.ts.map b/dist/esm/service/model/lendingpool-deposit.d.ts.map new file mode 100644 index 0000000..11a74d2 --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,gCAAgC,EAAE,OAAO,CAAC;IAC1C;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit.js b/dist/esm/service/model/lendingpool-deposit.js new file mode 100644 index 0000000..8ce7bad --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-deposit.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-deposit.js.map b/dist/esm/service/model/lendingpool-deposit.js.map new file mode 100644 index 0000000..be9bffa --- /dev/null +++ b/dist/esm/service/model/lendingpool-deposit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-deposit.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-request.d.ts b/dist/esm/service/model/lendingpool-repay-tx-request.d.ts new file mode 100644 index 0000000..94957fe --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolRepayTxRequest + */ +export interface LendingpoolRepayTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'symbol': string; + /** + * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-repay-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-request.d.ts.map b/dist/esm/service/model/lendingpool-repay-tx-request.d.ts.map new file mode 100644 index 0000000..e78f5a3 --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-repay-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-request.js b/dist/esm/service/model/lendingpool-repay-tx-request.js new file mode 100644 index 0000000..f0be0f5 --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-repay-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-request.js.map b/dist/esm/service/model/lendingpool-repay-tx-request.js.map new file mode 100644 index 0000000..12fa46c --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-repay-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-response.d.ts b/dist/esm/service/model/lendingpool-repay-tx-response.d.ts new file mode 100644 index 0000000..489d30d --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolRepayTxResponse + */ +export interface LendingpoolRepayTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolRepayTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolRepayTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-repay-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-repay-tx-response.d.ts.map new file mode 100644 index 0000000..eb02395 --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-repay-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-response.js b/dist/esm/service/model/lendingpool-repay-tx-response.js new file mode 100644 index 0000000..0bf9386 --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-repay-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-repay-tx-response.js.map b/dist/esm/service/model/lendingpool-repay-tx-response.js.map new file mode 100644 index 0000000..0edb59f --- /dev/null +++ b/dist/esm/service/model/lendingpool-repay-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-repay-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-stats.d.ts b/dist/esm/service/model/lendingpool-stats.d.ts new file mode 100644 index 0000000..4c1e227 --- /dev/null +++ b/dist/esm/service/model/lendingpool-stats.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolStats + */ +export interface LendingpoolStats { + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalAvailable': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalBorrows': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalMarketSize': any; +} +//# sourceMappingURL=lendingpool-stats.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-stats.d.ts.map b/dist/esm/service/model/lendingpool-stats.d.ts.map new file mode 100644 index 0000000..7451f55 --- /dev/null +++ b/dist/esm/service/model/lendingpool-stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-stats.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,gBAAgB,EAAE,GAAG,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,GAAG,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,EAAE,GAAG,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-stats.js b/dist/esm/service/model/lendingpool-stats.js new file mode 100644 index 0000000..9cfab83 --- /dev/null +++ b/dist/esm/service/model/lendingpool-stats.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-stats.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-stats.js.map b/dist/esm/service/model/lendingpool-stats.js.map new file mode 100644 index 0000000..8460c01 --- /dev/null +++ b/dist/esm/service/model/lendingpool-stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-stats.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-stats.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-tx-response.d.ts b/dist/esm/service/model/lendingpool-tx-response.d.ts new file mode 100644 index 0000000..b6a76e8 --- /dev/null +++ b/dist/esm/service/model/lendingpool-tx-response.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolTxResponse + */ +export interface LendingpoolTxResponse { + /** + * The health factor after the deposit + * @type {string} + * @memberof LendingpoolTxResponse + */ + 'nextHealthFactor'?: string; +} +//# sourceMappingURL=lendingpool-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-tx-response.d.ts.map new file mode 100644 index 0000000..dc38d9d --- /dev/null +++ b/dist/esm/service/model/lendingpool-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-tx-response.js b/dist/esm/service/model/lendingpool-tx-response.js new file mode 100644 index 0000000..cf2d7ea --- /dev/null +++ b/dist/esm/service/model/lendingpool-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-tx-response.js.map b/dist/esm/service/model/lendingpool-tx-response.js.map new file mode 100644 index 0000000..501de37 --- /dev/null +++ b/dist/esm/service/model/lendingpool-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts new file mode 100644 index 0000000..61e0721 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxRequest + */ +export interface LendingpoolUseAssetAsCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'user': string; + /** + * Symbol of asset + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'symbol': string; + /** + * Enable or disable the asset as collateral + * @type {boolean} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'enabled': boolean; +} +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..01360c1 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACrD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js new file mode 100644 index 0000000..5c3c619 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map new file mode 100644 index 0000000..82485b8 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts new file mode 100644 index 0000000..b95eee3 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxResponse + */ +export interface LendingpoolUseAssetAsCollateralTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map new file mode 100644 index 0000000..94f9f18 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACtD;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js new file mode 100644 index 0000000..e6a52a0 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map new file mode 100644 index 0000000..8301cd6 --- /dev/null +++ b/dist/esm/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts b/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts new file mode 100644 index 0000000..f2e612e --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolWithdrawTxRequest + */ +export interface LendingpoolWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'symbol': string; + /** + * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-withdraw-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts.map b/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts.map new file mode 100644 index 0000000..efa065c --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-withdraw-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-request.js b/dist/esm/service/model/lendingpool-withdraw-tx-request.js new file mode 100644 index 0000000..748260d --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-withdraw-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-request.js.map b/dist/esm/service/model/lendingpool-withdraw-tx-request.js.map new file mode 100644 index 0000000..fade588 --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-withdraw-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts b/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts new file mode 100644 index 0000000..7edf63f --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolWithdrawTxResponse + */ +export interface LendingpoolWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolWithdrawTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-withdraw-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts.map b/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts.map new file mode 100644 index 0000000..eba0fe9 --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-withdraw-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-response.js b/dist/esm/service/model/lendingpool-withdraw-tx-response.js new file mode 100644 index 0000000..943aef3 --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=lendingpool-withdraw-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/lendingpool-withdraw-tx-response.js.map b/dist/esm/service/model/lendingpool-withdraw-tx-response.js.map new file mode 100644 index 0000000..9d3c7e1 --- /dev/null +++ b/dist/esm/service/model/lendingpool-withdraw-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/lendingpool-withdraw-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/log.d.ts b/dist/esm/service/model/log.d.ts new file mode 100644 index 0000000..b328c6c --- /dev/null +++ b/dist/esm/service/model/log.d.ts @@ -0,0 +1,88 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Log + */ +export interface Log { + /** + * The name of the log + * @type {string} + * @memberof Log + */ + 'name': string; + /** + * The contract address + * @type {string} + * @memberof Log + */ + 'contract': string; + /** + * + * @type {Timestamp} + * @memberof Log + */ + 'timestamp': Timestamp; + /** + * The Ethereum address + * @type {string} + * @memberof Log + */ + 'address': string; + /** + * The block number + * @type {number} + * @memberof Log + */ + 'blockNumber': number; + /** + * The transaction hash + * @type {string} + * @memberof Log + */ + 'txHash': string; + /** + * The block hash + * @type {string} + * @memberof Log + */ + 'blockHash': string; + /** + * The index + * @type {number} + * @memberof Log + */ + 'index': number; + /** + * + * @type {Array} + * @memberof Log + */ + 'topics': Array; + /** + * The data of the log + * @type {string} + * @memberof Log + */ + 'data': string; + /** + * The decoded log, if available + * @type {{ [key: string]: string | undefined; }} + * @memberof Log + */ + 'decoded'?: { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=log.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/log.d.ts.map b/dist/esm/service/model/log.d.ts.map new file mode 100644 index 0000000..e46ff84 --- /dev/null +++ b/dist/esm/service/model/log.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/service/model/log.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACtD"} \ No newline at end of file diff --git a/dist/esm/service/model/log.js b/dist/esm/service/model/log.js new file mode 100644 index 0000000..f5e20a3 --- /dev/null +++ b/dist/esm/service/model/log.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=log.js.map \ No newline at end of file diff --git a/dist/esm/service/model/log.js.map b/dist/esm/service/model/log.js.map new file mode 100644 index 0000000..d4e3b3e --- /dev/null +++ b/dist/esm/service/model/log.js.map @@ -0,0 +1 @@ +{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/service/model/log.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/method-parameters.d.ts b/dist/esm/service/model/method-parameters.d.ts new file mode 100644 index 0000000..f3d76da --- /dev/null +++ b/dist/esm/service/model/method-parameters.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MethodParameters + */ +export interface MethodParameters { + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'to': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'calldata': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'value': string; +} +//# sourceMappingURL=method-parameters.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/method-parameters.d.ts.map b/dist/esm/service/model/method-parameters.d.ts.map new file mode 100644 index 0000000..fd8d8c0 --- /dev/null +++ b/dist/esm/service/model/method-parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"method-parameters.d.ts","sourceRoot":"","sources":["../../../../src/service/model/method-parameters.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/esm/service/model/method-parameters.js b/dist/esm/service/model/method-parameters.js new file mode 100644 index 0000000..b2304fc --- /dev/null +++ b/dist/esm/service/model/method-parameters.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=method-parameters.js.map \ No newline at end of file diff --git a/dist/esm/service/model/method-parameters.js.map b/dist/esm/service/model/method-parameters.js.map new file mode 100644 index 0000000..d322bf2 --- /dev/null +++ b/dist/esm/service/model/method-parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"method-parameters.js","sourceRoot":"","sources":["../../../../src/service/model/method-parameters.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/model-error.d.ts b/dist/esm/service/model/model-error.d.ts new file mode 100644 index 0000000..18cc02e --- /dev/null +++ b/dist/esm/service/model/model-error.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} +//# sourceMappingURL=model-error.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/model-error.d.ts.map b/dist/esm/service/model/model-error.d.ts.map new file mode 100644 index 0000000..086e2fd --- /dev/null +++ b/dist/esm/service/model/model-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.d.ts","sourceRoot":"","sources":["../../../../src/service/model/model-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/model-error.js b/dist/esm/service/model/model-error.js new file mode 100644 index 0000000..77e7b2f --- /dev/null +++ b/dist/esm/service/model/model-error.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=model-error.js.map \ No newline at end of file diff --git a/dist/esm/service/model/model-error.js.map b/dist/esm/service/model/model-error.js.map new file mode 100644 index 0000000..24974de --- /dev/null +++ b/dist/esm/service/model/model-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.js","sourceRoot":"","sources":["../../../../src/service/model/model-error.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/order-info.d.ts b/dist/esm/service/model/order-info.d.ts new file mode 100644 index 0000000..6b5b85b --- /dev/null +++ b/dist/esm/service/model/order-info.d.ts @@ -0,0 +1,105 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DutchAmount } from './dutch-amount'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface OrderInfo + */ +export interface OrderInfo { + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'permit2Address': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'reactor': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'swapper': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'nonce': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'deadline': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationContract': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationData': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayStartTime': Timestamp; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayEndTime': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'exclusiveFiller': string; + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'exclusivityOverrideBps': number; + /** + * + * @type {DutchAmount} + * @memberof OrderInfo + */ + 'input': DutchAmount; + /** + * + * @type {Array} + * @memberof OrderInfo + */ + 'outputs': Array; +} +//# sourceMappingURL=order-info.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/order-info.d.ts.map b/dist/esm/service/model/order-info.d.ts.map new file mode 100644 index 0000000..edfb805 --- /dev/null +++ b/dist/esm/service/model/order-info.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-info.d.ts","sourceRoot":"","sources":["../../../../src/service/model/order-info.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACjC"} \ No newline at end of file diff --git a/dist/esm/service/model/order-info.js b/dist/esm/service/model/order-info.js new file mode 100644 index 0000000..1345be9 --- /dev/null +++ b/dist/esm/service/model/order-info.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=order-info.js.map \ No newline at end of file diff --git a/dist/esm/service/model/order-info.js.map b/dist/esm/service/model/order-info.js.map new file mode 100644 index 0000000..3465288 --- /dev/null +++ b/dist/esm/service/model/order-info.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-info.js","sourceRoot":"","sources":["../../../../src/service/model/order-info.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/order-response.d.ts b/dist/esm/service/model/order-response.d.ts new file mode 100644 index 0000000..ff4f4e8 --- /dev/null +++ b/dist/esm/service/model/order-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Order } from './order'; +/** + * + * @export + * @interface OrderResponse + */ +export interface OrderResponse { + /** + * + * @type {Array} + * @memberof OrderResponse + */ + 'data': Array; +} +//# sourceMappingURL=order-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/order-response.d.ts.map b/dist/esm/service/model/order-response.d.ts.map new file mode 100644 index 0000000..c96b00f --- /dev/null +++ b/dist/esm/service/model/order-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/order-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/order-response.js b/dist/esm/service/model/order-response.js new file mode 100644 index 0000000..43a170c --- /dev/null +++ b/dist/esm/service/model/order-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=order-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/order-response.js.map b/dist/esm/service/model/order-response.js.map new file mode 100644 index 0000000..42f16e4 --- /dev/null +++ b/dist/esm/service/model/order-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-response.js","sourceRoot":"","sources":["../../../../src/service/model/order-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/order-type.d.ts b/dist/esm/service/model/order-type.d.ts new file mode 100644 index 0000000..12c6778 --- /dev/null +++ b/dist/esm/service/model/order-type.d.ts @@ -0,0 +1,22 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const OrderType: { + readonly CLASSIC: "Classic"; + readonly DUTCH_LIMIT: "DutchLimit"; +}; +export type OrderType = typeof OrderType[keyof typeof OrderType]; +//# sourceMappingURL=order-type.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/order-type.d.ts.map b/dist/esm/service/model/order-type.d.ts.map new file mode 100644 index 0000000..9ba7766 --- /dev/null +++ b/dist/esm/service/model/order-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-type.d.ts","sourceRoot":"","sources":["../../../../src/service/model/order-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/order-type.js b/dist/esm/service/model/order-type.js new file mode 100644 index 0000000..990b84a --- /dev/null +++ b/dist/esm/service/model/order-type.js @@ -0,0 +1,23 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export const OrderType = { + CLASSIC: 'Classic', + DUTCH_LIMIT: 'DutchLimit' +}; +//# sourceMappingURL=order-type.js.map \ No newline at end of file diff --git a/dist/esm/service/model/order-type.js.map b/dist/esm/service/model/order-type.js.map new file mode 100644 index 0000000..a07993e --- /dev/null +++ b/dist/esm/service/model/order-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-type.js","sourceRoot":"","sources":["../../../../src/service/model/order-type.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,YAAY;CACnB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/order.d.ts b/dist/esm/service/model/order.d.ts new file mode 100644 index 0000000..a0503b6 --- /dev/null +++ b/dist/esm/service/model/order.d.ts @@ -0,0 +1,88 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RawDutchAmount } from './raw-dutch-amount'; +/** + * + * @export + * @interface Order + */ +export interface Order { + /** + * + * @type {string} + * @memberof Order + */ + 'quoteId'?: string; + /** + * + * @type {Array} + * @memberof Order + */ + 'outputs': Array; + /** + * + * @type {string} + * @memberof Order + */ + 'encodedOrder': string; + /** + * + * @type {string} + * @memberof Order + */ + 'signature': string; + /** + * + * @type {RawDutchAmount} + * @memberof Order + */ + 'input': RawDutchAmount; + /** + * + * @type {string} + * @memberof Order + */ + 'orderStatus': OrderOrderStatusEnum; + /** + * + * @type {number} + * @memberof Order + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof Order + */ + 'orderHash': string; + /** + * + * @type {string} + * @memberof Order + */ + 'orderType': OrderOrderTypeEnum; +} +export declare const OrderOrderStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; +export declare const OrderOrderTypeEnum: { + readonly DUTCH: "dutch"; + readonly LIMIT: "limit"; +}; +export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; +//# sourceMappingURL=order.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/order.d.ts.map b/dist/esm/service/model/order.d.ts.map new file mode 100644 index 0000000..b92d978 --- /dev/null +++ b/dist/esm/service/model/order.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/service/model/order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACjC;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,oBAAoB,CAAC;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,kBAAkB,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAClG,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/order.js b/dist/esm/service/model/order.js new file mode 100644 index 0000000..5004593 --- /dev/null +++ b/dist/esm/service/model/order.js @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const OrderOrderStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +export const OrderOrderTypeEnum = { + DUTCH: 'dutch', + LIMIT: 'limit' +}; +//# sourceMappingURL=order.js.map \ No newline at end of file diff --git a/dist/esm/service/model/order.js.map b/dist/esm/service/model/order.js.map new file mode 100644 index 0000000..f314482 --- /dev/null +++ b/dist/esm/service/model/order.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/service/model/order.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAqEH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC;AAGX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/permit-single.d.ts b/dist/esm/service/model/permit-single.d.ts new file mode 100644 index 0000000..bd573ca --- /dev/null +++ b/dist/esm/service/model/permit-single.d.ts @@ -0,0 +1,32 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface PermitSingle + */ +export interface PermitSingle { + /** + * + * @type {TypedData} + * @memberof PermitSingle + */ + 'typedData': TypedData; + /** + * The hash of the permit that needs to be signed + * @type {string} + * @memberof PermitSingle + */ + 'hash': string; +} +//# sourceMappingURL=permit-single.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/permit-single.d.ts.map b/dist/esm/service/model/permit-single.d.ts.map new file mode 100644 index 0000000..c883512 --- /dev/null +++ b/dist/esm/service/model/permit-single.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-single.d.ts","sourceRoot":"","sources":["../../../../src/service/model/permit-single.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/service/model/permit-single.js b/dist/esm/service/model/permit-single.js new file mode 100644 index 0000000..22d30f5 --- /dev/null +++ b/dist/esm/service/model/permit-single.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=permit-single.js.map \ No newline at end of file diff --git a/dist/esm/service/model/permit-single.js.map b/dist/esm/service/model/permit-single.js.map new file mode 100644 index 0000000..4297ddb --- /dev/null +++ b/dist/esm/service/model/permit-single.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-single.js","sourceRoot":"","sources":["../../../../src/service/model/permit-single.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/personal-sign-request.d.ts b/dist/esm/service/model/personal-sign-request.d.ts new file mode 100644 index 0000000..5c5a35d --- /dev/null +++ b/dist/esm/service/model/personal-sign-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PersonalSignRequest + */ +export interface PersonalSignRequest { + /** + * The message that needs to be signed + * @type {string} + * @memberof PersonalSignRequest + */ + 'message': string; +} +//# sourceMappingURL=personal-sign-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/personal-sign-request.d.ts.map b/dist/esm/service/model/personal-sign-request.d.ts.map new file mode 100644 index 0000000..59e5dd4 --- /dev/null +++ b/dist/esm/service/model/personal-sign-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"personal-sign-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/personal-sign-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/personal-sign-request.js b/dist/esm/service/model/personal-sign-request.js new file mode 100644 index 0000000..8a02d9f --- /dev/null +++ b/dist/esm/service/model/personal-sign-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=personal-sign-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/personal-sign-request.js.map b/dist/esm/service/model/personal-sign-request.js.map new file mode 100644 index 0000000..0ee8fb1 --- /dev/null +++ b/dist/esm/service/model/personal-sign-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"personal-sign-request.js","sourceRoot":"","sources":["../../../../src/service/model/personal-sign-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/prepared-tx.d.ts b/dist/esm/service/model/prepared-tx.d.ts new file mode 100644 index 0000000..bd83252 --- /dev/null +++ b/dist/esm/service/model/prepared-tx.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MethodParameters } from './method-parameters'; +/** + * + * @export + * @interface PreparedTx + */ +export interface PreparedTx { + /** + * + * @type {string} + * @memberof PreparedTx + */ + 'type': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'label': { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof PreparedTx + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'gasFeeEstimate': { + [key: string]: string | undefined; + }; + /** + * + * @type {MethodParameters} + * @memberof PreparedTx + */ + 'methodParameters': MethodParameters; +} +//# sourceMappingURL=prepared-tx.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/prepared-tx.d.ts.map b/dist/esm/service/model/prepared-tx.d.ts.map new file mode 100644 index 0000000..1cec6a2 --- /dev/null +++ b/dist/esm/service/model/prepared-tx.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prepared-tx.d.ts","sourceRoot":"","sources":["../../../../src/service/model/prepared-tx.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,kBAAkB,EAAE,gBAAgB,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/esm/service/model/prepared-tx.js b/dist/esm/service/model/prepared-tx.js new file mode 100644 index 0000000..e040bc4 --- /dev/null +++ b/dist/esm/service/model/prepared-tx.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=prepared-tx.js.map \ No newline at end of file diff --git a/dist/esm/service/model/prepared-tx.js.map b/dist/esm/service/model/prepared-tx.js.map new file mode 100644 index 0000000..c239f80 --- /dev/null +++ b/dist/esm/service/model/prepared-tx.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prepared-tx.js","sourceRoot":"","sources":["../../../../src/service/model/prepared-tx.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/price-list-response.d.ts b/dist/esm/service/model/price-list-response.d.ts new file mode 100644 index 0000000..6df2f56 --- /dev/null +++ b/dist/esm/service/model/price-list-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Price } from './price'; +/** + * + * @export + * @interface PriceListResponse + */ +export interface PriceListResponse { + /** + * + * @type {Array} + * @memberof PriceListResponse + */ + 'data': Array; +} +//# sourceMappingURL=price-list-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/price-list-response.d.ts.map b/dist/esm/service/model/price-list-response.d.ts.map new file mode 100644 index 0000000..cee004e --- /dev/null +++ b/dist/esm/service/model/price-list-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"price-list-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/price-list-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/price-list-response.js b/dist/esm/service/model/price-list-response.js new file mode 100644 index 0000000..a22bd07 --- /dev/null +++ b/dist/esm/service/model/price-list-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=price-list-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/price-list-response.js.map b/dist/esm/service/model/price-list-response.js.map new file mode 100644 index 0000000..0684941 --- /dev/null +++ b/dist/esm/service/model/price-list-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"price-list-response.js","sourceRoot":"","sources":["../../../../src/service/model/price-list-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/price.d.ts b/dist/esm/service/model/price.d.ts new file mode 100644 index 0000000..1a37922 --- /dev/null +++ b/dist/esm/service/model/price.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Price + */ +export interface Price { + /** + * + * @type {Symbol} + * @memberof Price + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Price + */ + 'value': { + [key: string]: string | undefined; + }; + /** + * + * @type {Timestamp} + * @memberof Price + */ + 'timestamp': Timestamp; +} +//# sourceMappingURL=price.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/price.d.ts.map b/dist/esm/service/model/price.d.ts.map new file mode 100644 index 0000000..204d893 --- /dev/null +++ b/dist/esm/service/model/price.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../../src/service/model/price.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/esm/service/model/price.js b/dist/esm/service/model/price.js new file mode 100644 index 0000000..52c2637 --- /dev/null +++ b/dist/esm/service/model/price.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=price.js.map \ No newline at end of file diff --git a/dist/esm/service/model/price.js.map b/dist/esm/service/model/price.js.map new file mode 100644 index 0000000..819aaf0 --- /dev/null +++ b/dist/esm/service/model/price.js.map @@ -0,0 +1 @@ +{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../../src/service/model/price.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-request-options.d.ts b/dist/esm/service/model/quote-request-options.d.ts new file mode 100644 index 0000000..c51848c --- /dev/null +++ b/dist/esm/service/model/quote-request-options.d.ts @@ -0,0 +1,79 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface QuoteRequestOptions + */ +export interface QuoteRequestOptions { + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'dryRun'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'slippageTolerance'?: string; + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'useSyntheticQuotes'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitSignature'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitNonce'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitExpiration'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitAmount'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitSigDeadline'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'quoteId'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'encodedOrder'?: string; +} +//# sourceMappingURL=quote-request-options.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-request-options.d.ts.map b/dist/esm/service/model/quote-request-options.d.ts.map new file mode 100644 index 0000000..3a3e332 --- /dev/null +++ b/dist/esm/service/model/quote-request-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request-options.d.ts","sourceRoot":"","sources":["../../../../src/service/model/quote-request-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-request-options.js b/dist/esm/service/model/quote-request-options.js new file mode 100644 index 0000000..24b07be --- /dev/null +++ b/dist/esm/service/model/quote-request-options.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=quote-request-options.js.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-request-options.js.map b/dist/esm/service/model/quote-request-options.js.map new file mode 100644 index 0000000..4721d9b --- /dev/null +++ b/dist/esm/service/model/quote-request-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request-options.js","sourceRoot":"","sources":["../../../../src/service/model/quote-request-options.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-request.d.ts b/dist/esm/service/model/quote-request.d.ts new file mode 100644 index 0000000..9b2c45b --- /dev/null +++ b/dist/esm/service/model/quote-request.d.ts @@ -0,0 +1,70 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderType } from './order-type'; +import type { QuoteRequestOptions } from './quote-request-options'; +import type { TradeType } from './trade-type'; +/** + * + * @export + * @interface QuoteRequest + */ +export interface QuoteRequest { + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'requestId'?: string; + /** + * + * @type {OrderType} + * @memberof QuoteRequest + */ + 'type'?: OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteRequest + */ + 'tradeType': TradeType; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'inputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'outputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'recipient': string; + /** + * + * @type {QuoteRequestOptions} + * @memberof QuoteRequest + */ + 'options'?: QuoteRequestOptions; +} +//# sourceMappingURL=quote-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-request.d.ts.map b/dist/esm/service/model/quote-request.d.ts.map new file mode 100644 index 0000000..a56b7ad --- /dev/null +++ b/dist/esm/service/model/quote-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/quote-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-request.js b/dist/esm/service/model/quote-request.js new file mode 100644 index 0000000..da3ff5d --- /dev/null +++ b/dist/esm/service/model/quote-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=quote-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-request.js.map b/dist/esm/service/model/quote-request.js.map new file mode 100644 index 0000000..09226f0 --- /dev/null +++ b/dist/esm/service/model/quote-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request.js","sourceRoot":"","sources":["../../../../src/service/model/quote-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-response.d.ts b/dist/esm/service/model/quote-response.d.ts new file mode 100644 index 0000000..b83623b --- /dev/null +++ b/dist/esm/service/model/quote-response.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MethodParameters } from './method-parameters'; +import type { OrderInfo } from './order-info'; +import type { OrderType } from './order-type'; +import type { RouteItem } from './route-item'; +import type { Timestamp } from './timestamp'; +import type { TradeType } from './trade-type'; +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface QuoteResponse + */ +export interface QuoteResponse { + /** + * + * @type {OrderType} + * @memberof QuoteResponse + */ + 'type': OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteResponse + */ + 'tradeType': TradeType; + /** + * + * @type {Timestamp} + * @memberof QuoteResponse + */ + 'time': Timestamp; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'quote': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'quoteId': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasPrice': { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof QuoteResponse + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasFeeEstimate': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'routeString': string; + /** + * + * @type {MethodParameters} + * @memberof QuoteResponse + */ + 'methodParameters'?: MethodParameters; + /** + * + * @type {Array} + * @memberof QuoteResponse + */ + 'route': Array; + /** + * + * @type {OrderInfo} + * @memberof QuoteResponse + */ + 'orderInfo'?: OrderInfo; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'encodedOrder'?: string; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'orderHash'?: string; + /** + * + * @type {TypedData} + * @memberof QuoteResponse + */ + 'permitData'?: TypedData; +} +//# sourceMappingURL=quote-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-response.d.ts.map b/dist/esm/service/model/quote-response.d.ts.map new file mode 100644 index 0000000..e7cfc2b --- /dev/null +++ b/dist/esm/service/model/quote-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/quote-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/quote-response.js b/dist/esm/service/model/quote-response.js new file mode 100644 index 0000000..53ba21c --- /dev/null +++ b/dist/esm/service/model/quote-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=quote-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/quote-response.js.map b/dist/esm/service/model/quote-response.js.map new file mode 100644 index 0000000..8302329 --- /dev/null +++ b/dist/esm/service/model/quote-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-response.js","sourceRoot":"","sources":["../../../../src/service/model/quote-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/raw-dutch-amount.d.ts b/dist/esm/service/model/raw-dutch-amount.d.ts new file mode 100644 index 0000000..c0f8ca6 --- /dev/null +++ b/dist/esm/service/model/raw-dutch-amount.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RawDutchAmount + */ +export interface RawDutchAmount { + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'token': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'startAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'endAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'recipient'?: string; +} +//# sourceMappingURL=raw-dutch-amount.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/raw-dutch-amount.d.ts.map b/dist/esm/service/model/raw-dutch-amount.d.ts.map new file mode 100644 index 0000000..94282a9 --- /dev/null +++ b/dist/esm/service/model/raw-dutch-amount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"raw-dutch-amount.d.ts","sourceRoot":"","sources":["../../../../src/service/model/raw-dutch-amount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/raw-dutch-amount.js b/dist/esm/service/model/raw-dutch-amount.js new file mode 100644 index 0000000..e5c107e --- /dev/null +++ b/dist/esm/service/model/raw-dutch-amount.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=raw-dutch-amount.js.map \ No newline at end of file diff --git a/dist/esm/service/model/raw-dutch-amount.js.map b/dist/esm/service/model/raw-dutch-amount.js.map new file mode 100644 index 0000000..cfe6119 --- /dev/null +++ b/dist/esm/service/model/raw-dutch-amount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"raw-dutch-amount.js","sourceRoot":"","sources":["../../../../src/service/model/raw-dutch-amount.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/route-item.d.ts b/dist/esm/service/model/route-item.d.ts new file mode 100644 index 0000000..8eb96fa --- /dev/null +++ b/dist/esm/service/model/route-item.d.ts @@ -0,0 +1,18 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3PoolInRoute } from './v3-pool-in-route'; +/** + * @type RouteItem + * @export + */ +export type RouteItem = V3PoolInRoute; +//# sourceMappingURL=route-item.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/route-item.d.ts.map b/dist/esm/service/model/route-item.d.ts.map new file mode 100644 index 0000000..b1bbeee --- /dev/null +++ b/dist/esm/service/model/route-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"route-item.d.ts","sourceRoot":"","sources":["../../../../src/service/model/route-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAQH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/route-item.js b/dist/esm/service/model/route-item.js new file mode 100644 index 0000000..996affd --- /dev/null +++ b/dist/esm/service/model/route-item.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=route-item.js.map \ No newline at end of file diff --git a/dist/esm/service/model/route-item.js.map b/dist/esm/service/model/route-item.js.map new file mode 100644 index 0000000..5ed453f --- /dev/null +++ b/dist/esm/service/model/route-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"route-item.js","sourceRoot":"","sources":["../../../../src/service/model/route-item.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard-item.d.ts b/dist/esm/service/model/scoreboard-item.d.ts new file mode 100644 index 0000000..df7b528 --- /dev/null +++ b/dist/esm/service/model/scoreboard-item.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ScoreboardItem + */ +export interface ScoreboardItem { + /** + * + * @type {string} + * @memberof ScoreboardItem + */ + 'address': string; + /** + * + * @type {number} + * @memberof ScoreboardItem + */ + 'points': number; +} +//# sourceMappingURL=scoreboard-item.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard-item.d.ts.map b/dist/esm/service/model/scoreboard-item.d.ts.map new file mode 100644 index 0000000..3448dba --- /dev/null +++ b/dist/esm/service/model/scoreboard-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard-item.d.ts","sourceRoot":"","sources":["../../../../src/service/model/scoreboard-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard-item.js b/dist/esm/service/model/scoreboard-item.js new file mode 100644 index 0000000..ad43c98 --- /dev/null +++ b/dist/esm/service/model/scoreboard-item.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=scoreboard-item.js.map \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard-item.js.map b/dist/esm/service/model/scoreboard-item.js.map new file mode 100644 index 0000000..a07a037 --- /dev/null +++ b/dist/esm/service/model/scoreboard-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard-item.js","sourceRoot":"","sources":["../../../../src/service/model/scoreboard-item.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard.d.ts b/dist/esm/service/model/scoreboard.d.ts new file mode 100644 index 0000000..0efe178 --- /dev/null +++ b/dist/esm/service/model/scoreboard.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ScoreboardItem } from './scoreboard-item'; +/** + * + * @export + * @interface Scoreboard + */ +export interface Scoreboard { + /** + * + * @type {Array} + * @memberof Scoreboard + */ + 'items': Array; +} +//# sourceMappingURL=scoreboard.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard.d.ts.map b/dist/esm/service/model/scoreboard.d.ts.map new file mode 100644 index 0000000..4d3ebee --- /dev/null +++ b/dist/esm/service/model/scoreboard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard.d.ts","sourceRoot":"","sources":["../../../../src/service/model/scoreboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAClC"} \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard.js b/dist/esm/service/model/scoreboard.js new file mode 100644 index 0000000..28a2e2b --- /dev/null +++ b/dist/esm/service/model/scoreboard.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=scoreboard.js.map \ No newline at end of file diff --git a/dist/esm/service/model/scoreboard.js.map b/dist/esm/service/model/scoreboard.js.map new file mode 100644 index 0000000..1e6f66a --- /dev/null +++ b/dist/esm/service/model/scoreboard.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard.js","sourceRoot":"","sources":["../../../../src/service/model/scoreboard.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts new file mode 100644 index 0000000..a3fa04d --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemBarkTxRequest + */ +export interface StablecoinSystemBarkTxRequest { + /** + * Ethereum address of the user who is liquidating the vault and receiving incentives. + * @type {string} + * @memberof StablecoinSystemBarkTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemBarkTxRequest + */ + 'vaultId': number; +} +//# sourceMappingURL=stablecoin-system-bark-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts.map new file mode 100644 index 0000000..8b43009 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-bark-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-bark-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-bark-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-bark-tx-request.js b/dist/esm/service/model/stablecoin-system-bark-tx-request.js new file mode 100644 index 0000000..156ede2 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-bark-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-bark-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-bark-tx-request.js.map b/dist/esm/service/model/stablecoin-system-bark-tx-request.js.map new file mode 100644 index 0000000..d58b5b8 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-bark-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-bark-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-bark-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts new file mode 100644 index 0000000..590ae1b --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemCreateVaultTxRequest + */ +export interface StablecoinSystemCreateVaultTxRequest { + /** + * The name of the ilk + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'ilkName': string; + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'user': string; + /** + * The amount of collateral to deposit in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'collateralAmount'?: string; + /** + * The amount of stablecoin to mint in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'mintAmount': string; +} +//# sourceMappingURL=stablecoin-system-create-vault-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts.map new file mode 100644 index 0000000..7a221f1 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-create-vault-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-create-vault-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js new file mode 100644 index 0000000..85ab3d2 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-create-vault-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js.map b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js.map new file mode 100644 index 0000000..6a02ee0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-create-vault-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-create-vault-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-create-vault-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts new file mode 100644 index 0000000..8eb789f --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemDepositCollateralTxRequest + */ +export interface StablecoinSystemDepositCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-deposit-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..b272cef --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-deposit-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-deposit-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0CAA0C;IACvD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js new file mode 100644 index 0000000..11b9fc0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-deposit-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js.map b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js.map new file mode 100644 index 0000000..0488115 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-deposit-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-deposit-collateral-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-deposit-collateral-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts new file mode 100644 index 0000000..678f2a4 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemGemexitTxRequest + */ +export interface StablecoinSystemGemexitTxRequest { + /** + * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'user': string; + /** + * The amount of Gem token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'amount': string; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'ilk': string; +} +//# sourceMappingURL=stablecoin-system-gemexit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts.map new file mode 100644 index 0000000..6e424fe --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-gemexit-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-gemexit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js new file mode 100644 index 0000000..2194ae5 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-gemexit-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js.map b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js.map new file mode 100644 index 0000000..788c8f0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-gemexit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-gemexit-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-gemexit-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts new file mode 100644 index 0000000..079fcab --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemMintZarTxRequest + */ +export interface StablecoinSystemMintZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-mint-zar-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map new file mode 100644 index 0000000..60695aa --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-mint-zar-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-mint-zar-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js new file mode 100644 index 0000000..e4507c5 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-mint-zar-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js.map b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js.map new file mode 100644 index 0000000..61bd814 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-mint-zar-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-mint-zar-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-mint-zar-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts new file mode 100644 index 0000000..b6e4de0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRedoTxRequest + */ +export interface StablecoinSystemRedoTxRequest { + /** + * Ethereum address of the user resetting the auction and receiving incentives. + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemRedoTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'ilk': string; +} +//# sourceMappingURL=stablecoin-system-redo-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts.map new file mode 100644 index 0000000..7e12ed6 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-redo-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-redo-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-redo-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-redo-tx-request.js b/dist/esm/service/model/stablecoin-system-redo-tx-request.js new file mode 100644 index 0000000..e97a0e4 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-redo-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-redo-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-redo-tx-request.js.map b/dist/esm/service/model/stablecoin-system-redo-tx-request.js.map new file mode 100644 index 0000000..580643b --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-redo-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-redo-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-redo-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts new file mode 100644 index 0000000..a601e9a --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRepayZarTxRequest + */ +export interface StablecoinSystemRepayZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-repay-zar-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map new file mode 100644 index 0000000..b6610b3 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-repay-zar-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-repay-zar-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js new file mode 100644 index 0000000..f450d6f --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-repay-zar-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js.map b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js.map new file mode 100644 index 0000000..cb1e204 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-repay-zar-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-repay-zar-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-repay-zar-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-stats.d.ts b/dist/esm/service/model/stablecoin-system-stats.d.ts new file mode 100644 index 0000000..068d879 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-stats.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemStats + */ +export interface StablecoinSystemStats { + /** + * System surplus + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplus': { + [key: string]: string | undefined; + }; + /** + * System debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebt': { + [key: string]: string | undefined; + }; + /** + * System debt ceiling + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebtCeiling': { + [key: string]: string | undefined; + }; + /** + * System surplus buffer + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusBuffer': { + [key: string]: string | undefined; + }; + /** + * System bad debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemBadDebt': { + [key: string]: string | undefined; + }; + /** + * System surplus lot size + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusLotSize': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=stablecoin-system-stats.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-stats.d.ts.map b/dist/esm/service/model/stablecoin-system-stats.d.ts.map new file mode 100644 index 0000000..b0e99d1 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-stats.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,qBAAqB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9D;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,sBAAsB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAClE"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-stats.js b/dist/esm/service/model/stablecoin-system-stats.js new file mode 100644 index 0000000..1593e5b --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-stats.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-stats.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-stats.js.map b/dist/esm/service/model/stablecoin-system-stats.js.map new file mode 100644 index 0000000..47d165c --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-stats.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-stats.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts new file mode 100644 index 0000000..63cc7ff --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemTakeTxRequest + */ +export interface StablecoinSystemTakeTxRequest { + /** + * Ethereum address of the user taking the auction. + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemTakeTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'ilk': string; + /** + * upper limit on the amount of collateral to buy [wad] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'collateralAmountUpperLimit': string; + /** + * Maximum acceptable price (ZAR / collateral) [ray] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'maxAcceptablePrice': string; +} +//# sourceMappingURL=stablecoin-system-take-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts.map new file mode 100644 index 0000000..3b87e4e --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-take-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-take-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-take-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-take-tx-request.js b/dist/esm/service/model/stablecoin-system-take-tx-request.js new file mode 100644 index 0000000..e6169b0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-take-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-take-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-take-tx-request.js.map b/dist/esm/service/model/stablecoin-system-take-tx-request.js.map new file mode 100644 index 0000000..25c9886 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-take-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-take-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-take-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts new file mode 100644 index 0000000..029f5db --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemWithdrawCollateralTxRequest + */ +export interface StablecoinSystemWithdrawCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-withdraw-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..e5dc33f --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-withdraw-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,2CAA2C;IACxD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js new file mode 100644 index 0000000..dfb2ad0 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-withdraw-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map new file mode 100644 index 0000000..0399c59 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-withdraw-collateral-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts new file mode 100644 index 0000000..0ee458c --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarexitTxRequest + */ +export interface StablecoinSystemZarexitTxRequest { + /** + * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'user': string; + /** + * The amount of Zar token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'amount': string; +} +//# sourceMappingURL=stablecoin-system-zarexit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts.map new file mode 100644 index 0000000..a9b5f59 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarexit-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-zarexit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js new file mode 100644 index 0000000..38b9bd5 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-zarexit-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js.map b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js.map new file mode 100644 index 0000000..e399e26 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarexit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarexit-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-zarexit-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts new file mode 100644 index 0000000..5b7f260 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarjoinTxRequest + */ +export interface StablecoinSystemZarjoinTxRequest { + /** + * Ethereum address of the user intends to join zar tokens into the Vat contract. + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'user': string; + /** + * The amount of ZAR to approve and join into Vat contract + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'amount': string; +} +//# sourceMappingURL=stablecoin-system-zarjoin-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map new file mode 100644 index 0000000..fcb27de --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarjoin-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-zarjoin-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js new file mode 100644 index 0000000..50628d5 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stablecoin-system-zarjoin-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js.map b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js.map new file mode 100644 index 0000000..63dd984 --- /dev/null +++ b/dist/esm/service/model/stablecoin-system-zarjoin-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarjoin-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/stablecoin-system-zarjoin-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-balance.d.ts b/dist/esm/service/model/stake-balance.d.ts new file mode 100644 index 0000000..dfa9cc6 --- /dev/null +++ b/dist/esm/service/model/stake-balance.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of asset staked in native token units + * @export + * @interface StakeBalance + */ +export interface StakeBalance { +} +//# sourceMappingURL=stake-balance.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-balance.d.ts.map b/dist/esm/service/model/stake-balance.d.ts.map new file mode 100644 index 0000000..b9156bd --- /dev/null +++ b/dist/esm/service/model/stake-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-balance.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stake-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-balance.js b/dist/esm/service/model/stake-balance.js new file mode 100644 index 0000000..4854311 --- /dev/null +++ b/dist/esm/service/model/stake-balance.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stake-balance.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-balance.js.map b/dist/esm/service/model/stake-balance.js.map new file mode 100644 index 0000000..58f3374 --- /dev/null +++ b/dist/esm/service/model/stake-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-balance.js","sourceRoot":"","sources":["../../../../src/service/model/stake-balance.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-plan.d.ts b/dist/esm/service/model/stake-plan.d.ts new file mode 100644 index 0000000..774daf4 --- /dev/null +++ b/dist/esm/service/model/stake-plan.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +import type { Token } from './token'; +/** + * + * @export + * @interface StakePlan + */ +export interface StakePlan { + /** + * Name of staking plan + * @type {string} + * @memberof StakePlan + */ + 'planName': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakePlan + */ + 'contractAddress': string; + /** + * Annual percentage yield of the staking plan + * @type {string} + * @memberof StakePlan + */ + 'apy': string; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'stakeToken': Token; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'rewardToken': Token; + /** + * + * @type {Timestamp} + * @memberof StakePlan + */ + 'finishAt': Timestamp; +} +//# sourceMappingURL=stake-plan.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-plan.d.ts.map b/dist/esm/service/model/stake-plan.d.ts.map new file mode 100644 index 0000000..631d773 --- /dev/null +++ b/dist/esm/service/model/stake-plan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plan.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stake-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,YAAY,EAAE,KAAK,CAAC;IACpB;;;;OAIG;IACH,aAAa,EAAE,KAAK,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-plan.js b/dist/esm/service/model/stake-plan.js new file mode 100644 index 0000000..4350b45 --- /dev/null +++ b/dist/esm/service/model/stake-plan.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stake-plan.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-plan.js.map b/dist/esm/service/model/stake-plan.js.map new file mode 100644 index 0000000..d37bb1d --- /dev/null +++ b/dist/esm/service/model/stake-plan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plan.js","sourceRoot":"","sources":["../../../../src/service/model/stake-plan.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-plans-response.d.ts b/dist/esm/service/model/stake-plans-response.d.ts new file mode 100644 index 0000000..2bcfd8f --- /dev/null +++ b/dist/esm/service/model/stake-plans-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StakePlan } from './stake-plan'; +/** + * + * @export + * @interface StakePlansResponse + */ +export interface StakePlansResponse { + /** + * + * @type {Array} + * @memberof StakePlansResponse + */ + 'data': Array; +} +//# sourceMappingURL=stake-plans-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-plans-response.d.ts.map b/dist/esm/service/model/stake-plans-response.d.ts.map new file mode 100644 index 0000000..4b74574 --- /dev/null +++ b/dist/esm/service/model/stake-plans-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plans-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stake-plans-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/stake-plans-response.js b/dist/esm/service/model/stake-plans-response.js new file mode 100644 index 0000000..9a7a261 --- /dev/null +++ b/dist/esm/service/model/stake-plans-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stake-plans-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stake-plans-response.js.map b/dist/esm/service/model/stake-plans-response.js.map new file mode 100644 index 0000000..1d2ade6 --- /dev/null +++ b/dist/esm/service/model/stake-plans-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plans-response.js","sourceRoot":"","sources":["../../../../src/service/model/stake-plans-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-request.d.ts b/dist/esm/service/model/staking-collect-reward-tx-request.d.ts new file mode 100644 index 0000000..e352c31 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingCollectRewardTxRequest + */ +export interface StakingCollectRewardTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'contractAddress': string; +} +//# sourceMappingURL=staking-collect-reward-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-request.d.ts.map b/dist/esm/service/model/staking-collect-reward-tx-request.d.ts.map new file mode 100644 index 0000000..3cc96a3 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-collect-reward-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-request.js b/dist/esm/service/model/staking-collect-reward-tx-request.js new file mode 100644 index 0000000..1456670 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-collect-reward-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-request.js.map b/dist/esm/service/model/staking-collect-reward-tx-request.js.map new file mode 100644 index 0000000..9eae57a --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/staking-collect-reward-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-response.d.ts b/dist/esm/service/model/staking-collect-reward-tx-response.d.ts new file mode 100644 index 0000000..18fed66 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingCollectRewardTxResponse + */ +export interface StakingCollectRewardTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingCollectRewardTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-collect-reward-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-response.d.ts.map b/dist/esm/service/model/staking-collect-reward-tx-response.d.ts.map new file mode 100644 index 0000000..f6744a7 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-collect-reward-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-response.js b/dist/esm/service/model/staking-collect-reward-tx-response.js new file mode 100644 index 0000000..186cda2 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-collect-reward-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-collect-reward-tx-response.js.map b/dist/esm/service/model/staking-collect-reward-tx-response.js.map new file mode 100644 index 0000000..5851b17 --- /dev/null +++ b/dist/esm/service/model/staking-collect-reward-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/staking-collect-reward-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-request.d.ts b/dist/esm/service/model/staking-stake-tx-request.d.ts new file mode 100644 index 0000000..22ccd49 --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingStakeTxRequest + */ +export interface StakingStakeTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to stake in native token units + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=staking-stake-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-request.d.ts.map b/dist/esm/service/model/staking-stake-tx-request.d.ts.map new file mode 100644 index 0000000..d55f943 --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-stake-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-request.js b/dist/esm/service/model/staking-stake-tx-request.js new file mode 100644 index 0000000..a117d93 --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-stake-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-request.js.map b/dist/esm/service/model/staking-stake-tx-request.js.map new file mode 100644 index 0000000..45bdc0e --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/staking-stake-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-response.d.ts b/dist/esm/service/model/staking-stake-tx-response.d.ts new file mode 100644 index 0000000..b4efaf6 --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingStakeTxResponse + */ +export interface StakingStakeTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingStakeTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-stake-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-response.d.ts.map b/dist/esm/service/model/staking-stake-tx-response.d.ts.map new file mode 100644 index 0000000..2d86dca --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-stake-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-response.js b/dist/esm/service/model/staking-stake-tx-response.js new file mode 100644 index 0000000..19173ce --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-stake-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-stake-tx-response.js.map b/dist/esm/service/model/staking-stake-tx-response.js.map new file mode 100644 index 0000000..e54eeef --- /dev/null +++ b/dist/esm/service/model/staking-stake-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/staking-stake-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-request.d.ts b/dist/esm/service/model/staking-withdraw-tx-request.d.ts new file mode 100644 index 0000000..739be71 --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingWithdrawTxRequest + */ +export interface StakingWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to withdraw in native token units + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=staking-withdraw-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-request.d.ts.map b/dist/esm/service/model/staking-withdraw-tx-request.d.ts.map new file mode 100644 index 0000000..2d74e52 --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-withdraw-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-request.js b/dist/esm/service/model/staking-withdraw-tx-request.js new file mode 100644 index 0000000..83c6817 --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-withdraw-tx-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-request.js.map b/dist/esm/service/model/staking-withdraw-tx-request.js.map new file mode 100644 index 0000000..87e9a7d --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-request.js","sourceRoot":"","sources":["../../../../src/service/model/staking-withdraw-tx-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-response.d.ts b/dist/esm/service/model/staking-withdraw-tx-response.d.ts new file mode 100644 index 0000000..6805fa9 --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingWithdrawTxResponse + */ +export interface StakingWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-withdraw-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-response.d.ts.map b/dist/esm/service/model/staking-withdraw-tx-response.d.ts.map new file mode 100644 index 0000000..3ea56ce --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/staking-withdraw-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-response.js b/dist/esm/service/model/staking-withdraw-tx-response.js new file mode 100644 index 0000000..1fe1cec --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=staking-withdraw-tx-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/staking-withdraw-tx-response.js.map b/dist/esm/service/model/staking-withdraw-tx-response.js.map new file mode 100644 index 0000000..7554ff1 --- /dev/null +++ b/dist/esm/service/model/staking-withdraw-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-response.js","sourceRoot":"","sources":["../../../../src/service/model/staking-withdraw-tx-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/stats.d.ts b/dist/esm/service/model/stats.d.ts new file mode 100644 index 0000000..04f6bef --- /dev/null +++ b/dist/esm/service/model/stats.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolStats } from './lendingpool-stats'; +import type { StablecoinSystemStats } from './stablecoin-system-stats'; +/** + * + * @export + * @interface Stats + */ +export interface Stats { + /** + * + * @type {StablecoinSystemStats} + * @memberof Stats + */ + 'stablecoinSystem': StablecoinSystemStats; + /** + * + * @type {LendingpoolStats} + * @memberof Stats + */ + 'lendingpool': LendingpoolStats; +} +//# sourceMappingURL=stats.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/stats.d.ts.map b/dist/esm/service/model/stats.d.ts.map new file mode 100644 index 0000000..251af9d --- /dev/null +++ b/dist/esm/service/model/stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../../src/service/model/stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C;;;;OAIG;IACH,aAAa,EAAE,gBAAgB,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/stats.js b/dist/esm/service/model/stats.js new file mode 100644 index 0000000..674bbcd --- /dev/null +++ b/dist/esm/service/model/stats.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=stats.js.map \ No newline at end of file diff --git a/dist/esm/service/model/stats.js.map b/dist/esm/service/model/stats.js.map new file mode 100644 index 0000000..ea3fff9 --- /dev/null +++ b/dist/esm/service/model/stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stats.js","sourceRoot":"","sources":["../../../../src/service/model/stats.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/symbol.d.ts b/dist/esm/service/model/symbol.d.ts new file mode 100644 index 0000000..440820e --- /dev/null +++ b/dist/esm/service/model/symbol.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/symbol.d.ts.map b/dist/esm/service/model/symbol.d.ts.map new file mode 100644 index 0000000..510e343 --- /dev/null +++ b/dist/esm/service/model/symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../../src/service/model/symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/symbol.js b/dist/esm/service/model/symbol.js new file mode 100644 index 0000000..8ecc53b --- /dev/null +++ b/dist/esm/service/model/symbol.js @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export const Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +//# sourceMappingURL=symbol.js.map \ No newline at end of file diff --git a/dist/esm/service/model/symbol.js.map b/dist/esm/service/model/symbol.js.map new file mode 100644 index 0000000..10cfcdf --- /dev/null +++ b/dist/esm/service/model/symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../../src/service/model/symbol.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/system-bad-debt.d.ts b/dist/esm/service/model/system-bad-debt.d.ts new file mode 100644 index 0000000..41bc670 --- /dev/null +++ b/dist/esm/service/model/system-bad-debt.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System bad debt + * @export + * @interface SystemBadDebt + */ +export interface SystemBadDebt { +} +//# sourceMappingURL=system-bad-debt.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-bad-debt.d.ts.map b/dist/esm/service/model/system-bad-debt.d.ts.map new file mode 100644 index 0000000..0f4b41a --- /dev/null +++ b/dist/esm/service/model/system-bad-debt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-bad-debt.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-bad-debt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B"} \ No newline at end of file diff --git a/dist/esm/service/model/system-bad-debt.js b/dist/esm/service/model/system-bad-debt.js new file mode 100644 index 0000000..e264c9b --- /dev/null +++ b/dist/esm/service/model/system-bad-debt.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-bad-debt.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-bad-debt.js.map b/dist/esm/service/model/system-bad-debt.js.map new file mode 100644 index 0000000..3c94ccf --- /dev/null +++ b/dist/esm/service/model/system-bad-debt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-bad-debt.js","sourceRoot":"","sources":["../../../../src/service/model/system-bad-debt.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/system-debt-ceiling.d.ts b/dist/esm/service/model/system-debt-ceiling.d.ts new file mode 100644 index 0000000..49984f1 --- /dev/null +++ b/dist/esm/service/model/system-debt-ceiling.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt ceiling + * @export + * @interface SystemDebtCeiling + */ +export interface SystemDebtCeiling { +} +//# sourceMappingURL=system-debt-ceiling.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-debt-ceiling.d.ts.map b/dist/esm/service/model/system-debt-ceiling.d.ts.map new file mode 100644 index 0000000..40a7dd9 --- /dev/null +++ b/dist/esm/service/model/system-debt-ceiling.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt-ceiling.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-debt-ceiling.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;CACjC"} \ No newline at end of file diff --git a/dist/esm/service/model/system-debt-ceiling.js b/dist/esm/service/model/system-debt-ceiling.js new file mode 100644 index 0000000..8bf1780 --- /dev/null +++ b/dist/esm/service/model/system-debt-ceiling.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-debt-ceiling.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-debt-ceiling.js.map b/dist/esm/service/model/system-debt-ceiling.js.map new file mode 100644 index 0000000..a153dd2 --- /dev/null +++ b/dist/esm/service/model/system-debt-ceiling.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt-ceiling.js","sourceRoot":"","sources":["../../../../src/service/model/system-debt-ceiling.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/system-debt.d.ts b/dist/esm/service/model/system-debt.d.ts new file mode 100644 index 0000000..5e8c477 --- /dev/null +++ b/dist/esm/service/model/system-debt.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt + * @export + * @interface SystemDebt + */ +export interface SystemDebt { +} +//# sourceMappingURL=system-debt.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-debt.d.ts.map b/dist/esm/service/model/system-debt.d.ts.map new file mode 100644 index 0000000..1bb1353 --- /dev/null +++ b/dist/esm/service/model/system-debt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-debt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;CAC1B"} \ No newline at end of file diff --git a/dist/esm/service/model/system-debt.js b/dist/esm/service/model/system-debt.js new file mode 100644 index 0000000..1649181 --- /dev/null +++ b/dist/esm/service/model/system-debt.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-debt.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-debt.js.map b/dist/esm/service/model/system-debt.js.map new file mode 100644 index 0000000..75213b2 --- /dev/null +++ b/dist/esm/service/model/system-debt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt.js","sourceRoot":"","sources":["../../../../src/service/model/system-debt.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-buffer.d.ts b/dist/esm/service/model/system-surplus-buffer.d.ts new file mode 100644 index 0000000..8085f18 --- /dev/null +++ b/dist/esm/service/model/system-surplus-buffer.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus buffer + * @export + * @interface SystemSurplusBuffer + */ +export interface SystemSurplusBuffer { +} +//# sourceMappingURL=system-surplus-buffer.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-buffer.d.ts.map b/dist/esm/service/model/system-surplus-buffer.d.ts.map new file mode 100644 index 0000000..2b8f5a2 --- /dev/null +++ b/dist/esm/service/model/system-surplus-buffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-buffer.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-surplus-buffer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;CACnC"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-buffer.js b/dist/esm/service/model/system-surplus-buffer.js new file mode 100644 index 0000000..9d896dd --- /dev/null +++ b/dist/esm/service/model/system-surplus-buffer.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-surplus-buffer.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-buffer.js.map b/dist/esm/service/model/system-surplus-buffer.js.map new file mode 100644 index 0000000..fdd3df9 --- /dev/null +++ b/dist/esm/service/model/system-surplus-buffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-buffer.js","sourceRoot":"","sources":["../../../../src/service/model/system-surplus-buffer.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-lot-size.d.ts b/dist/esm/service/model/system-surplus-lot-size.d.ts new file mode 100644 index 0000000..222d9a1 --- /dev/null +++ b/dist/esm/service/model/system-surplus-lot-size.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus lot size + * @export + * @interface SystemSurplusLotSize + */ +export interface SystemSurplusLotSize { +} +//# sourceMappingURL=system-surplus-lot-size.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-lot-size.d.ts.map b/dist/esm/service/model/system-surplus-lot-size.d.ts.map new file mode 100644 index 0000000..f64d042 --- /dev/null +++ b/dist/esm/service/model/system-surplus-lot-size.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-lot-size.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-surplus-lot-size.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;CACpC"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-lot-size.js b/dist/esm/service/model/system-surplus-lot-size.js new file mode 100644 index 0000000..87ac717 --- /dev/null +++ b/dist/esm/service/model/system-surplus-lot-size.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-surplus-lot-size.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus-lot-size.js.map b/dist/esm/service/model/system-surplus-lot-size.js.map new file mode 100644 index 0000000..ef3f18f --- /dev/null +++ b/dist/esm/service/model/system-surplus-lot-size.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-lot-size.js","sourceRoot":"","sources":["../../../../src/service/model/system-surplus-lot-size.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus.d.ts b/dist/esm/service/model/system-surplus.d.ts new file mode 100644 index 0000000..6703e19 --- /dev/null +++ b/dist/esm/service/model/system-surplus.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus + * @export + * @interface SystemSurplus + */ +export interface SystemSurplus { +} +//# sourceMappingURL=system-surplus.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus.d.ts.map b/dist/esm/service/model/system-surplus.d.ts.map new file mode 100644 index 0000000..1a54fb9 --- /dev/null +++ b/dist/esm/service/model/system-surplus.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus.d.ts","sourceRoot":"","sources":["../../../../src/service/model/system-surplus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B"} \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus.js b/dist/esm/service/model/system-surplus.js new file mode 100644 index 0000000..636b284 --- /dev/null +++ b/dist/esm/service/model/system-surplus.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=system-surplus.js.map \ No newline at end of file diff --git a/dist/esm/service/model/system-surplus.js.map b/dist/esm/service/model/system-surplus.js.map new file mode 100644 index 0000000..fcca246 --- /dev/null +++ b/dist/esm/service/model/system-surplus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus.js","sourceRoot":"","sources":["../../../../src/service/model/system-surplus.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/time-range.d.ts b/dist/esm/service/model/time-range.d.ts new file mode 100644 index 0000000..e3d5f94 --- /dev/null +++ b/dist/esm/service/model/time-range.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TimeRange + */ +export interface TimeRange { + /** + * + * @type {string} + * @memberof TimeRange + */ + 'from'?: string; + /** + * + * @type {string} + * @memberof TimeRange + */ + 'to'?: string; +} +//# sourceMappingURL=time-range.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/time-range.d.ts.map b/dist/esm/service/model/time-range.d.ts.map new file mode 100644 index 0000000..e774325 --- /dev/null +++ b/dist/esm/service/model/time-range.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"time-range.d.ts","sourceRoot":"","sources":["../../../../src/service/model/time-range.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/esm/service/model/time-range.js b/dist/esm/service/model/time-range.js new file mode 100644 index 0000000..016d66c --- /dev/null +++ b/dist/esm/service/model/time-range.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=time-range.js.map \ No newline at end of file diff --git a/dist/esm/service/model/time-range.js.map b/dist/esm/service/model/time-range.js.map new file mode 100644 index 0000000..72098c5 --- /dev/null +++ b/dist/esm/service/model/time-range.js.map @@ -0,0 +1 @@ +{"version":3,"file":"time-range.js","sourceRoot":"","sources":["../../../../src/service/model/time-range.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/timestamp.d.ts b/dist/esm/service/model/timestamp.d.ts new file mode 100644 index 0000000..a441b24 --- /dev/null +++ b/dist/esm/service/model/timestamp.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} +//# sourceMappingURL=timestamp.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/timestamp.d.ts.map b/dist/esm/service/model/timestamp.d.ts.map new file mode 100644 index 0000000..ad0dfbf --- /dev/null +++ b/dist/esm/service/model/timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/service/model/timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/service/model/timestamp.js b/dist/esm/service/model/timestamp.js new file mode 100644 index 0000000..fd15be9 --- /dev/null +++ b/dist/esm/service/model/timestamp.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/dist/esm/service/model/timestamp.js.map b/dist/esm/service/model/timestamp.js.map new file mode 100644 index 0000000..653dd93 --- /dev/null +++ b/dist/esm/service/model/timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/service/model/timestamp.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/token.d.ts b/dist/esm/service/model/token.d.ts new file mode 100644 index 0000000..8f711e8 --- /dev/null +++ b/dist/esm/service/model/token.d.ts @@ -0,0 +1,62 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Token + */ +export interface Token { + /** + * The name of the token. + * @type {string} + * @memberof Token + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Token + */ + 'symbol': Symbol; + /** + * The number of decimals for the token. + * @type {number} + * @memberof Token + */ + 'decimals': number; + /** + * The Ethereum address of the token. + * @type {string} + * @memberof Token + */ + 'address': string; + /** + * The URI of the token\'s logo. + * @type {string} + * @memberof Token + */ + 'logoUri': string; + /** + * The chain ID of the token. + * @type {number} + * @memberof Token + */ + 'chainId': number; + /** + * The Persian name of the token. + * @type {string} + * @memberof Token + */ + 'persianName': string; +} +//# sourceMappingURL=token.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/token.d.ts.map b/dist/esm/service/model/token.d.ts.map new file mode 100644 index 0000000..ee2d155 --- /dev/null +++ b/dist/esm/service/model/token.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/service/model/token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/esm/service/model/token.js b/dist/esm/service/model/token.js new file mode 100644 index 0000000..256eb6f --- /dev/null +++ b/dist/esm/service/model/token.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/dist/esm/service/model/token.js.map b/dist/esm/service/model/token.js.map new file mode 100644 index 0000000..1a5a07e --- /dev/null +++ b/dist/esm/service/model/token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../src/service/model/token.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/trade-type.d.ts b/dist/esm/service/model/trade-type.d.ts new file mode 100644 index 0000000..aa41cdb --- /dev/null +++ b/dist/esm/service/model/trade-type.d.ts @@ -0,0 +1,22 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TradeType: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type TradeType = typeof TradeType[keyof typeof TradeType]; +//# sourceMappingURL=trade-type.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/trade-type.d.ts.map b/dist/esm/service/model/trade-type.d.ts.map new file mode 100644 index 0000000..d776e19 --- /dev/null +++ b/dist/esm/service/model/trade-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"trade-type.d.ts","sourceRoot":"","sources":["../../../../src/service/model/trade-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/trade-type.js b/dist/esm/service/model/trade-type.js new file mode 100644 index 0000000..9366123 --- /dev/null +++ b/dist/esm/service/model/trade-type.js @@ -0,0 +1,23 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export const TradeType = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=trade-type.js.map \ No newline at end of file diff --git a/dist/esm/service/model/trade-type.js.map b/dist/esm/service/model/trade-type.js.map new file mode 100644 index 0000000..7238e4b --- /dev/null +++ b/dist/esm/service/model/trade-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"trade-type.js","sourceRoot":"","sources":["../../../../src/service/model/trade-type.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/type.d.ts b/dist/esm/service/model/type.d.ts new file mode 100644 index 0000000..3111e55 --- /dev/null +++ b/dist/esm/service/model/type.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Type + */ +export interface Type { + /** + * + * @type {string} + * @memberof Type + */ + 'name': string; + /** + * + * @type {string} + * @memberof Type + */ + 'type': string; +} +//# sourceMappingURL=type.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/type.d.ts.map b/dist/esm/service/model/type.d.ts.map new file mode 100644 index 0000000..896aa26 --- /dev/null +++ b/dist/esm/service/model/type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/service/model/type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/service/model/type.js b/dist/esm/service/model/type.js new file mode 100644 index 0000000..d4c9de9 --- /dev/null +++ b/dist/esm/service/model/type.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=type.js.map \ No newline at end of file diff --git a/dist/esm/service/model/type.js.map b/dist/esm/service/model/type.js.map new file mode 100644 index 0000000..e2cac38 --- /dev/null +++ b/dist/esm/service/model/type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/service/model/type.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/typed-data-domain.d.ts b/dist/esm/service/model/typed-data-domain.d.ts new file mode 100644 index 0000000..ea3b0cb --- /dev/null +++ b/dist/esm/service/model/typed-data-domain.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TypedDataDomain + */ +export interface TypedDataDomain { + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'name': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'version'?: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'chainId': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'verifyingContract': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'salt'?: string; +} +//# sourceMappingURL=typed-data-domain.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/typed-data-domain.d.ts.map b/dist/esm/service/model/typed-data-domain.d.ts.map new file mode 100644 index 0000000..c7ea1be --- /dev/null +++ b/dist/esm/service/model/typed-data-domain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data-domain.d.ts","sourceRoot":"","sources":["../../../../src/service/model/typed-data-domain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/esm/service/model/typed-data-domain.js b/dist/esm/service/model/typed-data-domain.js new file mode 100644 index 0000000..8c09f64 --- /dev/null +++ b/dist/esm/service/model/typed-data-domain.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=typed-data-domain.js.map \ No newline at end of file diff --git a/dist/esm/service/model/typed-data-domain.js.map b/dist/esm/service/model/typed-data-domain.js.map new file mode 100644 index 0000000..ebd3a04 --- /dev/null +++ b/dist/esm/service/model/typed-data-domain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data-domain.js","sourceRoot":"","sources":["../../../../src/service/model/typed-data-domain.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/typed-data.d.ts b/dist/esm/service/model/typed-data.d.ts new file mode 100644 index 0000000..dca45cb --- /dev/null +++ b/dist/esm/service/model/typed-data.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Type } from './type'; +import type { TypedDataDomain } from './typed-data-domain'; +/** + * + * @export + * @interface TypedData + */ +export interface TypedData { + /** + * A map where each key is a string and each value is a list of Type + * @type {{ [key: string]: Array | undefined; }} + * @memberof TypedData + */ + 'types': { + [key: string]: Array | undefined; + }; + /** + * + * @type {string} + * @memberof TypedData + */ + 'primaryType': string; + /** + * + * @type {TypedDataDomain} + * @memberof TypedData + */ + 'domain': TypedDataDomain; + /** + * + * @type {{ [key: string]: any | undefined; }} + * @memberof TypedData + */ + 'message': { + [key: string]: any | undefined; + }; +} +//# sourceMappingURL=typed-data.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/typed-data.d.ts.map b/dist/esm/service/model/typed-data.d.ts.map new file mode 100644 index 0000000..e25848f --- /dev/null +++ b/dist/esm/service/model/typed-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data.d.ts","sourceRoot":"","sources":["../../../../src/service/model/typed-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAClD"} \ No newline at end of file diff --git a/dist/esm/service/model/typed-data.js b/dist/esm/service/model/typed-data.js new file mode 100644 index 0000000..a86b9c1 --- /dev/null +++ b/dist/esm/service/model/typed-data.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=typed-data.js.map \ No newline at end of file diff --git a/dist/esm/service/model/typed-data.js.map b/dist/esm/service/model/typed-data.js.map new file mode 100644 index 0000000..a916ea5 --- /dev/null +++ b/dist/esm/service/model/typed-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data.js","sourceRoot":"","sources":["../../../../src/service/model/typed-data.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/unclaimed-reward.d.ts b/dist/esm/service/model/unclaimed-reward.d.ts new file mode 100644 index 0000000..7ad00a0 --- /dev/null +++ b/dist/esm/service/model/unclaimed-reward.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of unclaimed reward in native token units + * @export + * @interface UnclaimedReward + */ +export interface UnclaimedReward { +} +//# sourceMappingURL=unclaimed-reward.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/unclaimed-reward.d.ts.map b/dist/esm/service/model/unclaimed-reward.d.ts.map new file mode 100644 index 0000000..99f9771 --- /dev/null +++ b/dist/esm/service/model/unclaimed-reward.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"unclaimed-reward.d.ts","sourceRoot":"","sources":["../../../../src/service/model/unclaimed-reward.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;CAC/B"} \ No newline at end of file diff --git a/dist/esm/service/model/unclaimed-reward.js b/dist/esm/service/model/unclaimed-reward.js new file mode 100644 index 0000000..4d7103d --- /dev/null +++ b/dist/esm/service/model/unclaimed-reward.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=unclaimed-reward.js.map \ No newline at end of file diff --git a/dist/esm/service/model/unclaimed-reward.js.map b/dist/esm/service/model/unclaimed-reward.js.map new file mode 100644 index 0000000..5401d1c --- /dev/null +++ b/dist/esm/service/model/unclaimed-reward.js.map @@ -0,0 +1 @@ +{"version":3,"file":"unclaimed-reward.js","sourceRoot":"","sources":["../../../../src/service/model/unclaimed-reward.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/update-order-request.d.ts b/dist/esm/service/model/update-order-request.d.ts new file mode 100644 index 0000000..18b90c0 --- /dev/null +++ b/dist/esm/service/model/update-order-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateOrderRequest + */ +export interface UpdateOrderRequest { + /** + * + * @type {string} + * @memberof UpdateOrderRequest + */ + 'orderHash': string; +} +//# sourceMappingURL=update-order-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/update-order-request.d.ts.map b/dist/esm/service/model/update-order-request.d.ts.map new file mode 100644 index 0000000..e876d4c --- /dev/null +++ b/dist/esm/service/model/update-order-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-order-request.d.ts","sourceRoot":"","sources":["../../../../src/service/model/update-order-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/service/model/update-order-request.js b/dist/esm/service/model/update-order-request.js new file mode 100644 index 0000000..80365c8 --- /dev/null +++ b/dist/esm/service/model/update-order-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=update-order-request.js.map \ No newline at end of file diff --git a/dist/esm/service/model/update-order-request.js.map b/dist/esm/service/model/update-order-request.js.map new file mode 100644 index 0000000..0163983 --- /dev/null +++ b/dist/esm/service/model/update-order-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-order-request.js","sourceRoot":"","sources":["../../../../src/service/model/update-order-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/user-borrows-response.d.ts b/dist/esm/service/model/user-borrows-response.d.ts new file mode 100644 index 0000000..fbe1f1f --- /dev/null +++ b/dist/esm/service/model/user-borrows-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolBorrow } from './lendingpool-borrow'; +/** + * + * @export + * @interface UserBorrowsResponse + */ +export interface UserBorrowsResponse { + /** + * + * @type {Array} + * @memberof UserBorrowsResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-borrows-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/user-borrows-response.d.ts.map b/dist/esm/service/model/user-borrows-response.d.ts.map new file mode 100644 index 0000000..a01afd7 --- /dev/null +++ b/dist/esm/service/model/user-borrows-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-borrows-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/user-borrows-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACpC"} \ No newline at end of file diff --git a/dist/esm/service/model/user-borrows-response.js b/dist/esm/service/model/user-borrows-response.js new file mode 100644 index 0000000..7eed173 --- /dev/null +++ b/dist/esm/service/model/user-borrows-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-borrows-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/user-borrows-response.js.map b/dist/esm/service/model/user-borrows-response.js.map new file mode 100644 index 0000000..07f93ae --- /dev/null +++ b/dist/esm/service/model/user-borrows-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-borrows-response.js","sourceRoot":"","sources":["../../../../src/service/model/user-borrows-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/user-deposits-response.d.ts b/dist/esm/service/model/user-deposits-response.d.ts new file mode 100644 index 0000000..6d640a6 --- /dev/null +++ b/dist/esm/service/model/user-deposits-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolDeposit } from './lendingpool-deposit'; +/** + * + * @export + * @interface UserDepositsResponse + */ +export interface UserDepositsResponse { + /** + * + * @type {Array} + * @memberof UserDepositsResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-deposits-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/user-deposits-response.d.ts.map b/dist/esm/service/model/user-deposits-response.d.ts.map new file mode 100644 index 0000000..25bb05b --- /dev/null +++ b/dist/esm/service/model/user-deposits-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-deposits-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/user-deposits-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACrC"} \ No newline at end of file diff --git a/dist/esm/service/model/user-deposits-response.js b/dist/esm/service/model/user-deposits-response.js new file mode 100644 index 0000000..45097eb --- /dev/null +++ b/dist/esm/service/model/user-deposits-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-deposits-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/user-deposits-response.js.map b/dist/esm/service/model/user-deposits-response.js.map new file mode 100644 index 0000000..18daa57 --- /dev/null +++ b/dist/esm/service/model/user-deposits-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-deposits-response.js","sourceRoot":"","sources":["../../../../src/service/model/user-deposits-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/user-error.d.ts b/dist/esm/service/model/user-error.d.ts new file mode 100644 index 0000000..c580f3d --- /dev/null +++ b/dist/esm/service/model/user-error.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorMessage } from './error-message'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorMessage | undefined; }} + * @memberof UserError + */ + 'messages': { + [key: string]: ErrorMessage | undefined; + }; + /** + * + * @type {Array} + * @memberof UserError + */ + 'reasons': Array; +} +//# sourceMappingURL=user-error.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/user-error.d.ts.map b/dist/esm/service/model/user-error.d.ts.map new file mode 100644 index 0000000..fd4816c --- /dev/null +++ b/dist/esm/service/model/user-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.d.ts","sourceRoot":"","sources":["../../../../src/service/model/user-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/user-error.js b/dist/esm/service/model/user-error.js new file mode 100644 index 0000000..825fc07 --- /dev/null +++ b/dist/esm/service/model/user-error.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-error.js.map \ No newline at end of file diff --git a/dist/esm/service/model/user-error.js.map b/dist/esm/service/model/user-error.js.map new file mode 100644 index 0000000..f87bd8c --- /dev/null +++ b/dist/esm/service/model/user-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.js","sourceRoot":"","sources":["../../../../src/service/model/user-error.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/user-stake.d.ts b/dist/esm/service/model/user-stake.d.ts new file mode 100644 index 0000000..50a0157 --- /dev/null +++ b/dist/esm/service/model/user-stake.d.ts @@ -0,0 +1,53 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UserStake + */ +export interface UserStake { + /** + * Ethereum address of the user + * @type {string} + * @memberof UserStake + */ + 'user': string; + /** + * The amount of asset staked in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'balance': { + [key: string]: string | undefined; + }; + /** + * The amount of unclaimed reward in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'unclaimedReward': { + [key: string]: string | undefined; + }; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof UserStake + */ + 'contractAddress': string; + /** + * Name of staking plan + * @type {string} + * @memberof UserStake + */ + 'planName': string; +} +//# sourceMappingURL=user-stake.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/user-stake.d.ts.map b/dist/esm/service/model/user-stake.d.ts.map new file mode 100644 index 0000000..fcab720 --- /dev/null +++ b/dist/esm/service/model/user-stake.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stake.d.ts","sourceRoot":"","sources":["../../../../src/service/model/user-stake.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/service/model/user-stake.js b/dist/esm/service/model/user-stake.js new file mode 100644 index 0000000..58a59c8 --- /dev/null +++ b/dist/esm/service/model/user-stake.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-stake.js.map \ No newline at end of file diff --git a/dist/esm/service/model/user-stake.js.map b/dist/esm/service/model/user-stake.js.map new file mode 100644 index 0000000..4f2bfcb --- /dev/null +++ b/dist/esm/service/model/user-stake.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stake.js","sourceRoot":"","sources":["../../../../src/service/model/user-stake.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/user-stakes-response.d.ts b/dist/esm/service/model/user-stakes-response.d.ts new file mode 100644 index 0000000..0e23281 --- /dev/null +++ b/dist/esm/service/model/user-stakes-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UserStake } from './user-stake'; +/** + * + * @export + * @interface UserStakesResponse + */ +export interface UserStakesResponse { + /** + * + * @type {Array} + * @memberof UserStakesResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-stakes-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/user-stakes-response.d.ts.map b/dist/esm/service/model/user-stakes-response.d.ts.map new file mode 100644 index 0000000..7930d03 --- /dev/null +++ b/dist/esm/service/model/user-stakes-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stakes-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/user-stakes-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/service/model/user-stakes-response.js b/dist/esm/service/model/user-stakes-response.js new file mode 100644 index 0000000..ed25d93 --- /dev/null +++ b/dist/esm/service/model/user-stakes-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-stakes-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/user-stakes-response.js.map b/dist/esm/service/model/user-stakes-response.js.map new file mode 100644 index 0000000..229d6fe --- /dev/null +++ b/dist/esm/service/model/user-stakes-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stakes-response.js","sourceRoot":"","sources":["../../../../src/service/model/user-stakes-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/v3-pool-in-route.d.ts b/dist/esm/service/model/v3-pool-in-route.d.ts new file mode 100644 index 0000000..3e436d8 --- /dev/null +++ b/dist/esm/service/model/v3-pool-in-route.d.ts @@ -0,0 +1,44 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface V3PoolInRoute + */ +export interface V3PoolInRoute { + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'address': string; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenIn': Token; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenOut': Token; + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'fee': string; +} +//# sourceMappingURL=v3-pool-in-route.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/v3-pool-in-route.d.ts.map b/dist/esm/service/model/v3-pool-in-route.d.ts.map new file mode 100644 index 0000000..fc5da85 --- /dev/null +++ b/dist/esm/service/model/v3-pool-in-route.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"v3-pool-in-route.d.ts","sourceRoot":"","sources":["../../../../src/service/model/v3-pool-in-route.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/esm/service/model/v3-pool-in-route.js b/dist/esm/service/model/v3-pool-in-route.js new file mode 100644 index 0000000..bac8983 --- /dev/null +++ b/dist/esm/service/model/v3-pool-in-route.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=v3-pool-in-route.js.map \ No newline at end of file diff --git a/dist/esm/service/model/v3-pool-in-route.js.map b/dist/esm/service/model/v3-pool-in-route.js.map new file mode 100644 index 0000000..4036082 --- /dev/null +++ b/dist/esm/service/model/v3-pool-in-route.js.map @@ -0,0 +1 @@ +{"version":3,"file":"v3-pool-in-route.js","sourceRoot":"","sources":["../../../../src/service/model/v3-pool-in-route.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-extension.d.ts b/dist/esm/service/model/vault-event-extension.d.ts new file mode 100644 index 0000000..0f87770 --- /dev/null +++ b/dist/esm/service/model/vault-event-extension.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VaultEvent } from './vault-event'; +/** + * + * @export + * @interface VaultEventExtension + */ +export interface VaultEventExtension { + /** + * + * @type {VaultEvent} + * @memberof VaultEventExtension + */ + 'payload'?: VaultEvent; +} +//# sourceMappingURL=vault-event-extension.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-extension.d.ts.map b/dist/esm/service/model/vault-event-extension.d.ts.map new file mode 100644 index 0000000..bfd52f4 --- /dev/null +++ b/dist/esm/service/model/vault-event-extension.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-extension.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vault-event-extension.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-extension.js b/dist/esm/service/model/vault-event-extension.js new file mode 100644 index 0000000..6b8c270 --- /dev/null +++ b/dist/esm/service/model/vault-event-extension.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vault-event-extension.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-extension.js.map b/dist/esm/service/model/vault-event-extension.js.map new file mode 100644 index 0000000..39fb4a9 --- /dev/null +++ b/dist/esm/service/model/vault-event-extension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-extension.js","sourceRoot":"","sources":["../../../../src/service/model/vault-event-extension.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-item.d.ts b/dist/esm/service/model/vault-event-item.d.ts new file mode 100644 index 0000000..873dc34 --- /dev/null +++ b/dist/esm/service/model/vault-event-item.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BasicEvent } from './basic-event'; +import type { VaultEventExtension } from './vault-event-extension'; +/** + * @type VaultEventItem + * @export + */ +export type VaultEventItem = BasicEvent & VaultEventExtension; +//# sourceMappingURL=vault-event-item.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-item.d.ts.map b/dist/esm/service/model/vault-event-item.d.ts.map new file mode 100644 index 0000000..fe353c2 --- /dev/null +++ b/dist/esm/service/model/vault-event-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-item.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vault-event-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAkBhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-item.js b/dist/esm/service/model/vault-event-item.js new file mode 100644 index 0000000..f9fe7e1 --- /dev/null +++ b/dist/esm/service/model/vault-event-item.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vault-event-item.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event-item.js.map b/dist/esm/service/model/vault-event-item.js.map new file mode 100644 index 0000000..f29211f --- /dev/null +++ b/dist/esm/service/model/vault-event-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-item.js","sourceRoot":"","sources":["../../../../src/service/model/vault-event-item.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event.d.ts b/dist/esm/service/model/vault-event.d.ts new file mode 100644 index 0000000..388ae5d --- /dev/null +++ b/dist/esm/service/model/vault-event.d.ts @@ -0,0 +1,42 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface VaultEvent + */ +export interface VaultEvent { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaCollateral': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof VaultEvent + */ + 'ilk': Ilk; +} +//# sourceMappingURL=vault-event.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event.d.ts.map b/dist/esm/service/model/vault-event.d.ts.map new file mode 100644 index 0000000..b1b00b5 --- /dev/null +++ b/dist/esm/service/model/vault-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vault-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-event.js b/dist/esm/service/model/vault-event.js new file mode 100644 index 0000000..6674d75 --- /dev/null +++ b/dist/esm/service/model/vault-event.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vault-event.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-event.js.map b/dist/esm/service/model/vault-event.js.map new file mode 100644 index 0000000..7b25a7d --- /dev/null +++ b/dist/esm/service/model/vault-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event.js","sourceRoot":"","sources":["../../../../src/service/model/vault-event.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-events-response.d.ts b/dist/esm/service/model/vault-events-response.d.ts new file mode 100644 index 0000000..7512989 --- /dev/null +++ b/dist/esm/service/model/vault-events-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExtendedEvent } from './extended-event'; +/** + * + * @export + * @interface VaultEventsResponse + */ +export interface VaultEventsResponse { + /** + * + * @type {Array} + * @memberof VaultEventsResponse + */ + 'data': Array; +} +//# sourceMappingURL=vault-events-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-events-response.d.ts.map b/dist/esm/service/model/vault-events-response.d.ts.map new file mode 100644 index 0000000..16c3856 --- /dev/null +++ b/dist/esm/service/model/vault-events-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-events-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vault-events-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/esm/service/model/vault-events-response.js b/dist/esm/service/model/vault-events-response.js new file mode 100644 index 0000000..8310162 --- /dev/null +++ b/dist/esm/service/model/vault-events-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vault-events-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vault-events-response.js.map b/dist/esm/service/model/vault-events-response.js.map new file mode 100644 index 0000000..ca54889 --- /dev/null +++ b/dist/esm/service/model/vault-events-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-events-response.js","sourceRoot":"","sources":["../../../../src/service/model/vault-events-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vault.d.ts b/dist/esm/service/model/vault.d.ts new file mode 100644 index 0000000..5aa3295 --- /dev/null +++ b/dist/esm/service/model/vault.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface Vault + */ +export interface Vault { + /** + * Identifier for the vault. + * @type {number} + * @memberof Vault + */ + 'id': number; + /** + * Ethereum address of the vault owner. + * @type {string} + * @memberof Vault + */ + 'owner': string; + /** + * Ethereum address of the vault urn. + * @type {string} + * @memberof Vault + */ + 'urn': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'liquidationPrice': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'collateralLocked': { + [key: string]: string | undefined; + }; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof Vault + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof Vault + */ + 'loanToValue': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'debt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToWithdraw': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToMint': { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof Vault + */ + 'ilk': Ilk; +} +//# sourceMappingURL=vault.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vault.d.ts.map b/dist/esm/service/model/vault.d.ts.map new file mode 100644 index 0000000..99c2171 --- /dev/null +++ b/dist/esm/service/model/vault.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vault.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC3D;;;;OAIG;IACH,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC3D;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,qBAAqB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9D;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/esm/service/model/vault.js b/dist/esm/service/model/vault.js new file mode 100644 index 0000000..314307e --- /dev/null +++ b/dist/esm/service/model/vault.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vault.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vault.js.map b/dist/esm/service/model/vault.js.map new file mode 100644 index 0000000..33a19b1 --- /dev/null +++ b/dist/esm/service/model/vault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault.js","sourceRoot":"","sources":["../../../../src/service/model/vault.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/vaults-response.d.ts b/dist/esm/service/model/vaults-response.d.ts new file mode 100644 index 0000000..c9d570f --- /dev/null +++ b/dist/esm/service/model/vaults-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Vault } from './vault'; +/** + * + * @export + * @interface VaultsResponse + */ +export interface VaultsResponse { + /** + * + * @type {Array} + * @memberof VaultsResponse + */ + 'data': Array; +} +//# sourceMappingURL=vaults-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/vaults-response.d.ts.map b/dist/esm/service/model/vaults-response.d.ts.map new file mode 100644 index 0000000..043fffc --- /dev/null +++ b/dist/esm/service/model/vaults-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-response.d.ts","sourceRoot":"","sources":["../../../../src/service/model/vaults-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/service/model/vaults-response.js b/dist/esm/service/model/vaults-response.js new file mode 100644 index 0000000..049e5b4 --- /dev/null +++ b/dist/esm/service/model/vaults-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=vaults-response.js.map \ No newline at end of file diff --git a/dist/esm/service/model/vaults-response.js.map b/dist/esm/service/model/vaults-response.js.map new file mode 100644 index 0000000..6f191bf --- /dev/null +++ b/dist/esm/service/model/vaults-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-response.js","sourceRoot":"","sources":["../../../../src/service/model/vaults-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/service/model/wallet-balance.d.ts b/dist/esm/service/model/wallet-balance.d.ts new file mode 100644 index 0000000..ba1e798 --- /dev/null +++ b/dist/esm/service/model/wallet-balance.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Balance } from './balance'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} +//# sourceMappingURL=wallet-balance.d.ts.map \ No newline at end of file diff --git a/dist/esm/service/model/wallet-balance.d.ts.map b/dist/esm/service/model/wallet-balance.d.ts.map new file mode 100644 index 0000000..5456f6f --- /dev/null +++ b/dist/esm/service/model/wallet-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.d.ts","sourceRoot":"","sources":["../../../../src/service/model/wallet-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/service/model/wallet-balance.js b/dist/esm/service/model/wallet-balance.js new file mode 100644 index 0000000..b8ba2f0 --- /dev/null +++ b/dist/esm/service/model/wallet-balance.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=wallet-balance.js.map \ No newline at end of file diff --git a/dist/esm/service/model/wallet-balance.js.map b/dist/esm/service/model/wallet-balance.js.map new file mode 100644 index 0000000..980b5fc --- /dev/null +++ b/dist/esm/service/model/wallet-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.js","sourceRoot":"","sources":["../../../../src/service/model/wallet-balance.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/api.d.ts b/dist/esm/wallet/api.d.ts new file mode 100644 index 0000000..a831051 --- /dev/null +++ b/dist/esm/wallet/api.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AuthApi from './api/auth-api'; +export * as BalanceApi from './api/balance-api'; +export * as CoinsApi from './api/coins-api'; +export * as DepositApi from './api/deposit-api'; +export * as HealthApi from './api/health-api'; +export * as LoansApi from './api/loans-api'; +export * as PaymentApi from './api/payment-api'; +export * as PointsApi from './api/points-api'; +export * as RedemptionsApi from './api/redemptions-api'; +export * as ReferralsApi from './api/referrals-api'; +export * as SwapApi from './api/swap-api'; +export * as TasksApi from './api/tasks-api'; +export * as TransactionsApi from './api/transactions-api'; +export * as UserApi from './api/user-api'; +export * as WithdrawApi from './api/withdraw-api'; +//# sourceMappingURL=api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api.d.ts.map b/dist/esm/wallet/api.d.ts.map new file mode 100644 index 0000000..57527e1 --- /dev/null +++ b/dist/esm/wallet/api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api.js b/dist/esm/wallet/api.js new file mode 100644 index 0000000..8cbf323 --- /dev/null +++ b/dist/esm/wallet/api.js @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AuthApi from './api/auth-api'; +export * as BalanceApi from './api/balance-api'; +export * as CoinsApi from './api/coins-api'; +export * as DepositApi from './api/deposit-api'; +export * as HealthApi from './api/health-api'; +export * as LoansApi from './api/loans-api'; +export * as PaymentApi from './api/payment-api'; +export * as PointsApi from './api/points-api'; +export * as RedemptionsApi from './api/redemptions-api'; +export * as ReferralsApi from './api/referrals-api'; +export * as SwapApi from './api/swap-api'; +export * as TasksApi from './api/tasks-api'; +export * as TransactionsApi from './api/transactions-api'; +export * as UserApi from './api/user-api'; +export * as WithdrawApi from './api/withdraw-api'; +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api.js.map b/dist/esm/wallet/api.js.map new file mode 100644 index 0000000..23a05ad --- /dev/null +++ b/dist/esm/wallet/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/wallet/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/auth-api.d.ts b/dist/esm/wallet/api/auth-api.d.ts new file mode 100644 index 0000000..a0dc679 --- /dev/null +++ b/dist/esm/wallet/api/auth-api.d.ts @@ -0,0 +1,322 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AuthTelegramRequest } from '../model'; +import type { JwtResponse } from '../model'; +import type { LoginRequest } from '../model'; +import type { SignUpRequest } from '../model'; +import type { SimpleResponse } from '../model'; +/** + * AuthApi - axios parameter creator + * @export + */ +export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram: (authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken: (duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp: (channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword: (loginRequest: LoginRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword: (signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail: (token: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AuthApi - functional programming interface + * @export + */ +export declare const AuthApiFp: (configuration?: Configuration) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AuthApi - factory interface + * @export + */ +export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AuthApi - interface + * @export + * @interface AuthApi + */ +export interface AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AuthApi - object-oriented interface + * @export + * @class AuthApi + * @extends {BaseAPI} + */ +export declare class AuthApi extends BaseAPI implements AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GenerateJwtTokenDurationEnum: { + readonly NUMBER_7: 7; + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_90: 90; +}; +export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; +/** + * @export + */ +export declare const GetOtpChannelEnum: { + readonly PHONE: "phone"; +}; +export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; +//# sourceMappingURL=auth-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/auth-api.d.ts.map b/dist/esm/wallet/api/auth-api.d.ts.map new file mode 100644 index 0000000..e230f7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;;OAOG;IACI,wBAAwB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzG;;;;;;;OAOG;IACI,gBAAgB,CAAC,QAAQ,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/F;;;;;;;OAOG;IACI,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzE;;;;;;;OAOG;IACI,yBAAyB,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI5F;;;;;;;OAOG;IACI,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/F;;;;;;;OAOG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxE;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAC1H;;GAEG;AACH,eAAO,MAAM,iBAAiB;;CAEpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/auth-api.js b/dist/esm/wallet/api/auth-api.js new file mode 100644 index 0000000..0966e36 --- /dev/null +++ b/dist/esm/wallet/api/auth-api.js @@ -0,0 +1,484 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * AuthApi - axios parameter creator + * @export + */ +export const AuthApiAxiosParamCreator = function (configuration) { + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram: (authTelegramRequest_1, ...args_1) => __awaiter(this, [authTelegramRequest_1, ...args_1], void 0, function* (authTelegramRequest, options = {}) { + // verify required parameter 'authTelegramRequest' is not null or undefined + assertParamExists('authenticateWithTelegram', 'authTelegramRequest', authTelegramRequest); + const localVarPath = `/auth/telegram`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(authTelegramRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken: (duration_1, ...args_1) => __awaiter(this, [duration_1, ...args_1], void 0, function* (duration, options = {}) { + // verify required parameter 'duration' is not null or undefined + assertParamExists('generateJwtToken', 'duration', duration); + const localVarPath = `/auth/token`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (duration !== undefined) { + localVarQueryParameter['duration'] = duration; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp: (channel_1, ...args_1) => __awaiter(this, [channel_1, ...args_1], void 0, function* (channel, options = {}) { + // verify required parameter 'channel' is not null or undefined + assertParamExists('getOtp', 'channel', channel); + const localVarPath = `/auth/otp`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (channel !== undefined) { + localVarQueryParameter['channel'] = channel; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword: (loginRequest_1, ...args_1) => __awaiter(this, [loginRequest_1, ...args_1], void 0, function* (loginRequest, options = {}) { + // verify required parameter 'loginRequest' is not null or undefined + assertParamExists('loginWithEmailAndPassword', 'loginRequest', loginRequest); + const localVarPath = `/auth/login`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword: (signUpRequest_1, ...args_1) => __awaiter(this, [signUpRequest_1, ...args_1], void 0, function* (signUpRequest, options = {}) { + // verify required parameter 'signUpRequest' is not null or undefined + assertParamExists('signupWithEmailAndPassword', 'signUpRequest', signUpRequest); + const localVarPath = `/auth/signup`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(signUpRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail: (token_1, ...args_1) => __awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) { + // verify required parameter 'token' is not null or undefined + assertParamExists('verifyUserEmail', 'token', token); + const localVarPath = `/verify-email`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * AuthApi - functional programming interface + * @export + */ +export const AuthApiFp = function (configuration) { + const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration); + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.authenticateWithTelegram(authTelegramRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authenticateWithTelegram']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.generateJwtToken(duration, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.generateJwtToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getOtp(channel, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.getOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.loginWithEmailAndPassword(loginRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.loginWithEmailAndPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.signupWithEmailAndPassword(signUpRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.signupWithEmailAndPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyUserEmail(token, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyUserEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * AuthApi - factory interface + * @export + */ +export const AuthApiFactory = function (configuration, basePath, axios) { + const localVarFp = AuthApiFp(configuration); + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest, options) { + return localVarFp.authenticateWithTelegram(authTelegramRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration, options) { + return localVarFp.generateJwtToken(duration, options).then((request) => request(axios, basePath)); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel, options) { + return localVarFp.getOtp(channel, options).then((request) => request(axios, basePath)); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest, options) { + return localVarFp.loginWithEmailAndPassword(loginRequest, options).then((request) => request(axios, basePath)); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest, options) { + return localVarFp.signupWithEmailAndPassword(signUpRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token, options) { + return localVarFp.verifyUserEmail(token, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * AuthApi - object-oriented interface + * @export + * @class AuthApi + * @extends {BaseAPI} + */ +export class AuthApi extends BaseAPI { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + authenticateWithTelegram(authTelegramRequest, options) { + return AuthApiFp(this.configuration).authenticateWithTelegram(authTelegramRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + generateJwtToken(duration, options) { + return AuthApiFp(this.configuration).generateJwtToken(duration, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + getOtp(channel, options) { + return AuthApiFp(this.configuration).getOtp(channel, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + loginWithEmailAndPassword(loginRequest, options) { + return AuthApiFp(this.configuration).loginWithEmailAndPassword(loginRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + signupWithEmailAndPassword(signUpRequest, options) { + return AuthApiFp(this.configuration).signupWithEmailAndPassword(signUpRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + verifyUserEmail(token, options) { + return AuthApiFp(this.configuration).verifyUserEmail(token, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const GenerateJwtTokenDurationEnum = { + NUMBER_7: 7, + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_90: 90 +}; +/** + * @export + */ +export const GetOtpChannelEnum = { + PHONE: 'phone' +}; +//# sourceMappingURL=auth-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/auth-api.js.map b/dist/esm/wallet/api/auth-api.js.map new file mode 100644 index 0000000..541a6e0 --- /dev/null +++ b/dist/esm/wallet/api/auth-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/auth-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAAoB,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;A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IACX,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;CACP,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,KAAK,EAAE,OAAO;CACR,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/balance-api.d.ts b/dist/esm/wallet/api/balance-api.d.ts new file mode 100644 index 0000000..b441de0 --- /dev/null +++ b/dist/esm/wallet/api/balance-api.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Balance } from '../model'; +import type { Symbol } from '../model'; +import type { WalletBalance } from '../model'; +/** + * BalanceApi - axios parameter creator + * @export + */ +export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol: (symbol: Symbol, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * BalanceApi - functional programming interface + * @export + */ +export declare const BalanceApiFp: (configuration?: Configuration) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * BalanceApi - factory interface + * @export + */ +export declare const BalanceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * BalanceApi - interface + * @export + * @interface BalanceApi + */ +export interface BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * BalanceApi - object-oriented interface + * @export + * @class BalanceApi + * @extends {BaseAPI} + */ +export declare class BalanceApi extends BaseAPI implements BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getWalletBalance(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=balance-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/balance-api.d.ts.map b/dist/esm/wallet/api/balance-api.d.ts.map new file mode 100644 index 0000000..0612191 --- /dev/null +++ b/dist/esm/wallet/api/balance-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/balance-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;OAMG;iCACgC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IA+BrG;;;;;OAKG;iCAC+B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6B1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;OAMG;+BAC8B,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;IAMvJ;;;;;OAKG;+BAC8B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC;CAOlJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;OAMG;+BACwB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC;IAG1F;;;;;OAKG;+BACwB,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC;CAIrF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAE3F;;;;;;OAMG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;CAElF;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;OAOG;IACI,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzE;;;;;;OAMG;IACI,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG1D"} \ No newline at end of file diff --git a/dist/esm/wallet/api/balance-api.js b/dist/esm/wallet/api/balance-api.js new file mode 100644 index 0000000..6b79238 --- /dev/null +++ b/dist/esm/wallet/api/balance-api.js @@ -0,0 +1,189 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * BalanceApi - axios parameter creator + * @export + */ +export const BalanceApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + // verify required parameter 'symbol' is not null or undefined + assertParamExists('getBalanceBySymbol', 'symbol', symbol); + const localVarPath = `/balance/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/balance`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * BalanceApi - functional programming interface + * @export + */ +export const BalanceApiFp = function (configuration) { + const localVarAxiosParamCreator = BalanceApiAxiosParamCreator(configuration); + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalanceBySymbol(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BalanceApi.getBalanceBySymbol']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getWalletBalance(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BalanceApi.getWalletBalance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * BalanceApi - factory interface + * @export + */ +export const BalanceApiFactory = function (configuration, basePath, axios) { + const localVarFp = BalanceApiFp(configuration); + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol, options) { + return localVarFp.getBalanceBySymbol(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options) { + return localVarFp.getWalletBalance(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * BalanceApi - object-oriented interface + * @export + * @class BalanceApi + * @extends {BaseAPI} + */ +export class BalanceApi extends BaseAPI { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getBalanceBySymbol(symbol, options) { + return BalanceApiFp(this.configuration).getBalanceBySymbol(symbol, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getWalletBalance(options) { + return BalanceApiFp(this.configuration).getWalletBalance(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=balance-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/balance-api.js.map b/dist/esm/wallet/api/balance-api.js.map new file mode 100644 index 0000000..cc9559d --- /dev/null +++ b/dist/esm/wallet/api/balance-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/balance-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC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CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/coins-api.d.ts b/dist/esm/wallet/api/coins-api.d.ts new file mode 100644 index 0000000..32158e2 --- /dev/null +++ b/dist/esm/wallet/api/coins-api.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Coin } from '../model'; +import type { CoinResponse } from '../model'; +import type { Symbol } from '../model'; +/** + * CoinsApi - axios parameter creator + * @export + */ +export declare const CoinsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails: (symbol: Symbol, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * CoinsApi - functional programming interface + * @export + */ +export declare const CoinsApiFp: (configuration?: Configuration) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * CoinsApi - factory interface + * @export + */ +export declare const CoinsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * CoinsApi - interface + * @export + * @interface CoinsApi + */ +export interface CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * CoinsApi - object-oriented interface + * @export + * @class CoinsApi + * @extends {BaseAPI} + */ +export declare class CoinsApi extends BaseAPI implements CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getSupportedCoins(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=coins-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/coins-api.d.ts.map b/dist/esm/wallet/api/coins-api.d.ts.map new file mode 100644 index 0000000..ff5a8ea --- /dev/null +++ b/dist/esm/wallet/api/coins-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coins-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/coins-api.ts"],"names":[],"mappings":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G;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEpF;;;;;;OAMG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAElF;AAED;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,OAAQ,YAAW,iBAAiB;IAC9D;;;;;;;OAOG;IACI,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIrE;;;;;;OAMG;IACI,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG3D"} \ No newline at end of file diff --git a/dist/esm/wallet/api/coins-api.js b/dist/esm/wallet/api/coins-api.js new file mode 100644 index 0000000..d48bc93 --- /dev/null +++ b/dist/esm/wallet/api/coins-api.js @@ -0,0 +1,183 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * CoinsApi - axios parameter creator + * @export + */ +export const CoinsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails: (symbol_1, ...args_1) => __awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + // verify required parameter 'symbol' is not null or undefined + assertParamExists('getCoinDetails', 'symbol', symbol); + const localVarPath = `/coins/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/coins`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * CoinsApi - functional programming interface + * @export + */ +export const CoinsApiFp = function (configuration) { + const localVarAxiosParamCreator = CoinsApiAxiosParamCreator(configuration); + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCoinDetails(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CoinsApi.getCoinDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSupportedCoins(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CoinsApi.getSupportedCoins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * CoinsApi - factory interface + * @export + */ +export const CoinsApiFactory = function (configuration, basePath, axios) { + const localVarFp = CoinsApiFp(configuration); + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol, options) { + return localVarFp.getCoinDetails(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options) { + return localVarFp.getSupportedCoins(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * CoinsApi - object-oriented interface + * @export + * @class CoinsApi + * @extends {BaseAPI} + */ +export class CoinsApi extends BaseAPI { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getCoinDetails(symbol, options) { + return CoinsApiFp(this.configuration).getCoinDetails(symbol, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getSupportedCoins(options) { + return CoinsApiFp(this.configuration).getSupportedCoins(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=coins-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/coins-api.js.map b/dist/esm/wallet/api/coins-api.js.map new file mode 100644 index 0000000..e5372b1 --- /dev/null +++ b/dist/esm/wallet/api/coins-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coins-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/coins-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAoF,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOtH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;WAMG;QACH,cAAc,E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CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AA6BF;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO;IACjC;;;;;;;OAOG;IACI,cAAc,CAAC,MAAc,EAAE,OAA+B;QACjE,OAAO,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CAAC,OAA+B;QACpD,OAAO,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/deposit-api.d.ts b/dist/esm/wallet/api/deposit-api.d.ts new file mode 100644 index 0000000..47150cc --- /dev/null +++ b/dist/esm/wallet/api/deposit-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { DepositResponse } from '../model'; +/** + * DepositApi - axios parameter creator + * @export + */ +export declare const DepositApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney: (network: string, symbol: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * DepositApi - functional programming interface + * @export + */ +export declare const DepositApiFp: (configuration?: Configuration) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * DepositApi - factory interface + * @export + */ +export declare const DepositApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * DepositApi - interface + * @export + * @interface DepositApi + */ +export interface DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApiInterface + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * DepositApi - object-oriented interface + * @export + * @class DepositApi + * @extends {BaseAPI} + */ +export declare class DepositApi extends BaseAPI implements DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApi + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=deposit-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/deposit-api.d.ts.map b/dist/esm/wallet/api/deposit-api.d.ts.map new file mode 100644 index 0000000..43c252b --- /dev/null +++ b/dist/esm/wallet/api/deposit-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"depos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AO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGvF"} \ No newline at end of file diff --git a/dist/esm/wallet/api/deposit-api.js b/dist/esm/wallet/api/deposit-api.js new file mode 100644 index 0000000..1823963 --- /dev/null +++ b/dist/esm/wallet/api/deposit-api.js @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * DepositApi - axios parameter creator + * @export + */ +export const DepositApiAxiosParamCreator = function (configuration) { + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney: (network_1, symbol_1, ...args_1) => __awaiter(this, [network_1, symbol_1, ...args_1], void 0, function* (network, symbol, options = {}) { + // verify required parameter 'network' is not null or undefined + assertParamExists('depositMoney', 'network', network); + // verify required parameter 'symbol' is not null or undefined + assertParamExists('depositMoney', 'symbol', symbol); + const localVarPath = `/deposit`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (network !== undefined) { + localVarQueryParameter['network'] = network; + } + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * DepositApi - functional programming interface + * @export + */ +export const DepositApiFp = function (configuration) { + const localVarAxiosParamCreator = DepositApiAxiosParamCreator(configuration); + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network, symbol, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.depositMoney(network, symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DepositApi.depositMoney']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * DepositApi - factory interface + * @export + */ +export const DepositApiFactory = function (configuration, basePath, axios) { + const localVarFp = DepositApiFp(configuration); + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network, symbol, options) { + return localVarFp.depositMoney(network, symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * DepositApi - object-oriented interface + * @export + * @class DepositApi + * @extends {BaseAPI} + */ +export class DepositApi extends BaseAPI { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApi + */ + depositMoney(network, symbol, options) { + return DepositApiFp(this.configuration).depositMoney(network, symbol, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=deposit-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/deposit-api.js.map b/dist/esm/wallet/api/deposit-api.js.map new file mode 100644 index 0000000..0894247 --- /dev/null +++ b/dist/esm/wallet/api/deposit-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/deposit-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAAoB,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;;WAOG;QACH,YAAY,EAAE,iCAAmG,EAAE,sEAA9F,OAAe,EAAE,MAAc,EAAE,UAAiC,EAAE;YACrF,+DAA+D;YAC/D,iBAAiB,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YACrD,8DAA8D;YAC9D,iBAAiB,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;Y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OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/health-api.d.ts b/dist/esm/wallet/api/health-api.d.ts new file mode 100644 index 0000000..82bbf22 --- /dev/null +++ b/dist/esm/wallet/api/health-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { HealthStatus } from '../model'; +/** + * HealthApi - axios parameter creator + * @export + */ +export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * HealthApi - functional programming interface + * @export + */ +export declare const HealthApiFp: (configuration?: Configuration) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * HealthApi - factory interface + * @export + */ +export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * HealthApi - interface + * @export + * @interface HealthApi + */ +export interface HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApiInterface + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * HealthApi - object-oriented interface + * @export + * @class HealthApi + * @extends {BaseAPI} + */ +export declare class HealthApi extends BaseAPI implements HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApi + */ + checkApiHealth(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=health-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/health-api.d.ts.map b/dist/esm/wallet/api/health-api.d.ts.map new file mode 100644 index 0000000..2fad262 --- /dev/null +++ b/dist/esm/wallet/api/health-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"health-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/health-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;+BAC6B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBxF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;6BAC4B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAO/I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;6BACsB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAIlF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAE/E;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGxD"} \ No newline at end of file diff --git a/dist/esm/wallet/api/health-api.js b/dist/esm/wallet/api/health-api.js new file mode 100644 index 0000000..204c66f --- /dev/null +++ b/dist/esm/wallet/api/health-api.js @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * HealthApi - axios parameter creator + * @export + */ +export const HealthApiAxiosParamCreator = function (configuration) { + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/healthz`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * HealthApi - functional programming interface + * @export + */ +export const HealthApiFp = function (configuration) { + const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration); + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.checkApiHealth(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.checkApiHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * HealthApi - factory interface + * @export + */ +export const HealthApiFactory = function (configuration, basePath, axios) { + const localVarFp = HealthApiFp(configuration); + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options) { + return localVarFp.checkApiHealth(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * HealthApi - object-oriented interface + * @export + * @class HealthApi + * @extends {BaseAPI} + */ +export class HealthApi extends BaseAPI { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApi + */ + checkApiHealth(options) { + return HealthApiFp(this.configuration).checkApiHealth(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=health-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/health-api.js.map b/dist/esm/wallet/api/health-api.js.map new file mode 100644 index 0000000..5126b08 --- /dev/null +++ b/dist/esm/wallet/api/health-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"health-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/health-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAuG,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,cAAc,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAAE;YACtD,MAAM,YAAY,GAAG,UAAU,CAAC;YAChC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,eAA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7C,OAAO;QACH;;;;;WAKG;QACH,cAAc,CAAC,OAA+B;YAC1C,OAAO,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAmBF;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAClC;;;;;;OAMG;IACI,cAAc,CAAC,OAA+B;QACjD,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzH,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/loans-api.d.ts b/dist/esm/wallet/api/loans-api.d.ts new file mode 100644 index 0000000..ed552c1 --- /dev/null +++ b/dist/esm/wallet/api/loans-api.d.ts @@ -0,0 +1,342 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Currency } from '../model'; +import type { LoanCreateRequest } from '../model'; +import type { LoanPlanResponse } from '../model'; +import type { LoanToValueOptions } from '../model'; +import type { LoansResponse } from '../model'; +import type { LoansResponseList } from '../model'; +import type { RepayLoanRequest } from '../model'; +/** + * LoansApi - axios parameter creator + * @export + */ +export declare const LoansApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault: (loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral: (planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails: (id: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans: (state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan: (repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LoansApi - functional programming interface + * @export + */ +export declare const LoansApiFp: (configuration?: Configuration) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LoansApi - factory interface + * @export + */ +export declare const LoansApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LoansApi - interface + * @export + * @interface LoansApi + */ +export interface LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LoansApi - object-oriented interface + * @export + * @class LoansApi + * @extends {BaseAPI} + */ +export declare class LoansApi extends BaseAPI implements LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): Promise>; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const EstimateLoanCollateralInputTypeEnum: { + readonly LOAN: "loan"; + readonly COLLATERAL: "collateral"; +}; +export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; +/** + * @export + */ +export declare const GetUserLoansStateEnum: { + readonly PENDING: "pending"; + readonly ACTIVE: "active"; + readonly REPAYMENT_ONGOING: "repayment-ongoing"; + readonly SETTLED: "settled"; + readonly CREATION_FAILED: "creation-failed"; + readonly SETTLEMENT_FAILED: "settlement-failed"; +}; +export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; +//# sourceMappingURL=loans-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/loans-api.d.ts.map b/dist/esm/wallet/api/loans-api.d.ts.map new file mode 100644 index 0000000..5762404 --- /dev/null +++ b/dist/esm/wallet/api/loans-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/loans-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAA6B,aAAa;IAExE;;;;;;OAMG;yCACwC,iBAAiB,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAiCxH;;;;;;;;;OASG;uCACsC,MAAM,qBAAqB,kBAAkB,UAAU,MAAM,aAAa,mCAAmC,YAAW,qBAAqB,KAAQ,OAAO,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EG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAC/I;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/loans-api.js b/dist/esm/wallet/api/loans-api.js new file mode 100644 index 0000000..2fc80d3 --- /dev/null +++ b/dist/esm/wallet/api/loans-api.js @@ -0,0 +1,515 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * LoansApi - axios parameter creator + * @export + */ +export const LoansApiAxiosParamCreator = function (configuration) { + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault: (loanCreateRequest_1, ...args_1) => __awaiter(this, [loanCreateRequest_1, ...args_1], void 0, function* (loanCreateRequest, options = {}) { + // verify required parameter 'loanCreateRequest' is not null or undefined + assertParamExists('createLoanVault', 'loanCreateRequest', loanCreateRequest); + const localVarPath = `/loans/create`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(loanCreateRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral: (planName_1, loanToValueOption_1, amount_1, inputType_1, ...args_1) => __awaiter(this, [planName_1, loanToValueOption_1, amount_1, inputType_1, ...args_1], void 0, function* (planName, loanToValueOption, amount, inputType, options = {}) { + // verify required parameter 'planName' is not null or undefined + assertParamExists('estimateLoanCollateral', 'planName', planName); + // verify required parameter 'loanToValueOption' is not null or undefined + assertParamExists('estimateLoanCollateral', 'loanToValueOption', loanToValueOption); + // verify required parameter 'amount' is not null or undefined + assertParamExists('estimateLoanCollateral', 'amount', amount); + // verify required parameter 'inputType' is not null or undefined + assertParamExists('estimateLoanCollateral', 'inputType', inputType); + const localVarPath = `/loans/estimate`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + if (loanToValueOption !== undefined) { + localVarQueryParameter['loanToValueOption'] = loanToValueOption; + } + if (amount !== undefined) { + localVarQueryParameter['amount'] = amount; + } + if (inputType !== undefined) { + localVarQueryParameter['inputType'] = inputType; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/loans/plans`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getLoanDetails', 'id', id); + const localVarPath = `/loans/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans: (state_1, planName_1, ...args_1) => __awaiter(this, [state_1, planName_1, ...args_1], void 0, function* (state, planName, options = {}) { + const localVarPath = `/loans`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan: (repayLoanRequest_1, ...args_1) => __awaiter(this, [repayLoanRequest_1, ...args_1], void 0, function* (repayLoanRequest, options = {}) { + // verify required parameter 'repayLoanRequest' is not null or undefined + assertParamExists('repayLoan', 'repayLoanRequest', repayLoanRequest); + const localVarPath = `/loans/repay`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(repayLoanRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * LoansApi - functional programming interface + * @export + */ +export const LoansApiFp = function (configuration) { + const localVarAxiosParamCreator = LoansApiAxiosParamCreator(configuration); + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLoanVault(loanCreateRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.createLoanVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.estimateLoanCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllLoanPlans(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.getAllLoanPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getLoanDetails(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.getLoanDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state, planName, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserLoans(state, planName, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.getUserLoans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.repayLoan(repayLoanRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoansApi.repayLoan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * LoansApi - factory interface + * @export + */ +export const LoansApiFactory = function (configuration, basePath, axios) { + const localVarFp = LoansApiFp(configuration); + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest, options) { + return localVarFp.createLoanVault(loanCreateRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return localVarFp.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options) { + return localVarFp.getAllLoanPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id, options) { + return localVarFp.getLoanDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state, planName, options) { + return localVarFp.getUserLoans(state, planName, options).then((request) => request(axios, basePath)); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest, options) { + return localVarFp.repayLoan(repayLoanRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * LoansApi - object-oriented interface + * @export + * @class LoansApi + * @extends {BaseAPI} + */ +export class LoansApi extends BaseAPI { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + createLoanVault(loanCreateRequest, options) { + return LoansApiFp(this.configuration).createLoanVault(loanCreateRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return LoansApiFp(this.configuration).estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getAllLoanPlans(options) { + return LoansApiFp(this.configuration).getAllLoanPlans(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getLoanDetails(id, options) { + return LoansApiFp(this.configuration).getLoanDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getUserLoans(state, planName, options) { + return LoansApiFp(this.configuration).getUserLoans(state, planName, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + repayLoan(repayLoanRequest, options) { + return LoansApiFp(this.configuration).repayLoan(repayLoanRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const EstimateLoanCollateralInputTypeEnum = { + LOAN: 'loan', + COLLATERAL: 'collateral' +}; +/** + * @export + */ +export const GetUserLoansStateEnum = { + PENDING: 'pending', + ACTIVE: 'active', + REPAYMENT_ONGOING: 'repayment-ongoing', + SETTLED: 'settled', + CREATION_FAILED: 'creation-failed', + SETTLEMENT_FAILED: 'settlement-failed' +}; +//# sourceMappingURL=loans-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/loans-api.js.map b/dist/esm/wallet/api/loans-api.js.map new file mode 100644 index 0000000..8142844 --- /dev/null +++ b/dist/esm/wallet/api/loans-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/loans-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa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AClC,iBAAiB,EAAE,mBAAmB;CAChC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/payment-api.d.ts b/dist/esm/wallet/api/payment-api.d.ts new file mode 100644 index 0000000..dd71dce --- /dev/null +++ b/dist/esm/wallet/api/payment-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Payment } from '../model'; +import type { PaymentRequest } from '../model'; +/** + * PaymentApi - axios parameter creator + * @export + */ +export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment: (paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PaymentApi - functional programming interface + * @export + */ +export declare const PaymentApiFp: (configuration?: Configuration) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PaymentApi - factory interface + * @export + */ +export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PaymentApi - interface + * @export + * @interface PaymentApi + */ +export interface PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApiInterface + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PaymentApi - object-oriented interface + * @export + * @class PaymentApi + * @extends {BaseAPI} + */ +export declare class PaymentApi extends BaseAPI implements PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApi + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=payment-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/payment-api.d.ts.map b/dist/esm/wallet/api/payment-api.d.ts.map new file mode 100644 index 0000000..bedd9e0 --- /dev/null +++ b/dist/esm/wallet/api/payment-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/payment-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;OAMG;oCACmC,cAAc,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAkCvH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;OAMG;kCACiC,cAAc,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;CAOzK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;OAMG;kCAC2B,cAAc,YAAY,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC;CAI5G,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,aAAa,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAEzG;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;OAOG;IACI,aAAa,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGvF"} \ No newline at end of file diff --git a/dist/esm/wallet/api/payment-api.js b/dist/esm/wallet/api/payment-api.js new file mode 100644 index 0000000..b511250 --- /dev/null +++ b/dist/esm/wallet/api/payment-api.js @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * PaymentApi - axios parameter creator + * @export + */ +export const PaymentApiAxiosParamCreator = function (configuration) { + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment: (paymentRequest_1, ...args_1) => __awaiter(this, [paymentRequest_1, ...args_1], void 0, function* (paymentRequest, options = {}) { + // verify required parameter 'paymentRequest' is not null or undefined + assertParamExists('createPayment', 'paymentRequest', paymentRequest); + const localVarPath = `/payments`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(paymentRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * PaymentApi - functional programming interface + * @export + */ +export const PaymentApiFp = function (configuration) { + const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration); + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(paymentRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.createPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * PaymentApi - factory interface + * @export + */ +export const PaymentApiFactory = function (configuration, basePath, axios) { + const localVarFp = PaymentApiFp(configuration); + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest, options) { + return localVarFp.createPayment(paymentRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * PaymentApi - object-oriented interface + * @export + * @class PaymentApi + * @extends {BaseAPI} + */ +export class PaymentApi extends BaseAPI { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApi + */ + createPayment(paymentRequest, options) { + return PaymentApiFp(this.configuration).createPayment(paymentRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=payment-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/payment-api.js.map b/dist/esm/wallet/api/payment-api.js.map new file mode 100644 index 0000000..5d3579a --- /dev/null +++ b/dist/esm/wallet/api/payment-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/payment-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAA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,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACzG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAoBF;;;;;GAKG;AACH,MAAM,OAAO,UAAW,SAAQ,OAAO;IACnC;;;;;;;OAOG;IACI,aAAa,CAAC,cAA8B,EAAE,OAA+B;QAChF,OAAO,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/points-api.d.ts b/dist/esm/wallet/api/points-api.d.ts new file mode 100644 index 0000000..8f0accc --- /dev/null +++ b/dist/esm/wallet/api/points-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { FriendPointsResponse } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export declare const PointsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export declare const PointsApiFp: (configuration?: Configuration) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PointsApi - factory interface + * @export + */ +export declare const PointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export declare class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getFriendsPoints(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=points-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/points-api.d.ts.map b/dist/esm/wallet/api/points-api.d.ts.map new file mode 100644 index 0000000..af45e7d --- /dev/null +++ b/dist/esm/wallet/api/points-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/points-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;iCAC+B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6B1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;+BAC8B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAOzJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;+BACwB,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAI5F,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEzF;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG1D"} \ No newline at end of file diff --git a/dist/esm/wallet/api/points-api.js b/dist/esm/wallet/api/points-api.js new file mode 100644 index 0000000..8b06712 --- /dev/null +++ b/dist/esm/wallet/api/points-api.js @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * PointsApi - axios parameter creator + * @export + */ +export const PointsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/points/frineds`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export const PointsApiFp = function (configuration) { + const localVarAxiosParamCreator = PointsApiAxiosParamCreator(configuration); + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getFriendsPoints(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PointsApi.getFriendsPoints']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * PointsApi - factory interface + * @export + */ +export const PointsApiFactory = function (configuration, basePath, axios) { + const localVarFp = PointsApiFp(configuration); + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options) { + return localVarFp.getFriendsPoints(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export class PointsApi extends BaseAPI { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getFriendsPoints(options) { + return PointsApiFp(this.configuration).getFriendsPoints(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=points-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/points-api.js.map b/dist/esm/wallet/api/points-api.js.map new file mode 100644 index 0000000..15ea269 --- /dev/null +++ b/dist/esm/wallet/api/points-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/points-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAA8D,qBAAqB,EAAoB,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAA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W,mCAAI,CAAC,CAAC;gBACrE,MAAM,+BAA+B,GAAG,MAAA,MAAA,kBAAkB,CAAC,4BAA4B,CAAC,0CAAG,4BAA4B,CAAC,0CAAE,GAAG,CAAC;gBAC9H,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC7G,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,CAAC,OAA+B;YAC5C,OAAO,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAmBF;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO;IAClC;;;;;;OAMG;IACI,gBAAgB,CAAC,OAA+B;QACnD,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/redemptions-api.d.ts b/dist/esm/wallet/api/redemptions-api.d.ts new file mode 100644 index 0000000..e8ac387 --- /dev/null +++ b/dist/esm/wallet/api/redemptions-api.d.ts @@ -0,0 +1,235 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AdminRedemptionUpdateRequest } from '../model'; +import type { Redemption } from '../model'; +import type { RedemptionRequest } from '../model'; +import type { RedemptionResponse } from '../model'; +/** + * RedemptionsApi - axios parameter creator + * @export + */ +export declare const RedemptionsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions: (state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar: (redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus: (id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * RedemptionsApi - functional programming interface + * @export + */ +export declare const RedemptionsApiFp: (configuration?: Configuration) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * RedemptionsApi - factory interface + * @export + */ +export declare const RedemptionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * RedemptionsApi - interface + * @export + * @interface RedemptionsApi + */ +export interface RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * RedemptionsApi - object-oriented interface + * @export + * @class RedemptionsApi + * @extends {BaseAPI} + */ +export declare class RedemptionsApi extends BaseAPI implements RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetAllRedemptionsStateEnum: { + readonly PENDING: "pending"; + readonly APPROVED: "approved"; + readonly COMPLETED: "completed"; + readonly REJECTED: "rejected"; +}; +export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; +//# sourceMappingURL=redemptions-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/redemptions-api.d.ts.map b/dist/esm/wallet/api/redemptions-api.d.ts.map new file mode 100644 index 0000000..37e1d1f --- /dev/null +++ b/dist/esm/wallet/api/redemptions-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemptions-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/redemptions-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBA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G,YAAY,CAAC,UAAU,CAAC,CAAC;CAE7J;AAED;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,OAAQ,YAAW,uBAAuB;IAC1E;;;;;;;OAOG;IACI,iBAAiB,CAAC,KAAK,CAAC,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI5F;;;;;;;OAOG;IACI,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIvE;;;;;;;OAOG;IACI,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItF;;;;;;;;OAQG;IACI,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxI;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/redemptions-api.js b/dist/esm/wallet/api/redemptions-api.js new file mode 100644 index 0000000..432d6e5 --- /dev/null +++ b/dist/esm/wallet/api/redemptions-api.js @@ -0,0 +1,352 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * RedemptionsApi - axios parameter creator + * @export + */ +export const RedemptionsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions: (state_1, ...args_1) => __awaiter(this, [state_1, ...args_1], void 0, function* (state, options = {}) { + const localVarPath = `/admin/redemptions`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRedemptionDetails', 'id', id); + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar: (redemptionRequest_1, ...args_1) => __awaiter(this, [redemptionRequest_1, ...args_1], void 0, function* (redemptionRequest, options = {}) { + // verify required parameter 'redemptionRequest' is not null or undefined + assertParamExists('redeemZar', 'redemptionRequest', redemptionRequest); + const localVarPath = `/redemptions`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(redemptionRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus: (id_1, adminRedemptionUpdateRequest_1, ...args_1) => __awaiter(this, [id_1, adminRedemptionUpdateRequest_1, ...args_1], void 0, function* (id, adminRedemptionUpdateRequest, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateRedemptionStatus', 'id', id); + // verify required parameter 'adminRedemptionUpdateRequest' is not null or undefined + assertParamExists('updateRedemptionStatus', 'adminRedemptionUpdateRequest', adminRedemptionUpdateRequest); + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(adminRedemptionUpdateRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * RedemptionsApi - functional programming interface + * @export + */ +export const RedemptionsApiFp = function (configuration) { + const localVarAxiosParamCreator = RedemptionsApiAxiosParamCreator(configuration); + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllRedemptions(state, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RedemptionsApi.getAllRedemptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getRedemptionDetails(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RedemptionsApi.getRedemptionDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.redeemZar(redemptionRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RedemptionsApi.redeemZar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RedemptionsApi.updateRedemptionStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * RedemptionsApi - factory interface + * @export + */ +export const RedemptionsApiFactory = function (configuration, basePath, axios) { + const localVarFp = RedemptionsApiFp(configuration); + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state, options) { + return localVarFp.getAllRedemptions(state, options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id, options) { + return localVarFp.getRedemptionDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest, options) { + return localVarFp.redeemZar(redemptionRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return localVarFp.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * RedemptionsApi - object-oriented interface + * @export + * @class RedemptionsApi + * @extends {BaseAPI} + */ +export class RedemptionsApi extends BaseAPI { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getAllRedemptions(state, options) { + return RedemptionsApiFp(this.configuration).getAllRedemptions(state, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getRedemptionDetails(id, options) { + return RedemptionsApiFp(this.configuration).getRedemptionDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + redeemZar(redemptionRequest, options) { + return RedemptionsApiFp(this.configuration).redeemZar(redemptionRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return RedemptionsApiFp(this.configuration).updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +/** + * @export + */ +export const GetAllRedemptionsStateEnum = { + PENDING: 'pending', + APPROVED: 'approved', + COMPLETED: 'completed', + REJECTED: 'rejected' +}; +//# sourceMappingURL=redemptions-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/redemptions-api.js.map b/dist/esm/wallet/api/redemptions-api.js.map new file mode 100644 index 0000000..413fa77 --- /dev/null +++ b/dist/esm/wallet/api/redemptions-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemptions-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/redemptions-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAAoB,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAWtH;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,aAA6B;IAClF,OAAO;QACH;;;;;;WAMG;QACH,iBAAiB,EAAE,qBAAsG,EAAE,0DAAjG,KAAkC,EAAE,UAAiC,EAAE;YAC7F,MAAM,YAAY,GAAG,oBAAoB,CAAC;YAC1C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YA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IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5I,CAAC;IAED;;;;;;;;OAQG;IACI,sBAAsB,CAAC,EAAU,EAAE,4BAA0D,EAAE,OAA+B;QACjI,OAAO,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,EAAE,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxK,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/api/referrals-api.d.ts b/dist/esm/wallet/api/referrals-api.d.ts new file mode 100644 index 0000000..2b9e292 --- /dev/null +++ b/dist/esm/wallet/api/referrals-api.d.ts @@ -0,0 +1,218 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Referral } from '../model'; +import type { ReferralResponse } from '../model'; +/** + * ReferralsApi - axios parameter creator + * @export + */ +export declare const ReferralsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById: (referralId: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals: (name?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral: (referralId: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral: (referralId: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * ReferralsApi - functional programming interface + * @export + */ +export declare const ReferralsApiFp: (configuration?: Configuration) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * ReferralsApi - factory interface + * @export + */ +export declare const ReferralsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * ReferralsApi - interface + * @export + * @interface ReferralsApi + */ +export interface ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * ReferralsApi - object-oriented interface + * @export + * @class ReferralsApi + * @extends {BaseAPI} + */ +export declare class ReferralsApi extends BaseAPI implements ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=referrals-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/referrals-api.d.ts.map b/dist/esm/wallet/api/referrals-api.d.ts.map new file mode 100644 index 0000000..144b07b --- /dev/null +++ b/dist/esm/wallet/api/referrals-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"referrals-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/referrals-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM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AqB;IAIzE;;;;;;;OAOG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9E"} \ No newline at end of file diff --git a/dist/esm/wallet/api/referrals-api.js b/dist/esm/wallet/api/referrals-api.js new file mode 100644 index 0000000..880268d --- /dev/null +++ b/dist/esm/wallet/api/referrals-api.js @@ -0,0 +1,334 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * ReferralsApi - axios parameter creator + * @export + */ +export const ReferralsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById: (referralId_1, ...args_1) => __awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('getReferralById', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + const localVarPath = `/referrals`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral: (referralId_1, ...args_1) => __awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('redeemReferral', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}/redeem` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral: (referralId_1, ...args_1) => __awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('validateReferral', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}/validate` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * ReferralsApi - functional programming interface + * @export + */ +export const ReferralsApiFp = function (configuration) { + const localVarAxiosParamCreator = ReferralsApiAxiosParamCreator(configuration); + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getReferralById(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReferralsApi.getReferralById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getReferrals(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReferralsApi.getReferrals']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.redeemReferral(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReferralsApi.redeemReferral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.validateReferral(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReferralsApi.validateReferral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * ReferralsApi - factory interface + * @export + */ +export const ReferralsApiFactory = function (configuration, basePath, axios) { + const localVarFp = ReferralsApiFp(configuration); + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId, options) { + return localVarFp.getReferralById(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name, options) { + return localVarFp.getReferrals(name, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId, options) { + return localVarFp.redeemReferral(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId, options) { + return localVarFp.validateReferral(referralId, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * ReferralsApi - object-oriented interface + * @export + * @class ReferralsApi + * @extends {BaseAPI} + */ +export class ReferralsApi extends BaseAPI { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferralById(referralId, options) { + return ReferralsApiFp(this.configuration).getReferralById(referralId, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferrals(name, options) { + return ReferralsApiFp(this.configuration).getReferrals(name, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + redeemReferral(referralId, options) { + return ReferralsApiFp(this.configuration).redeemReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + validateReferral(referralId, options) { + return ReferralsApiFp(this.configuration).validateReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=referrals-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/referrals-api.js.map b/dist/esm/wallet/api/referrals-api.js.map new file mode 100644 index 0000000..86c47bb --- /dev/null +++ b/dist/esm/wallet/api/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aAAa,CAAC,CAAC,eAAe,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;IAED;;;;;;;OAOG;IACI,YAAY,CAAC,IAAa,EAAE,OAA+B;QAC9D,OAAO,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;;;;;OAOG;IACI,cAAc,CAAC,UAAkB,EAAE,OAA+B;QACrE,OAAO,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;IAED;;;;;;;OAOG;IACI,gBAAgB,CAAC,UAAkB,EAAE,OAA+B;QACvE,OAAO,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1I,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/swap-api.d.ts b/dist/esm/wallet/api/swap-api.d.ts new file mode 100644 index 0000000..9e9ba52 --- /dev/null +++ b/dist/esm/wallet/api/swap-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { SwapRequest } from '../model'; +import type { SwapResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export declare const SwapApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins: (swapRequest: SwapRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export declare const SwapApiFp: (configuration?: Configuration) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * SwapApi - factory interface + * @export + */ +export declare const SwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export declare class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=swap-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/swap-api.d.ts.map b/dist/esm/wallet/api/swap-api.d.ts.map new file mode 100644 index 0000000..4263517 --- /dev/null +++ b/dist/esm/wallet/api/swap-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/swap-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;;OAMG;6BAC4B,WAAW,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAkC7G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;;OAMG;2BAC0B,WAAW,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAOpK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;;OAMG;2BACoB,WAAW,YAAY,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAIvG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAEpG;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;;OAOG;IACI,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7E"} \ No newline at end of file diff --git a/dist/esm/wallet/api/swap-api.js b/dist/esm/wallet/api/swap-api.js new file mode 100644 index 0000000..f2fbcc4 --- /dev/null +++ b/dist/esm/wallet/api/swap-api.js @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * SwapApi - axios parameter creator + * @export + */ +export const SwapApiAxiosParamCreator = function (configuration) { + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins: (swapRequest_1, ...args_1) => __awaiter(this, [swapRequest_1, ...args_1], void 0, function* (swapRequest, options = {}) { + // verify required parameter 'swapRequest' is not null or undefined + assertParamExists('swapCoins', 'swapRequest', swapRequest); + const localVarPath = `/swap`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(swapRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export const SwapApiFp = function (configuration) { + const localVarAxiosParamCreator = SwapApiAxiosParamCreator(configuration); + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.swapCoins(swapRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SwapApi.swapCoins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * SwapApi - factory interface + * @export + */ +export const SwapApiFactory = function (configuration, basePath, axios) { + const localVarFp = SwapApiFp(configuration); + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest, options) { + return localVarFp.swapCoins(swapRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export class SwapApi extends BaseAPI { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + swapCoins(swapRequest, options) { + return SwapApiFp(this.configuration).swapCoins(swapRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=swap-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/swap-api.js.map b/dist/esm/wallet/api/swap-api.js.map new file mode 100644 index 0000000..1a0b67e --- /dev/null +++ b/dist/esm/wallet/api/swap-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/swap-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAAoB,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKtH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;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,aAAa,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/tasks-api.d.ts b/dist/esm/wallet/api/tasks-api.d.ts new file mode 100644 index 0000000..8154c92 --- /dev/null +++ b/dist/esm/wallet/api/tasks-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { TaskResponse } from '../model'; +/** + * TasksApi - axios parameter creator + * @export + */ +export declare const TasksApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * TasksApi - functional programming interface + * @export + */ +export declare const TasksApiFp: (configuration?: Configuration) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * TasksApi - factory interface + * @export + */ +export declare const TasksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * TasksApi - interface + * @export + * @interface TasksApi + */ +export interface TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApiInterface + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +export declare class TasksApi extends BaseAPI implements TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApi + */ + getTasks(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=tasks-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/tasks-api.d.ts.map b/dist/esm/wallet/api/tasks-api.d.ts.map new file mode 100644 index 0000000..6ee86bf --- /dev/null +++ b/dist/esm/wallet/api/tasks-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tasks-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/tasks-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAA6B,aAAa;IAExE;;;;;OAKG;yBACuB,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6BlF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,mBAA4B,aAAa;IAGxD;;;;;OAKG;uBACsB,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAOzI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGxG;;;;;OAKG;uBACgB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAI5E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAEzE;AAED;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,OAAQ,YAAW,iBAAiB;IAC9D;;;;;;OAMG;IACI,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGlD"} \ No newline at end of file diff --git a/dist/esm/wallet/api/tasks-api.js b/dist/esm/wallet/api/tasks-api.js new file mode 100644 index 0000000..b59e1bb --- /dev/null +++ b/dist/esm/wallet/api/tasks-api.js @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * TasksApi - axios parameter creator + * @export + */ +export const TasksApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/tasks`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * TasksApi - functional programming interface + * @export + */ +export const TasksApiFp = function (configuration) { + const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration); + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.getTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * TasksApi - factory interface + * @export + */ +export const TasksApiFactory = function (configuration, basePath, axios) { + const localVarFp = TasksApiFp(configuration); + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options) { + return localVarFp.getTasks(options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +export class TasksApi extends BaseAPI { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApi + */ + getTasks(options) { + return TasksApiFp(this.configuration).getTasks(options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=tasks-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/tasks-api.js.map b/dist/esm/wallet/api/tasks-api.js.map new file mode 100644 index 0000000..3a766a5 --- /dev/null +++ b/dist/esm/wallet/api/tasks-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tasks-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/tasks-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAA8D,qBAAqB,EAAoB,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGtH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;WAKG;QACH,QAAQ,EAAE,YAAkE,EAAE,iDAA7D,UAAiC,EAAE;YAChD,MAAM,YAAY,GAAG,QAAQ,CAAC;YAC9B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,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AAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC5G,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;IAC5C,OAAO;QACH;;;;;WAKG;QACH,QAAQ,CAAC,OAA+B;YACpC,OAAO,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpF,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAmBF;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO;IACjC;;;;;;OAMG;IACI,QAAQ,CAAC,OAA+B;QAC3C,OAAO,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClH,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/transactions-api.d.ts b/dist/esm/wallet/api/transactions-api.d.ts new file mode 100644 index 0000000..b574f76 --- /dev/null +++ b/dist/esm/wallet/api/transactions-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { TransactionResponse } from '../model'; +/** + * TransactionsApi - axios parameter creator + * @export + */ +export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions: (cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * TransactionsApi - functional programming interface + * @export + */ +export declare const TransactionsApiFp: (configuration?: Configuration) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * TransactionsApi - factory interface + * @export + */ +export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * TransactionsApi - interface + * @export + * @interface TransactionsApi + */ +export interface TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApiInterface + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * TransactionsApi - object-oriented interface + * @export + * @class TransactionsApi + * @extends {BaseAPI} + */ +export declare class TransactionsApi extends BaseAPI implements TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApi + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=transactions-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/transactions-api.d.ts.map b/dist/esm/wallet/api/transactions-api.d.ts.map new file mode 100644 index 0000000..d7e13f8 --- /dev/null +++ b/dist/esm/wallet/api/transactions-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transactions-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/transactions-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,gCAAgC,mBAA6B,aAAa;IAE/E;;;;;;;OAOG;mCACkC,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAqC9H,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA4B,aAAa;IAG/D;;;;;;;OAOG;iCACgC,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAO5L,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG/G;;;;;;;OAOG;iCAC0B,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC;CAI/H,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;OAQG;IACH,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAE5H;AAED;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,OAAQ,YAAW,wBAAwB;IAC5E;;;;;;;;OAQG;IACI,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9F"} \ No newline at end of file diff --git a/dist/esm/wallet/api/transactions-api.js b/dist/esm/wallet/api/transactions-api.js new file mode 100644 index 0000000..f1c0bf1 --- /dev/null +++ b/dist/esm/wallet/api/transactions-api.js @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * TransactionsApi - axios parameter creator + * @export + */ +export const TransactionsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions: (cursor_1, limit_1, ...args_1) => __awaiter(this, [cursor_1, limit_1, ...args_1], void 0, function* (cursor, limit, options = {}) { + const localVarPath = `/transactions`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * TransactionsApi - functional programming interface + * @export + */ +export const TransactionsApiFp = function (configuration) { + const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration); + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor, limit, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserTransactions(cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TransactionsApi.getUserTransactions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * TransactionsApi - factory interface + * @export + */ +export const TransactionsApiFactory = function (configuration, basePath, axios) { + const localVarFp = TransactionsApiFp(configuration); + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor, limit, options) { + return localVarFp.getUserTransactions(cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * TransactionsApi - object-oriented interface + * @export + * @class TransactionsApi + * @extends {BaseAPI} + */ +export class TransactionsApi extends BaseAPI { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApi + */ + getUserTransactions(cursor, limit, options) { + return TransactionsApiFp(this.configuration).getUserTransactions(cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=transactions-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/transactions-api.js.map b/dist/esm/wallet/api/transactions-api.js.map new file mode 100644 index 0000000..f472c93 --- /dev/null +++ b/dist/esm/wallet/api/transactions-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transactions-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/transactions-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAA8D,qBAAqB,EAAoB,eAAe,EAA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C,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC9G,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAqBF;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,OAAO;IACxC;;;;;;;;OAQG;IACI,mBAAmB,CAAC,MAAe,EAAE,KAAc,EAAE,OAA+B;QACvF,OAAO,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/user-api.d.ts b/dist/esm/wallet/api/user-api.d.ts new file mode 100644 index 0000000..6fd0cf0 --- /dev/null +++ b/dist/esm/wallet/api/user-api.d.ts @@ -0,0 +1,390 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { CreateChildUserRequest } from '../model'; +import type { EmailOtpSubmitRequest } from '../model'; +import type { KycConfirmRequest } from '../model'; +import type { KycRequest } from '../model'; +import type { KycResponse } from '../model'; +import type { PhoneOtpSubmitRequest } from '../model'; +import type { ProfileResponse } from '../model'; +import type { SimpleResponse } from '../model'; +import type { UpdateEmailRequest } from '../model'; +import type { UpdatePhoneRequest } from '../model'; +import type { User } from '../model'; +/** + * UserApi - axios parameter creator + * @export + */ +export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc: (kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber: (phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser: (createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile: (options?: RawAxiosRequestConfig) => Promise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp: (emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc: (kycRequest: KycRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber: (updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress: (updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * UserApi - functional programming interface + * @export + */ +export declare const UserApiFp: (configuration?: Configuration) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * UserApi - factory interface + * @export + */ +export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * UserApi - interface + * @export + * @interface UserApi + */ +export interface UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export declare class UserApi extends BaseAPI implements UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + getUserProfile(options?: RawAxiosRequestConfig): Promise>; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=user-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/user-api.d.ts.map b/dist/esm/wallet/api/user-api.d.ts.map new file mode 100644 index 0000000..7f904a8 --- /dev/null +++ b/dist/esm/wallet/api/user-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/user-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,K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I,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItG;;;;;;OAMG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAIrD;;;;;;;OAOG;IACI,0BAA0B,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/G;;;;;;;OAOG;IACI,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIxE;;;;;;;OAOG;IACI,iBAAiB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIhG;;;;;;;OAOG;IACI,sBAAsB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxG"} \ No newline at end of file diff --git a/dist/esm/wallet/api/user-api.js b/dist/esm/wallet/api/user-api.js new file mode 100644 index 0000000..abe2c7d --- /dev/null +++ b/dist/esm/wallet/api/user-api.js @@ -0,0 +1,610 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * UserApi - axios parameter creator + * @export + */ +export const UserApiAxiosParamCreator = function (configuration) { + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc: (kycConfirmRequest_1, ...args_1) => __awaiter(this, [kycConfirmRequest_1, ...args_1], void 0, function* (kycConfirmRequest, options = {}) { + // verify required parameter 'kycConfirmRequest' is not null or undefined + assertParamExists('confirmKyc', 'kycConfirmRequest', kycConfirmRequest); + const localVarPath = `/users/kyc/confirm`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(kycConfirmRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber: (phoneOtpSubmitRequest_1, ...args_1) => __awaiter(this, [phoneOtpSubmitRequest_1, ...args_1], void 0, function* (phoneOtpSubmitRequest, options = {}) { + // verify required parameter 'phoneOtpSubmitRequest' is not null or undefined + assertParamExists('confirmPhoneNumber', 'phoneOtpSubmitRequest', phoneOtpSubmitRequest); + const localVarPath = `/users/phone/confirm`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(phoneOtpSubmitRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser: (createChildUserRequest_1, ...args_1) => __awaiter(this, [createChildUserRequest_1, ...args_1], void 0, function* (createChildUserRequest, options = {}) { + // verify required parameter 'createChildUserRequest' is not null or undefined + assertParamExists('createChildUser', 'createChildUserRequest', createChildUserRequest); + const localVarPath = `/users/children`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(createChildUserRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/profile`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp: (emailOtpSubmitRequest_1, ...args_1) => __awaiter(this, [emailOtpSubmitRequest_1, ...args_1], void 0, function* (emailOtpSubmitRequest, options = {}) { + // verify required parameter 'emailOtpSubmitRequest' is not null or undefined + assertParamExists('submitEmailConfirmationOtp', 'emailOtpSubmitRequest', emailOtpSubmitRequest); + const localVarPath = `/users/email/confirm`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(emailOtpSubmitRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc: (kycRequest_1, ...args_1) => __awaiter(this, [kycRequest_1, ...args_1], void 0, function* (kycRequest, options = {}) { + // verify required parameter 'kycRequest' is not null or undefined + assertParamExists('submitKyc', 'kycRequest', kycRequest); + const localVarPath = `/users/kyc`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(kycRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber: (updatePhoneRequest_1, ...args_1) => __awaiter(this, [updatePhoneRequest_1, ...args_1], void 0, function* (updatePhoneRequest, options = {}) { + // verify required parameter 'updatePhoneRequest' is not null or undefined + assertParamExists('verifyPhoneNumber', 'updatePhoneRequest', updatePhoneRequest); + const localVarPath = `/users/phone`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(updatePhoneRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress: (updateEmailRequest_1, ...args_1) => __awaiter(this, [updateEmailRequest_1, ...args_1], void 0, function* (updateEmailRequest, options = {}) { + // verify required parameter 'updateEmailRequest' is not null or undefined + assertParamExists('verifyUserEmailAddress', 'updateEmailRequest', updateEmailRequest); + const localVarPath = `/users/email`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(updateEmailRequest, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * UserApi - functional programming interface + * @export + */ +export const UserApiFp = function (configuration) { + const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration); + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmKyc(kycConfirmRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.confirmKyc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPhoneNumber(phoneOtpSubmitRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.confirmPhoneNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createChildUser(createChildUserRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.createChildUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfile(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.submitEmailConfirmationOtp(emailOtpSubmitRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.submitEmailConfirmationOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.submitKyc(kycRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.submitKyc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyPhoneNumber(updatePhoneRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyPhoneNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyUserEmailAddress(updateEmailRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyUserEmailAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * UserApi - factory interface + * @export + */ +export const UserApiFactory = function (configuration, basePath, axios) { + const localVarFp = UserApiFp(configuration); + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest, options) { + return localVarFp.confirmKyc(kycConfirmRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return localVarFp.confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest, options) { + return localVarFp.createChildUser(createChildUserRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options) { + return localVarFp.getUserProfile(options).then((request) => request(axios, basePath)); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return localVarFp.submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest, options) { + return localVarFp.submitKyc(kycRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return localVarFp.verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return localVarFp.verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export class UserApi extends BaseAPI { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmKyc(kycConfirmRequest, options) { + return UserApiFp(this.configuration).confirmKyc(kycConfirmRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return UserApiFp(this.configuration).confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + createChildUser(createChildUserRequest, options) { + return UserApiFp(this.configuration).createChildUser(createChildUserRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + getUserProfile(options) { + return UserApiFp(this.configuration).getUserProfile(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return UserApiFp(this.configuration).submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitKyc(kycRequest, options) { + return UserApiFp(this.configuration).submitKyc(kycRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return UserApiFp(this.configuration).verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return UserApiFp(this.configuration).verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=user-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/user-api.js.map b/dist/esm/wallet/api/user-api.js.map new file mode 100644 index 0000000..49d8d0b --- /dev/null +++ b/dist/esm/wallet/api/user-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/user-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAKH,OAAO,WAAW,MAAM,OAAO,CAAC;AAChC,uCAAuC;AACvC,aAAa;AACb,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAC3C,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAA2C,qBAAqB,EAAoB,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7N,aAAa;AACb,OAAO,EAAE,SAAS,EAAwC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAyBtH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,iCAAwG,EAAE,sEAAnG,iBAAoC,EAAE,UAAiC,EAAE;YACxF,yEAAyE;YACzE,iBAAiB,C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AAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9H,CAAC;IAED;;;;;;;OAOG;IACI,iBAAiB,CAAC,kBAAsC,EAAE,OAA+B;QAC5F,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9I,CAAC;IAED;;;;;;;OAOG;IACI,sBAAsB,CAAC,kBAAsC,EAAE,OAA+B;QACjG,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/api/withdraw-api.d.ts b/dist/esm/wallet/api/withdraw-api.d.ts new file mode 100644 index 0000000..903af49 --- /dev/null +++ b/dist/esm/wallet/api/withdraw-api.d.ts @@ -0,0 +1,216 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { WithdrawRequest } from '../model'; +import type { WithdrawRequestBody } from '../model'; +import type { WithdrawRequestPreview } from '../model'; +import type { WithdrawRequestResponse } from '../model'; +import type { WithdrawResponseBody } from '../model'; +/** + * WithdrawApi - axios parameter creator + * @export + */ +export declare const WithdrawApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal: (withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) => Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal: (withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * WithdrawApi - functional programming interface + * @export + */ +export declare const WithdrawApiFp: (configuration?: Configuration) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * WithdrawApi - factory interface + * @export + */ +export declare const WithdrawApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * WithdrawApi - interface + * @export + * @interface WithdrawApi + */ +export interface WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * WithdrawApi - object-oriented interface + * @export + * @class WithdrawApi + * @extends {BaseAPI} + */ +export declare class WithdrawApi extends BaseAPI implements WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): Promise>; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=withdraw-api.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/api/withdraw-api.d.ts.map b/dist/esm/wallet/api/withdraw-api.d.ts.map new file mode 100644 index 0000000..ed2994e --- /dev/null +++ b/dist/esm/wallet/api/withdraw-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-api.d.ts","sourceRoot":"","sources":["../../../../src/wallet/api/withdraw-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAItH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mBAA6B,aAAa;IAE3E;;;;;OAKG;wCACsC,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IA4B1F;;;;;;OAMG;8BAC6B,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IA+BlG;;;;;;OAMG;6CAC4C,mBAAmB,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAiC9H;;;;;;OAMG;6CAC4C,mBAAmB,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAkCrI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAA4B,aAAa;IAG3D;;;;;OAKG;sCACqC,qBAAqB,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EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;IAEhG;;;;;;;OAOG;IACH,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAEnI;;;;;;;OAOG;IACH,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEpI;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;OAMG;IACI,uBAAuB,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAI9D;;;;;;;OAOG;IACI,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItE;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIlG;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGrG"} \ No newline at end of file diff --git a/dist/esm/wallet/api/withdraw-api.js b/dist/esm/wallet/api/withdraw-api.js new file mode 100644 index 0000000..8ee2a18 --- /dev/null +++ b/dist/esm/wallet/api/withdraw-api.js @@ -0,0 +1,329 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, operationServerMap } from '../base'; +/** + * WithdrawApi - axios parameter creator + * @export + */ +export const WithdrawApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/withdraws`; + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + assertParamExists('getWithdrawalStatus', 'id', id); + const localVarPath = `/withdraws/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal: (withdrawRequestBody_1, ...args_1) => __awaiter(this, [withdrawRequestBody_1, ...args_1], void 0, function* (withdrawRequestBody, options = {}) { + // verify required parameter 'withdrawRequestBody' is not null or undefined + assertParamExists('previewWithdrawal', 'withdrawRequestBody', withdrawRequestBody); + const localVarPath = `/withdraws/preview`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequestBody, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal: (withdrawRequestBody_1, ...args_1) => __awaiter(this, [withdrawRequestBody_1, ...args_1], void 0, function* (withdrawRequestBody, options = {}) { + // verify required parameter 'withdrawRequestBody' is not null or undefined + assertParamExists('requestWithdrawal', 'withdrawRequestBody', withdrawRequestBody); + const localVarPath = `/withdraws/request`; + // 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield setBearerAuthToObject(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequestBody, localVarRequestOptions, configuration); + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +/** + * WithdrawApi - functional programming interface + * @export + */ +export const WithdrawApiFp = function (configuration) { + const localVarAxiosParamCreator = WithdrawApiAxiosParamCreator(configuration); + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserWithdrawRequests(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WithdrawApi.getUserWithdrawRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getWithdrawalStatus(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WithdrawApi.getWithdrawalStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.previewWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WithdrawApi.previewWithdrawal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.requestWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WithdrawApi.requestWithdrawal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +/** + * WithdrawApi - factory interface + * @export + */ +export const WithdrawApiFactory = function (configuration, basePath, axios) { + const localVarFp = WithdrawApiFp(configuration); + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options) { + return localVarFp.getUserWithdrawRequests(options).then((request) => request(axios, basePath)); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id, options) { + return localVarFp.getWithdrawalStatus(id, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody, options) { + return localVarFp.previewWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody, options) { + return localVarFp.requestWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * WithdrawApi - object-oriented interface + * @export + * @class WithdrawApi + * @extends {BaseAPI} + */ +export class WithdrawApi extends BaseAPI { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getUserWithdrawRequests(options) { + return WithdrawApiFp(this.configuration).getUserWithdrawRequests(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getWithdrawalStatus(id, options) { + return WithdrawApiFp(this.configuration).getWithdrawalStatus(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + previewWithdrawal(withdrawRequestBody, options) { + return WithdrawApiFp(this.configuration).previewWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + requestWithdrawal(withdrawRequestBody, options) { + return WithdrawApiFp(this.configuration).requestWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } +} +//# sourceMappingURL=withdraw-api.js.map \ No newline at end of file diff --git a/dist/esm/wallet/api/withdraw-api.js.map b/dist/esm/wallet/api/withdraw-api.js.map new file mode 100644 index 0000000..127ac6d --- /dev/null +++ b/dist/esm/wallet/api/withdraw-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-api.js","sourceRoot":"","sources":["../../../../src/wallet/api/withdraw-api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;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,CAAC;IACpI,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CAAC,EAAU,EAAE,OAA+B;QAClE,OAAO,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpI,CAAC;IAED;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAwC,EAAE,OAA+B;QAC9F,OAAO,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;IAED;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAwC,EAAE,OAA+B;QAC9F,OAAO,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/base.d.ts b/dist/esm/wallet/base.d.ts new file mode 100644 index 0000000..536620b --- /dev/null +++ b/dist/esm/wallet/base.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from './configuration'; +import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; +export declare const BASE_PATH: string; +/** + * + * @export + */ +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} +/** + * + * @export + * @class BaseAPI + */ +export declare class BaseAPI { + protected basePath: string; + protected axios: AxiosInstance; + protected configuration: Configuration | undefined; + constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); +} +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export declare class RequiredError extends Error { + field: string; + constructor(field: string, msg?: string); +} +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} +/** + * + * @export + */ +export declare const operationServerMap: ServerMap; +export {}; +//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/base.d.ts.map b/dist/esm/wallet/base.d.ts.map new file mode 100644 index 0000000..b12408d --- /dev/null +++ b/dist/esm/wallet/base.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/wallet/base.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAgB,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGhF,eAAO,MAAM,SAAS,QAA+C,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAG2B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAAc,SAAS,CAAC,KAAK,EAAE,aAAa;IAFjH,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;gBAEvC,aAAa,CAAC,EAAE,aAAa,EAAY,QAAQ,GAAE,MAAkB,EAAY,KAAK,GAAE,aAA2B;CAMlI;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACjB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAIjD;AAED,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;CACP;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAChC,CAAA"} \ No newline at end of file diff --git a/dist/esm/wallet/base.js b/dist/esm/wallet/base.js new file mode 100644 index 0000000..b3a8697 --- /dev/null +++ b/dist/esm/wallet/base.js @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import globalAxios from 'axios'; +export const BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + constructor(configuration, basePath = BASE_PATH, axios = globalAxios) { + var _a; + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath; + } + } +} +; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +/** + * + * @export + */ +export const operationServerMap = {}; +//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/esm/wallet/base.js.map b/dist/esm/wallet/base.js.map new file mode 100644 index 0000000..d751f6f --- /dev/null +++ b/dist/esm/wallet/base.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/wallet/base.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAOH,OAAO,WAAW,MAAM,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAM,OAAO,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,SAAS,EAAY,QAAuB,WAAW;;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,MAAA,aAAa,CAAC,QAAQ,mCAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AASD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAc,EAC5C,CAAA"} \ No newline at end of file diff --git a/dist/esm/wallet/common.d.ts b/dist/esm/wallet/common.d.ts new file mode 100644 index 0000000..b06941b --- /dev/null +++ b/dist/esm/wallet/common.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { URL } from 'url'; +/** + * + * @export + */ +export declare const DUMMY_BASE_URL = "https://example.com"; +/** + * + * @throws {RequiredError} + * @export + */ +export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; +/** + * + * @export + */ +export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; +/** + * + * @export + */ +export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setSearchParams: (url: URL, ...objects: any[]) => void; +/** + * + * @export + */ +export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; +/** + * + * @export + */ +export declare const toPathString: (url: URL) => string; +/** + * + * @export + */ +export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/common.d.ts.map b/dist/esm/wallet/common.d.ts.map new file mode 100644 index 0000000..b851d27 --- /dev/null +++ b/dist/esm/wallet/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/wallet/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,kBAAkB,aAAa,kBAOhH,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,kBAAkB,aAAa,SAIvF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,kBAAkB,aAAa,kBAO9F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,kBAAkB,aAAa,kBAOzH,CAAA;AAwBD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAInE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,kBAAkB,aAAa,QAQ5G,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,kBAAkB,aAAa,MACvI,CAAC,YAAY,CAAC,kCAA4B,aAAa,aAA0B,MAAM,eAIlG,CAAA"} \ No newline at end of file diff --git a/dist/esm/wallet/common.js b/dist/esm/wallet/common.js new file mode 100644 index 0000000..cdaf117 --- /dev/null +++ b/dist/esm/wallet/common.js @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { __awaiter } from "tslib"; +import { RequiredError } from "./base"; +import { URLSearchParams } from 'url'; +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com'; +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName, paramName, paramValue) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +}; +/** + * + * @export + */ +export const setApiKeyToObject = function (object, keyParamName, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? yield configuration.apiKey(keyParamName) + : yield configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } + }); +}; +/** + * + * @export + */ +export const setBasicAuthToObject = function (object, configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +}; +/** + * + * @export + */ +export const setBearerAuthToObject = function (object, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken() + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } + }); +}; +/** + * + * @export + */ +export const setOAuthToObject = function (object, name, scopes, configuration) { + return __awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken(name, scopes) + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } + }); +}; +function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { + if (parameter == null) + return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} +/** + * + * @export + */ +export const setSearchParams = function (url, ...objects) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value, requestOptions, configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +}; +/** + * + * @export + */ +export const toPathString = function (url) { + return url.pathname + url.search + url.hash; +}; +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { + return (axios = globalAxios, basePath = BASE_PATH) => { + var _a; + const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url }); + return axios.request(axiosRequestArgs); + }; +}; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/esm/wallet/common.js.map b/dist/esm/wallet/common.js.map new file mode 100644 index 0000000..30f8ffc --- /dev/null +++ b/dist/esm/wallet/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/wallet/common.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAMH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAO,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CA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I,CAAA;AAC/C,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,SAAsB,EAAE,WAA0B,EAAE,SAAiB,EAAE,aAA6B;IAC/I,OAAO,CAAoC,QAAuB,WAAW,EAAE,WAAmB,SAAS,EAAE,EAAE;;QAC3G,MAAM,gBAAgB,mCAAO,SAAS,CAAC,OAAO,KAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,mCAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,GAAC,CAAC;QAC1I,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/esm/wallet/configuration.d.ts b/dist/esm/wallet/configuration.d.ts new file mode 100644 index 0000000..27c8cae --- /dev/null +++ b/dist/esm/wallet/configuration.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} +export declare class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + constructor(param?: ConfigurationParameters); + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime: string): boolean; +} +//# sourceMappingURL=configuration.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/configuration.d.ts.map b/dist/esm/wallet/configuration.d.ts.map new file mode 100644 index 0000000..0e7abce --- /dev/null +++ b/dist/esm/wallet/configuration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/wallet/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,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U,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"} \ No newline at end of file diff --git a/dist/esm/wallet/configuration.js b/dist/esm/wallet/configuration.js new file mode 100644 index 0000000..117fc55 --- /dev/null +++ b/dist/esm/wallet/configuration.js @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export class Configuration { + constructor(param = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} +//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/esm/wallet/configuration.js.map b/dist/esm/wallet/configuration.js.map new file mode 100644 index 0000000..4d5bfe2 --- /dev/null +++ b/dist/esm/wallet/configuration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/wallet/configuration.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAcH,MAAM,OAAO,aAAa;IA0DtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/esm/wallet/index.d.ts b/dist/esm/wallet/index.d.ts new file mode 100644 index 0000000..6ad2f4b --- /dev/null +++ b/dist/esm/wallet/index.d.ts @@ -0,0 +1,15 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/index.d.ts.map b/dist/esm/wallet/index.d.ts.map new file mode 100644 index 0000000..1a80f57 --- /dev/null +++ b/dist/esm/wallet/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/index.js b/dist/esm/wallet/index.js new file mode 100644 index 0000000..58d83e8 --- /dev/null +++ b/dist/esm/wallet/index.js @@ -0,0 +1,17 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/wallet/index.js.map b/dist/esm/wallet/index.js.map new file mode 100644 index 0000000..40c3e50 --- /dev/null +++ b/dist/esm/wallet/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wallet/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/admin-redemption-update-request.d.ts b/dist/esm/wallet/model/admin-redemption-update-request.d.ts new file mode 100644 index 0000000..18defbe --- /dev/null +++ b/dist/esm/wallet/model/admin-redemption-update-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AdminRedemptionUpdateRequest + */ +export interface AdminRedemptionUpdateRequest { + /** + * The status of the redemption request + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'status': AdminRedemptionUpdateRequestStatusEnum; + /** + * The Paya tracking code + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'payaTrackingCode'?: string; +} +export declare const AdminRedemptionUpdateRequestStatusEnum: { + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly COMPLETED: "Completed"; +}; +export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; +//# sourceMappingURL=admin-redemption-update-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/admin-redemption-update-request.d.ts.map b/dist/esm/wallet/model/admin-redemption-update-request.d.ts.map new file mode 100644 index 0000000..9907748 --- /dev/null +++ b/dist/esm/wallet/model/admin-redemption-update-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"admin-redemption-update-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/admin-redemption-update-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,QAAQ,EAAE,sCAAsC,CAAC;IACjD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC;AAEX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/admin-redemption-update-request.js b/dist/esm/wallet/model/admin-redemption-update-request.js new file mode 100644 index 0000000..665d4ae --- /dev/null +++ b/dist/esm/wallet/model/admin-redemption-update-request.js @@ -0,0 +1,19 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const AdminRedemptionUpdateRequestStatusEnum = { + APPROVED: 'Approved', + REJECTED: 'Rejected', + COMPLETED: 'Completed' +}; +//# sourceMappingURL=admin-redemption-update-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/admin-redemption-update-request.js.map b/dist/esm/wallet/model/admin-redemption-update-request.js.map new file mode 100644 index 0000000..d429db9 --- /dev/null +++ b/dist/esm/wallet/model/admin-redemption-update-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"admin-redemption-update-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/admin-redemption-update-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAwBH,MAAM,CAAC,MAAM,sCAAsC,GAAG;IAClD,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/auth-telegram-request.d.ts b/dist/esm/wallet/model/auth-telegram-request.d.ts new file mode 100644 index 0000000..f49079c --- /dev/null +++ b/dist/esm/wallet/model/auth-telegram-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AuthTelegramRequest + */ +export interface AuthTelegramRequest { + /** + * Telegram init data + * @type {string} + * @memberof AuthTelegramRequest + */ + 'initdata': string; +} +//# sourceMappingURL=auth-telegram-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/auth-telegram-request.d.ts.map b/dist/esm/wallet/model/auth-telegram-request.d.ts.map new file mode 100644 index 0000000..f284850 --- /dev/null +++ b/dist/esm/wallet/model/auth-telegram-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-telegram-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/auth-telegram-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/auth-telegram-request.js b/dist/esm/wallet/model/auth-telegram-request.js new file mode 100644 index 0000000..b5e6461 --- /dev/null +++ b/dist/esm/wallet/model/auth-telegram-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=auth-telegram-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/auth-telegram-request.js.map b/dist/esm/wallet/model/auth-telegram-request.js.map new file mode 100644 index 0000000..95080d7 --- /dev/null +++ b/dist/esm/wallet/model/auth-telegram-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-telegram-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/auth-telegram-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/balance.d.ts b/dist/esm/wallet/model/balance.d.ts new file mode 100644 index 0000000..23795c2 --- /dev/null +++ b/dist/esm/wallet/model/balance.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +import type { Currency } from './currency'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Currency} + * @memberof Balance + */ + 'locked': Currency; + /** + * + * @type {Coin} + * @memberof Balance + */ + 'coin': Coin; + /** + * + * @type {Currency} + * @memberof Balance + */ + 'balance': Currency; +} +//# sourceMappingURL=balance.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/balance.d.ts.map b/dist/esm/wallet/model/balance.d.ts.map new file mode 100644 index 0000000..4b90496 --- /dev/null +++ b/dist/esm/wallet/model/balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/balance.js b/dist/esm/wallet/model/balance.js new file mode 100644 index 0000000..b564b88 --- /dev/null +++ b/dist/esm/wallet/model/balance.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=balance.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/balance.js.map b/dist/esm/wallet/model/balance.js.map new file mode 100644 index 0000000..a584b81 --- /dev/null +++ b/dist/esm/wallet/model/balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../../src/wallet/model/balance.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/bank-info.d.ts b/dist/esm/wallet/model/bank-info.d.ts new file mode 100644 index 0000000..886a166 --- /dev/null +++ b/dist/esm/wallet/model/bank-info.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BankInfo + */ +export interface BankInfo { + /** + * Bank name + * @type {string} + * @memberof BankInfo + */ + 'bankName': string; + /** + * Card number + * @type {string} + * @memberof BankInfo + */ + 'cardNumber': string; + /** + * IBAN + * @type {string} + * @memberof BankInfo + */ + 'iban': string; +} +//# sourceMappingURL=bank-info.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/bank-info.d.ts.map b/dist/esm/wallet/model/bank-info.d.ts.map new file mode 100644 index 0000000..9240476 --- /dev/null +++ b/dist/esm/wallet/model/bank-info.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bank-info.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/bank-info.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/bank-info.js b/dist/esm/wallet/model/bank-info.js new file mode 100644 index 0000000..5ce6761 --- /dev/null +++ b/dist/esm/wallet/model/bank-info.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=bank-info.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/bank-info.js.map b/dist/esm/wallet/model/bank-info.js.map new file mode 100644 index 0000000..2d266ff --- /dev/null +++ b/dist/esm/wallet/model/bank-info.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bank-info.js","sourceRoot":"","sources":["../../../../src/wallet/model/bank-info.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/bullet-content.d.ts b/dist/esm/wallet/model/bullet-content.d.ts new file mode 100644 index 0000000..2b45636 --- /dev/null +++ b/dist/esm/wallet/model/bullet-content.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BulletContent + */ +export interface BulletContent { + /** + * + * @type {string} + * @memberof BulletContent + */ + 'title': string; + /** + * + * @type {string} + * @memberof BulletContent + */ + 'text': string; + /** + * + * @type {Array} + * @memberof BulletContent + */ + 'bullets': Array; +} +//# sourceMappingURL=bullet-content.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/bullet-content.d.ts.map b/dist/esm/wallet/model/bullet-content.d.ts.map new file mode 100644 index 0000000..aa46979 --- /dev/null +++ b/dist/esm/wallet/model/bullet-content.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bullet-content.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/bullet-content.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/bullet-content.js b/dist/esm/wallet/model/bullet-content.js new file mode 100644 index 0000000..9bf29d3 --- /dev/null +++ b/dist/esm/wallet/model/bullet-content.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=bullet-content.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/bullet-content.js.map b/dist/esm/wallet/model/bullet-content.js.map new file mode 100644 index 0000000..0e1f3ba --- /dev/null +++ b/dist/esm/wallet/model/bullet-content.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bullet-content.js","sourceRoot":"","sources":["../../../../src/wallet/model/bullet-content.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-config.d.ts b/dist/esm/wallet/model/coin-config.d.ts new file mode 100644 index 0000000..d67f80f --- /dev/null +++ b/dist/esm/wallet/model/coin-config.d.ts @@ -0,0 +1,47 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CoinConfig + */ +export interface CoinConfig { + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'isTradeable': boolean; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'withdrawFees': { + [key: string]: string | undefined; + }; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'minWithdrawal': { + [key: string]: string | undefined; + }; + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'needsMemo': boolean; +} +//# sourceMappingURL=coin-config.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-config.d.ts.map b/dist/esm/wallet/model/coin-config.d.ts.map new file mode 100644 index 0000000..4840874 --- /dev/null +++ b/dist/esm/wallet/model/coin-config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-config.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/coin-config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-config.js b/dist/esm/wallet/model/coin-config.js new file mode 100644 index 0000000..1e6da4d --- /dev/null +++ b/dist/esm/wallet/model/coin-config.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=coin-config.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-config.js.map b/dist/esm/wallet/model/coin-config.js.map new file mode 100644 index 0000000..7a58000 --- /dev/null +++ b/dist/esm/wallet/model/coin-config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-config.js","sourceRoot":"","sources":["../../../../src/wallet/model/coin-config.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-response.d.ts b/dist/esm/wallet/model/coin-response.d.ts new file mode 100644 index 0000000..94b8b2a --- /dev/null +++ b/dist/esm/wallet/model/coin-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +/** + * + * @export + * @interface CoinResponse + */ +export interface CoinResponse { + /** + * + * @type {Array} + * @memberof CoinResponse + */ + 'data': Array; +} +//# sourceMappingURL=coin-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-response.d.ts.map b/dist/esm/wallet/model/coin-response.d.ts.map new file mode 100644 index 0000000..33651fd --- /dev/null +++ b/dist/esm/wallet/model/coin-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/coin-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-response.js b/dist/esm/wallet/model/coin-response.js new file mode 100644 index 0000000..5a34e49 --- /dev/null +++ b/dist/esm/wallet/model/coin-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=coin-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin-response.js.map b/dist/esm/wallet/model/coin-response.js.map new file mode 100644 index 0000000..00fe792 --- /dev/null +++ b/dist/esm/wallet/model/coin-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/coin-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin.d.ts b/dist/esm/wallet/model/coin.d.ts new file mode 100644 index 0000000..93c860b --- /dev/null +++ b/dist/esm/wallet/model/coin.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './bullet-content'; +import type { CoinConfig } from './coin-config'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Coin + */ +export interface Coin { + /** + * + * @type {CoinConfig} + * @memberof Coin + */ + 'config': CoinConfig; + /** + * + * @type {Symbol} + * @memberof Coin + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Coin + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Coin + */ + 'logoUri': string; + /** + * + * @type {Array} + * @memberof Coin + */ + 'depositableNetworks': Array; + /** + * + * @type {Array} + * @memberof Coin + */ + 'withdrawableNetworks': Array; + /** + * + * @type {BulletContent} + * @memberof Coin + */ + 'content': BulletContent; +} +//# sourceMappingURL=coin.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin.d.ts.map b/dist/esm/wallet/model/coin.d.ts.map new file mode 100644 index 0000000..b080021 --- /dev/null +++ b/dist/esm/wallet/model/coin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/coin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,qBAAqB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACtC;;;;OAIG;IACH,sBAAsB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvC;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/coin.js b/dist/esm/wallet/model/coin.js new file mode 100644 index 0000000..e91ed53 --- /dev/null +++ b/dist/esm/wallet/model/coin.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=coin.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/coin.js.map b/dist/esm/wallet/model/coin.js.map new file mode 100644 index 0000000..8c9a6fb --- /dev/null +++ b/dist/esm/wallet/model/coin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin.js","sourceRoot":"","sources":["../../../../src/wallet/model/coin.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/create-child-user-request.d.ts b/dist/esm/wallet/model/create-child-user-request.d.ts new file mode 100644 index 0000000..9d83512 --- /dev/null +++ b/dist/esm/wallet/model/create-child-user-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateChildUserRequest + */ +export interface CreateChildUserRequest { + /** + * the username of the child user + * @type {string} + * @memberof CreateChildUserRequest + */ + 'username': string; +} +//# sourceMappingURL=create-child-user-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/create-child-user-request.d.ts.map b/dist/esm/wallet/model/create-child-user-request.d.ts.map new file mode 100644 index 0000000..290f6c0 --- /dev/null +++ b/dist/esm/wallet/model/create-child-user-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"create-child-user-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/create-child-user-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/create-child-user-request.js b/dist/esm/wallet/model/create-child-user-request.js new file mode 100644 index 0000000..30efe89 --- /dev/null +++ b/dist/esm/wallet/model/create-child-user-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=create-child-user-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/create-child-user-request.js.map b/dist/esm/wallet/model/create-child-user-request.js.map new file mode 100644 index 0000000..260cd4f --- /dev/null +++ b/dist/esm/wallet/model/create-child-user-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"create-child-user-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/create-child-user-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/currency.d.ts b/dist/esm/wallet/model/currency.d.ts new file mode 100644 index 0000000..6c9a93b --- /dev/null +++ b/dist/esm/wallet/model/currency.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Currency + */ +export interface Currency { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Currency + */ + 'values'?: { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=currency.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/currency.d.ts.map b/dist/esm/wallet/model/currency.d.ts.map new file mode 100644 index 0000000..7c2d0e1 --- /dev/null +++ b/dist/esm/wallet/model/currency.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/currency.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACrD"} \ No newline at end of file diff --git a/dist/esm/wallet/model/currency.js b/dist/esm/wallet/model/currency.js new file mode 100644 index 0000000..d704bc0 --- /dev/null +++ b/dist/esm/wallet/model/currency.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=currency.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/currency.js.map b/dist/esm/wallet/model/currency.js.map new file mode 100644 index 0000000..5ee9a9c --- /dev/null +++ b/dist/esm/wallet/model/currency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../../src/wallet/model/currency.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/deposit-response.d.ts b/dist/esm/wallet/model/deposit-response.d.ts new file mode 100644 index 0000000..f9eb43b --- /dev/null +++ b/dist/esm/wallet/model/deposit-response.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Network } from './network'; +/** + * + * @export + * @interface DepositResponse + */ +export interface DepositResponse { + /** + * Deposit address + * @type {string} + * @memberof DepositResponse + */ + 'address': string; + /** + * + * @type {Network} + * @memberof DepositResponse + */ + 'network': Network; + /** + * Coin symbol + * @type {string} + * @memberof DepositResponse + */ + 'symbol': string; +} +//# sourceMappingURL=deposit-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/deposit-response.d.ts.map b/dist/esm/wallet/model/deposit-response.d.ts.map new file mode 100644 index 0000000..c6c7c98 --- /dev/null +++ b/dist/esm/wallet/model/deposit-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/deposit-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/deposit-response.js b/dist/esm/wallet/model/deposit-response.js new file mode 100644 index 0000000..f4e31db --- /dev/null +++ b/dist/esm/wallet/model/deposit-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=deposit-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/deposit-response.js.map b/dist/esm/wallet/model/deposit-response.js.map new file mode 100644 index 0000000..2682bb1 --- /dev/null +++ b/dist/esm/wallet/model/deposit-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/deposit-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts b/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts new file mode 100644 index 0000000..d12b417 --- /dev/null +++ b/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DetailedLoanToValueOptions + */ +export interface DetailedLoanToValueOptions { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DetailedLoanToValueOptions + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * The loan to value of the vault. + * @type {string} + * @memberof DetailedLoanToValueOptions + */ + 'value': string; +} +//# sourceMappingURL=detailed-loan-to-value-options.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts.map b/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts.map new file mode 100644 index 0000000..f70e160 --- /dev/null +++ b/dist/esm/wallet/model/detailed-loan-to-value-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"detailed-loan-to-value-options.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/detailed-loan-to-value-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/detailed-loan-to-value-options.js b/dist/esm/wallet/model/detailed-loan-to-value-options.js new file mode 100644 index 0000000..a99548c --- /dev/null +++ b/dist/esm/wallet/model/detailed-loan-to-value-options.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=detailed-loan-to-value-options.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/detailed-loan-to-value-options.js.map b/dist/esm/wallet/model/detailed-loan-to-value-options.js.map new file mode 100644 index 0000000..6869ee6 --- /dev/null +++ b/dist/esm/wallet/model/detailed-loan-to-value-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"detailed-loan-to-value-options.js","sourceRoot":"","sources":["../../../../src/wallet/model/detailed-loan-to-value-options.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/email-otp-submit-request.d.ts b/dist/esm/wallet/model/email-otp-submit-request.d.ts new file mode 100644 index 0000000..7e5d1b5 --- /dev/null +++ b/dist/esm/wallet/model/email-otp-submit-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface EmailOtpSubmitRequest + */ +export interface EmailOtpSubmitRequest { + /** + * OTP code + * @type {number} + * @memberof EmailOtpSubmitRequest + */ + 'code': number; +} +//# sourceMappingURL=email-otp-submit-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/email-otp-submit-request.d.ts.map b/dist/esm/wallet/model/email-otp-submit-request.d.ts.map new file mode 100644 index 0000000..15e6d70 --- /dev/null +++ b/dist/esm/wallet/model/email-otp-submit-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"email-otp-submit-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/email-otp-submit-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/email-otp-submit-request.js b/dist/esm/wallet/model/email-otp-submit-request.js new file mode 100644 index 0000000..4e3a906 --- /dev/null +++ b/dist/esm/wallet/model/email-otp-submit-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=email-otp-submit-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/email-otp-submit-request.js.map b/dist/esm/wallet/model/email-otp-submit-request.js.map new file mode 100644 index 0000000..1159f9b --- /dev/null +++ b/dist/esm/wallet/model/email-otp-submit-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"email-otp-submit-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/email-otp-submit-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/error-detail.d.ts b/dist/esm/wallet/model/error-detail.d.ts new file mode 100644 index 0000000..897b160 --- /dev/null +++ b/dist/esm/wallet/model/error-detail.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorDetail + */ +export interface ErrorDetail { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorDetail + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorDetail + */ + 'solutions': Array; +} +//# sourceMappingURL=error-detail.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/error-detail.d.ts.map b/dist/esm/wallet/model/error-detail.d.ts.map new file mode 100644 index 0000000..1b13a51 --- /dev/null +++ b/dist/esm/wallet/model/error-detail.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"error-detail.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/error-detail.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/error-detail.js b/dist/esm/wallet/model/error-detail.js new file mode 100644 index 0000000..92ecfb5 --- /dev/null +++ b/dist/esm/wallet/model/error-detail.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=error-detail.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/error-detail.js.map b/dist/esm/wallet/model/error-detail.js.map new file mode 100644 index 0000000..e7a96bd --- /dev/null +++ b/dist/esm/wallet/model/error-detail.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error-detail.js","sourceRoot":"","sources":["../../../../src/wallet/model/error-detail.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/external-transaction.d.ts b/dist/esm/wallet/model/external-transaction.d.ts new file mode 100644 index 0000000..e8577b5 --- /dev/null +++ b/dist/esm/wallet/model/external-transaction.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +import type { TransactionStatus } from './transaction-status'; +import type { TransactionType } from './transaction-type'; +/** + * + * @export + * @interface ExternalTransaction + */ +export interface ExternalTransaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof ExternalTransaction + */ + 'Id': number; + /** + * + * @type {Timestamp} + * @memberof ExternalTransaction + */ + 'Time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof ExternalTransaction + */ + 'Type': TransactionType; + /** + * The hash of the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Hash': string; + /** + * The address from which the transaction originated + * @type {string} + * @memberof ExternalTransaction + */ + 'From': string; + /** + * The address to which the transaction is sent + * @type {string} + * @memberof ExternalTransaction + */ + 'To': string; + /** + * A comment associated with the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Comment': string | null; + /** + * + * @type {Currency} + * @memberof ExternalTransaction + */ + 'Amount': Currency; + /** + * + * @type {Symbol} + * @memberof ExternalTransaction + */ + 'Symbol': Symbol; + /** + * + * @type {Network} + * @memberof ExternalTransaction + */ + 'Network': Network; + /** + * + * @type {TransactionStatus} + * @memberof ExternalTransaction + */ + 'Status': TransactionStatus; +} +//# sourceMappingURL=external-transaction.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/external-transaction.d.ts.map b/dist/esm/wallet/model/external-transaction.d.ts.map new file mode 100644 index 0000000..a067d70 --- /dev/null +++ b/dist/esm/wallet/model/external-transaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"external-transaction.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/external-transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/external-transaction.js b/dist/esm/wallet/model/external-transaction.js new file mode 100644 index 0000000..7ec11e6 --- /dev/null +++ b/dist/esm/wallet/model/external-transaction.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=external-transaction.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/external-transaction.js.map b/dist/esm/wallet/model/external-transaction.js.map new file mode 100644 index 0000000..e58ebfe --- /dev/null +++ b/dist/esm/wallet/model/external-transaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"external-transaction.js","sourceRoot":"","sources":["../../../../src/wallet/model/external-transaction.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points-response.d.ts b/dist/esm/wallet/model/friend-points-response.d.ts new file mode 100644 index 0000000..cd73876 --- /dev/null +++ b/dist/esm/wallet/model/friend-points-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FriendPoints } from './friend-points'; +/** + * + * @export + * @interface FriendPointsResponse + */ +export interface FriendPointsResponse { + /** + * + * @type {Array} + * @memberof FriendPointsResponse + */ + 'data': Array; +} +//# sourceMappingURL=friend-points-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points-response.d.ts.map b/dist/esm/wallet/model/friend-points-response.d.ts.map new file mode 100644 index 0000000..eb9cca8 --- /dev/null +++ b/dist/esm/wallet/model/friend-points-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/friend-points-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points-response.js b/dist/esm/wallet/model/friend-points-response.js new file mode 100644 index 0000000..30d8fdd --- /dev/null +++ b/dist/esm/wallet/model/friend-points-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=friend-points-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points-response.js.map b/dist/esm/wallet/model/friend-points-response.js.map new file mode 100644 index 0000000..cf0aaaa --- /dev/null +++ b/dist/esm/wallet/model/friend-points-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/friend-points-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points.d.ts b/dist/esm/wallet/model/friend-points.d.ts new file mode 100644 index 0000000..d35eaea --- /dev/null +++ b/dist/esm/wallet/model/friend-points.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FriendPoints + */ +export interface FriendPoints { + /** + * the first name of the friend + * @type {string} + * @memberof FriendPoints + */ + 'firstName': string; + /** + * the points of the friend + * @type {number} + * @memberof FriendPoints + */ + 'points': number; +} +//# sourceMappingURL=friend-points.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points.d.ts.map b/dist/esm/wallet/model/friend-points.d.ts.map new file mode 100644 index 0000000..4297405 --- /dev/null +++ b/dist/esm/wallet/model/friend-points.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/friend-points.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points.js b/dist/esm/wallet/model/friend-points.js new file mode 100644 index 0000000..a3c2e34 --- /dev/null +++ b/dist/esm/wallet/model/friend-points.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=friend-points.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/friend-points.js.map b/dist/esm/wallet/model/friend-points.js.map new file mode 100644 index 0000000..c147fe4 --- /dev/null +++ b/dist/esm/wallet/model/friend-points.js.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points.js","sourceRoot":"","sources":["../../../../src/wallet/model/friend-points.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/health-status.d.ts b/dist/esm/wallet/model/health-status.d.ts new file mode 100644 index 0000000..9dd60d2 --- /dev/null +++ b/dist/esm/wallet/model/health-status.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HealthStatus + */ +export interface HealthStatus { + /** + * + * @type {string} + * @memberof HealthStatus + */ + 'status'?: string; +} +//# sourceMappingURL=health-status.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/health-status.d.ts.map b/dist/esm/wallet/model/health-status.d.ts.map new file mode 100644 index 0000000..b8e0872 --- /dev/null +++ b/dist/esm/wallet/model/health-status.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"health-status.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/health-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/health-status.js b/dist/esm/wallet/model/health-status.js new file mode 100644 index 0000000..82d5c0b --- /dev/null +++ b/dist/esm/wallet/model/health-status.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=health-status.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/health-status.js.map b/dist/esm/wallet/model/health-status.js.map new file mode 100644 index 0000000..0723312 --- /dev/null +++ b/dist/esm/wallet/model/health-status.js.map @@ -0,0 +1 @@ +{"version":3,"file":"health-status.js","sourceRoot":"","sources":["../../../../src/wallet/model/health-status.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/index.d.ts b/dist/esm/wallet/model/index.d.ts new file mode 100644 index 0000000..b11c02c --- /dev/null +++ b/dist/esm/wallet/model/index.d.ts @@ -0,0 +1,65 @@ +export * from './admin-redemption-update-request'; +export * from './auth-telegram-request'; +export * from './balance'; +export * from './bank-info'; +export * from './bullet-content'; +export * from './coin'; +export * from './coin-config'; +export * from './coin-response'; +export * from './create-child-user-request'; +export * from './currency'; +export * from './deposit-response'; +export * from './detailed-loan-to-value-options'; +export * from './email-otp-submit-request'; +export * from './error-detail'; +export * from './external-transaction'; +export * from './friend-points'; +export * from './friend-points-response'; +export * from './health-status'; +export * from './jwt-response'; +export * from './kyc-confirm-request'; +export * from './kyc-request'; +export * from './kyc-response'; +export * from './loan-create-request'; +export * from './loan-plan'; +export * from './loan-plan-response'; +export * from './loan-to-value-options'; +export * from './loans-response'; +export * from './loans-response-list'; +export * from './login-request'; +export * from './model-error'; +export * from './network'; +export * from './payment'; +export * from './payment-request'; +export * from './phone-otp-submit-request'; +export * from './profile-response'; +export * from './redemption'; +export * from './redemption-request'; +export * from './redemption-response'; +export * from './referral'; +export * from './referral-response'; +export * from './repay-loan-request'; +export * from './sign-up-request'; +export * from './simple-response'; +export * from './swap-request'; +export * from './swap-response'; +export * from './symbol'; +export * from './task'; +export * from './task-response'; +export * from './telegram-profile'; +export * from './timestamp'; +export * from './transaction'; +export * from './transaction-response'; +export * from './transaction-status'; +export * from './transaction-type'; +export * from './update-email-request'; +export * from './update-phone-request'; +export * from './user'; +export * from './user-error'; +export * from './wallet-balance'; +export * from './withdraw-request'; +export * from './withdraw-request-body'; +export * from './withdraw-request-preview'; +export * from './withdraw-request-response'; +export * from './withdraw-response-body'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/index.d.ts.map b/dist/esm/wallet/model/index.d.ts.map new file mode 100644 index 0000000..1e3ea4b --- /dev/null +++ b/dist/esm/wallet/model/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/index.js b/dist/esm/wallet/model/index.js new file mode 100644 index 0000000..911c6ee --- /dev/null +++ b/dist/esm/wallet/model/index.js @@ -0,0 +1,65 @@ +export * from './admin-redemption-update-request'; +export * from './auth-telegram-request'; +export * from './balance'; +export * from './bank-info'; +export * from './bullet-content'; +export * from './coin'; +export * from './coin-config'; +export * from './coin-response'; +export * from './create-child-user-request'; +export * from './currency'; +export * from './deposit-response'; +export * from './detailed-loan-to-value-options'; +export * from './email-otp-submit-request'; +export * from './error-detail'; +export * from './external-transaction'; +export * from './friend-points'; +export * from './friend-points-response'; +export * from './health-status'; +export * from './jwt-response'; +export * from './kyc-confirm-request'; +export * from './kyc-request'; +export * from './kyc-response'; +export * from './loan-create-request'; +export * from './loan-plan'; +export * from './loan-plan-response'; +export * from './loan-to-value-options'; +export * from './loans-response'; +export * from './loans-response-list'; +export * from './login-request'; +export * from './model-error'; +export * from './network'; +export * from './payment'; +export * from './payment-request'; +export * from './phone-otp-submit-request'; +export * from './profile-response'; +export * from './redemption'; +export * from './redemption-request'; +export * from './redemption-response'; +export * from './referral'; +export * from './referral-response'; +export * from './repay-loan-request'; +export * from './sign-up-request'; +export * from './simple-response'; +export * from './swap-request'; +export * from './swap-response'; +export * from './symbol'; +export * from './task'; +export * from './task-response'; +export * from './telegram-profile'; +export * from './timestamp'; +export * from './transaction'; +export * from './transaction-response'; +export * from './transaction-status'; +export * from './transaction-type'; +export * from './update-email-request'; +export * from './update-phone-request'; +export * from './user'; +export * from './user-error'; +export * from './wallet-balance'; +export * from './withdraw-request'; +export * from './withdraw-request-body'; +export * from './withdraw-request-preview'; +export * from './withdraw-request-response'; +export * from './withdraw-response-body'; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/index.js.map b/dist/esm/wallet/model/index.js.map new file mode 100644 index 0000000..ecc7410 --- /dev/null +++ b/dist/esm/wallet/model/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallet/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/jwt-response.d.ts b/dist/esm/wallet/model/jwt-response.d.ts new file mode 100644 index 0000000..d116e92 --- /dev/null +++ b/dist/esm/wallet/model/jwt-response.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface JwtResponse + */ +export interface JwtResponse { + /** + * JWT token + * @type {string} + * @memberof JwtResponse + */ + 'token': string; +} +//# sourceMappingURL=jwt-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/jwt-response.d.ts.map b/dist/esm/wallet/model/jwt-response.d.ts.map new file mode 100644 index 0000000..c1ee183 --- /dev/null +++ b/dist/esm/wallet/model/jwt-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"jwt-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/jwt-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/jwt-response.js b/dist/esm/wallet/model/jwt-response.js new file mode 100644 index 0000000..2a92c2a --- /dev/null +++ b/dist/esm/wallet/model/jwt-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=jwt-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/jwt-response.js.map b/dist/esm/wallet/model/jwt-response.js.map new file mode 100644 index 0000000..c78233c --- /dev/null +++ b/dist/esm/wallet/model/jwt-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jwt-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/jwt-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-confirm-request.d.ts b/dist/esm/wallet/model/kyc-confirm-request.d.ts new file mode 100644 index 0000000..56d8e1e --- /dev/null +++ b/dist/esm/wallet/model/kyc-confirm-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycConfirmRequest + */ +export interface KycConfirmRequest { + /** + * KYC request ID + * @type {string} + * @memberof KycConfirmRequest + */ + 'id': string; +} +//# sourceMappingURL=kyc-confirm-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-confirm-request.d.ts.map b/dist/esm/wallet/model/kyc-confirm-request.d.ts.map new file mode 100644 index 0000000..f4c6124 --- /dev/null +++ b/dist/esm/wallet/model/kyc-confirm-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-confirm-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-confirm-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-confirm-request.js b/dist/esm/wallet/model/kyc-confirm-request.js new file mode 100644 index 0000000..75f1596 --- /dev/null +++ b/dist/esm/wallet/model/kyc-confirm-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=kyc-confirm-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-confirm-request.js.map b/dist/esm/wallet/model/kyc-confirm-request.js.map new file mode 100644 index 0000000..508be0a --- /dev/null +++ b/dist/esm/wallet/model/kyc-confirm-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-confirm-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-confirm-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-request.d.ts b/dist/esm/wallet/model/kyc-request.d.ts new file mode 100644 index 0000000..4b5de6d --- /dev/null +++ b/dist/esm/wallet/model/kyc-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycRequest + */ +export interface KycRequest { + /** + * National ID + * @type {string} + * @memberof KycRequest + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycRequest + */ + 'dateOfBirth': string; + /** + * Card number + * @type {string} + * @memberof KycRequest + */ + 'cardNumber': string; +} +//# sourceMappingURL=kyc-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-request.d.ts.map b/dist/esm/wallet/model/kyc-request.d.ts.map new file mode 100644 index 0000000..825c7bf --- /dev/null +++ b/dist/esm/wallet/model/kyc-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-request.js b/dist/esm/wallet/model/kyc-request.js new file mode 100644 index 0000000..e85401f --- /dev/null +++ b/dist/esm/wallet/model/kyc-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=kyc-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-request.js.map b/dist/esm/wallet/model/kyc-request.js.map new file mode 100644 index 0000000..008ed27 --- /dev/null +++ b/dist/esm/wallet/model/kyc-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-response.d.ts b/dist/esm/wallet/model/kyc-response.d.ts new file mode 100644 index 0000000..c068855 --- /dev/null +++ b/dist/esm/wallet/model/kyc-response.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +/** + * + * @export + * @interface KycResponse + */ +export interface KycResponse { + /** + * KYC request ID + * @type {string} + * @memberof KycResponse + */ + 'id': string; + /** + * First name + * @type {string} + * @memberof KycResponse + */ + 'firstName': string; + /** + * Last name + * @type {string} + * @memberof KycResponse + */ + 'lastName': string; + /** + * National code + * @type {string} + * @memberof KycResponse + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycResponse + */ + 'dateOfBirth': string; + /** + * + * @type {BankInfo} + * @memberof KycResponse + */ + 'bankInfo': BankInfo; +} +//# sourceMappingURL=kyc-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-response.d.ts.map b/dist/esm/wallet/model/kyc-response.d.ts.map new file mode 100644 index 0000000..299f41f --- /dev/null +++ b/dist/esm/wallet/model/kyc-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-response.js b/dist/esm/wallet/model/kyc-response.js new file mode 100644 index 0000000..811f65c --- /dev/null +++ b/dist/esm/wallet/model/kyc-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=kyc-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/kyc-response.js.map b/dist/esm/wallet/model/kyc-response.js.map new file mode 100644 index 0000000..c0b49c6 --- /dev/null +++ b/dist/esm/wallet/model/kyc-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/kyc-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-create-request.d.ts b/dist/esm/wallet/model/loan-create-request.d.ts new file mode 100644 index 0000000..28b77d8 --- /dev/null +++ b/dist/esm/wallet/model/loan-create-request.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanToValueOptions } from './loan-to-value-options'; +/** + * + * @export + * @interface LoanCreateRequest + */ +export interface LoanCreateRequest { + /** + * Intent to create a vault + * @type {string} + * @memberof LoanCreateRequest + */ + 'intent': LoanCreateRequestIntentEnum; + /** + * The name of the loan plan + * @type {string} + * @memberof LoanCreateRequest + */ + 'planName': string; + /** + * Collateral amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'collateral'?: string; + /** + * Debt amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'debt'?: string; + /** + * Coin symbol + * @type {string} + * @memberof LoanCreateRequest + */ + 'symbol': string; + /** + * + * @type {LoanToValueOptions} + * @memberof LoanCreateRequest + */ + 'loanToValueOption': LoanToValueOptions; +} +export declare const LoanCreateRequestIntentEnum: { + readonly CREATE: "Create"; + readonly PREVIEW: "Preview"; +}; +export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; +//# sourceMappingURL=loan-create-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-create-request.d.ts.map b/dist/esm/wallet/model/loan-create-request.d.ts.map new file mode 100644 index 0000000..961eac4 --- /dev/null +++ b/dist/esm/wallet/model/loan-create-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-create-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loan-create-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,2BAA2B,CAAC;IACtC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,EAAE,kBAAkB,CAAC;CAC3C;AAED,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-create-request.js b/dist/esm/wallet/model/loan-create-request.js new file mode 100644 index 0000000..7189c84 --- /dev/null +++ b/dist/esm/wallet/model/loan-create-request.js @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const LoanCreateRequestIntentEnum = { + CREATE: 'Create', + PREVIEW: 'Preview' +}; +//# sourceMappingURL=loan-create-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-create-request.js.map b/dist/esm/wallet/model/loan-create-request.js.map new file mode 100644 index 0000000..06e8520 --- /dev/null +++ b/dist/esm/wallet/model/loan-create-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-create-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/loan-create-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAmDH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan-response.d.ts b/dist/esm/wallet/model/loan-plan-response.d.ts new file mode 100644 index 0000000..133f13a --- /dev/null +++ b/dist/esm/wallet/model/loan-plan-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanPlan } from './loan-plan'; +/** + * + * @export + * @interface LoanPlanResponse + */ +export interface LoanPlanResponse { + /** + * + * @type {Array} + * @memberof LoanPlanResponse + */ + 'data': Array; +} +//# sourceMappingURL=loan-plan-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan-response.d.ts.map b/dist/esm/wallet/model/loan-plan-response.d.ts.map new file mode 100644 index 0000000..f0bc945 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loan-plan-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan-response.js b/dist/esm/wallet/model/loan-plan-response.js new file mode 100644 index 0000000..5e69604 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=loan-plan-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan-response.js.map b/dist/esm/wallet/model/loan-plan-response.js.map new file mode 100644 index 0000000..83c62d7 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/loan-plan-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan.d.ts b/dist/esm/wallet/model/loan-plan.d.ts new file mode 100644 index 0000000..b71da34 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan.d.ts @@ -0,0 +1,64 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +import type { Currency } from './currency'; +import type { DetailedLoanToValueOptions } from './detailed-loan-to-value-options'; +/** + * + * @export + * @interface LoanPlan + */ +export interface LoanPlan { + /** + * The name of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'name': string; + /** + * The minimum collateralization ratio of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'minCollateralizationRatio': string; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'acceptableCoins': Array; + /** + * The annual fee of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'fee': string; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'maxDebt': Currency; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'minDebt': Currency; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'loanToValueOptions': Array; +} +//# sourceMappingURL=loan-plan.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan.d.ts.map b/dist/esm/wallet/model/loan-plan.d.ts.map new file mode 100644 index 0000000..6669c12 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loan-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC3D"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan.js b/dist/esm/wallet/model/loan-plan.js new file mode 100644 index 0000000..2a3c27e --- /dev/null +++ b/dist/esm/wallet/model/loan-plan.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=loan-plan.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-plan.js.map b/dist/esm/wallet/model/loan-plan.js.map new file mode 100644 index 0000000..665d6e3 --- /dev/null +++ b/dist/esm/wallet/model/loan-plan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan.js","sourceRoot":"","sources":["../../../../src/wallet/model/loan-plan.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-to-value-options.d.ts b/dist/esm/wallet/model/loan-to-value-options.d.ts new file mode 100644 index 0000000..9f608ff --- /dev/null +++ b/dist/esm/wallet/model/loan-to-value-options.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The loan to value percentage options + * @export + * @enum {string} + */ +export declare const LoanToValueOptions: { + readonly RISKY: "Risky"; + readonly NORMAL: "Normal"; + readonly SAFE: "Safe"; +}; +export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; +//# sourceMappingURL=loan-to-value-options.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-to-value-options.d.ts.map b/dist/esm/wallet/model/loan-to-value-options.d.ts.map new file mode 100644 index 0000000..3c87b48 --- /dev/null +++ b/dist/esm/wallet/model/loan-to-value-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-to-value-options.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loan-to-value-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-to-value-options.js b/dist/esm/wallet/model/loan-to-value-options.js new file mode 100644 index 0000000..78c39ee --- /dev/null +++ b/dist/esm/wallet/model/loan-to-value-options.js @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The loan to value percentage options + * @export + * @enum {string} + */ +export const LoanToValueOptions = { + RISKY: 'Risky', + NORMAL: 'Normal', + SAFE: 'Safe' +}; +//# sourceMappingURL=loan-to-value-options.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loan-to-value-options.js.map b/dist/esm/wallet/model/loan-to-value-options.js.map new file mode 100644 index 0000000..1f9ff19 --- /dev/null +++ b/dist/esm/wallet/model/loan-to-value-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-to-value-options.js","sourceRoot":"","sources":["../../../../src/wallet/model/loan-to-value-options.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response-list.d.ts b/dist/esm/wallet/model/loans-response-list.d.ts new file mode 100644 index 0000000..ad6b9bf --- /dev/null +++ b/dist/esm/wallet/model/loans-response-list.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoansResponse } from './loans-response'; +/** + * + * @export + * @interface LoansResponseList + */ +export interface LoansResponseList { + /** + * + * @type {Array} + * @memberof LoansResponseList + */ + 'data': Array; +} +//# sourceMappingURL=loans-response-list.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response-list.d.ts.map b/dist/esm/wallet/model/loans-response-list.d.ts.map new file mode 100644 index 0000000..892f6a5 --- /dev/null +++ b/dist/esm/wallet/model/loans-response-list.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response-list.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loans-response-list.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response-list.js b/dist/esm/wallet/model/loans-response-list.js new file mode 100644 index 0000000..620d6c0 --- /dev/null +++ b/dist/esm/wallet/model/loans-response-list.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=loans-response-list.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response-list.js.map b/dist/esm/wallet/model/loans-response-list.js.map new file mode 100644 index 0000000..6880271 --- /dev/null +++ b/dist/esm/wallet/model/loans-response-list.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response-list.js","sourceRoot":"","sources":["../../../../src/wallet/model/loans-response-list.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response.d.ts b/dist/esm/wallet/model/loans-response.d.ts new file mode 100644 index 0000000..47ecd4c --- /dev/null +++ b/dist/esm/wallet/model/loans-response.d.ts @@ -0,0 +1,108 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './bullet-content'; +import type { Currency } from './currency'; +import type { LoanPlan } from './loan-plan'; +/** + * + * @export + * @interface LoansResponse + */ +export interface LoansResponse { + /** + * Identifier for the vault. + * @type {string} + * @memberof LoansResponse + */ + 'id'?: string; + /** + * Identifier for the user. + * @type {number} + * @memberof LoansResponse + */ + 'userId': number; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'liquidationPrice': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'collateral': Currency; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'loanToValue': string; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'debt': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'principal': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'scaledDebt': Currency; + /** + * + * @type {LoanPlan} + * @memberof LoansResponse + */ + 'plan': LoanPlan; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LoansResponse + */ + 'state': { + [key: string]: string | undefined; + }; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedCollateralTokenBalance'?: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedDebtTokenBalance'?: Currency; + /** + * + * @type {BulletContent} + * @memberof LoansResponse + */ + 'termsAndConditions'?: BulletContent; +} +//# sourceMappingURL=loans-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response.d.ts.map b/dist/esm/wallet/model/loans-response.d.ts.map new file mode 100644 index 0000000..e588c1f --- /dev/null +++ b/dist/esm/wallet/model/loans-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/loans-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,kBAAkB,EAAE,QAAQ,CAAC;IAC7B;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,QAAQ,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,QAAQ,CAAC;IAC3C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,QAAQ,CAAC;IACrC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,aAAa,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response.js b/dist/esm/wallet/model/loans-response.js new file mode 100644 index 0000000..a5d0719 --- /dev/null +++ b/dist/esm/wallet/model/loans-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=loans-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/loans-response.js.map b/dist/esm/wallet/model/loans-response.js.map new file mode 100644 index 0000000..ca7c1c8 --- /dev/null +++ b/dist/esm/wallet/model/loans-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/loans-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/login-request.d.ts b/dist/esm/wallet/model/login-request.d.ts new file mode 100644 index 0000000..3ec0e24 --- /dev/null +++ b/dist/esm/wallet/model/login-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LoginRequest + */ +export interface LoginRequest { + /** + * user\'s email + * @type {string} + * @memberof LoginRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof LoginRequest + */ + 'password': string; +} +//# sourceMappingURL=login-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/login-request.d.ts.map b/dist/esm/wallet/model/login-request.d.ts.map new file mode 100644 index 0000000..4fec134 --- /dev/null +++ b/dist/esm/wallet/model/login-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"login-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/login-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/login-request.js b/dist/esm/wallet/model/login-request.js new file mode 100644 index 0000000..256fe36 --- /dev/null +++ b/dist/esm/wallet/model/login-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=login-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/login-request.js.map b/dist/esm/wallet/model/login-request.js.map new file mode 100644 index 0000000..d522a59 --- /dev/null +++ b/dist/esm/wallet/model/login-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"login-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/login-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/model-error.d.ts b/dist/esm/wallet/model/model-error.d.ts new file mode 100644 index 0000000..fd26aa3 --- /dev/null +++ b/dist/esm/wallet/model/model-error.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} +//# sourceMappingURL=model-error.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/model-error.d.ts.map b/dist/esm/wallet/model/model-error.d.ts.map new file mode 100644 index 0000000..0ad17bd --- /dev/null +++ b/dist/esm/wallet/model/model-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/model-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/model-error.js b/dist/esm/wallet/model/model-error.js new file mode 100644 index 0000000..435e9ca --- /dev/null +++ b/dist/esm/wallet/model/model-error.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=model-error.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/model-error.js.map b/dist/esm/wallet/model/model-error.js.map new file mode 100644 index 0000000..c4544bd --- /dev/null +++ b/dist/esm/wallet/model/model-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.js","sourceRoot":"","sources":["../../../../src/wallet/model/model-error.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/network.d.ts b/dist/esm/wallet/model/network.d.ts new file mode 100644 index 0000000..86002d9 --- /dev/null +++ b/dist/esm/wallet/model/network.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Network + */ +export interface Network { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Network + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Network + */ + 'logoUri': string; +} +//# sourceMappingURL=network.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/network.d.ts.map b/dist/esm/wallet/model/network.d.ts.map new file mode 100644 index 0000000..ff33068 --- /dev/null +++ b/dist/esm/wallet/model/network.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/network.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/network.js b/dist/esm/wallet/model/network.js new file mode 100644 index 0000000..de5086c --- /dev/null +++ b/dist/esm/wallet/model/network.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=network.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/network.js.map b/dist/esm/wallet/model/network.js.map new file mode 100644 index 0000000..c2875dc --- /dev/null +++ b/dist/esm/wallet/model/network.js.map @@ -0,0 +1 @@ +{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../../src/wallet/model/network.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/payment-request.d.ts b/dist/esm/wallet/model/payment-request.d.ts new file mode 100644 index 0000000..e62e546 --- /dev/null +++ b/dist/esm/wallet/model/payment-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PaymentRequest + */ +export interface PaymentRequest { + /** + * Payment amount + * @type {string} + * @memberof PaymentRequest + */ + 'amount': string; +} +//# sourceMappingURL=payment-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/payment-request.d.ts.map b/dist/esm/wallet/model/payment-request.d.ts.map new file mode 100644 index 0000000..5d50d2f --- /dev/null +++ b/dist/esm/wallet/model/payment-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/payment-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/payment-request.js b/dist/esm/wallet/model/payment-request.js new file mode 100644 index 0000000..779a479 --- /dev/null +++ b/dist/esm/wallet/model/payment-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=payment-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/payment-request.js.map b/dist/esm/wallet/model/payment-request.js.map new file mode 100644 index 0000000..9e179c2 --- /dev/null +++ b/dist/esm/wallet/model/payment-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/payment-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/payment.d.ts b/dist/esm/wallet/model/payment.d.ts new file mode 100644 index 0000000..62b5ba6 --- /dev/null +++ b/dist/esm/wallet/model/payment.d.ts @@ -0,0 +1,55 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Payment + */ +export interface Payment { + /** + * Payment amount + * @type {string} + * @memberof Payment + */ + 'amount': string; + /** + * Payment hash + * @type {string} + * @memberof Payment + */ + 'hash': string; + /** + * Payment URL + * @type {string} + * @memberof Payment + */ + 'url': string; + /** + * Sender first name + * @type {string} + * @memberof Payment + */ + 'senderFirstName': string; + /** + * Payment text + * @type {string} + * @memberof Payment + */ + 'text': string; + /** + * Share URL + * @type {string} + * @memberof Payment + */ + 'shareUrl': string; +} +//# sourceMappingURL=payment.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/payment.d.ts.map b/dist/esm/wallet/model/payment.d.ts.map new file mode 100644 index 0000000..d30847f --- /dev/null +++ b/dist/esm/wallet/model/payment.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/payment.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/payment.js b/dist/esm/wallet/model/payment.js new file mode 100644 index 0000000..8779a05 --- /dev/null +++ b/dist/esm/wallet/model/payment.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=payment.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/payment.js.map b/dist/esm/wallet/model/payment.js.map new file mode 100644 index 0000000..e4895ea --- /dev/null +++ b/dist/esm/wallet/model/payment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/wallet/model/payment.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/phone-otp-submit-request.d.ts b/dist/esm/wallet/model/phone-otp-submit-request.d.ts new file mode 100644 index 0000000..2f44501 --- /dev/null +++ b/dist/esm/wallet/model/phone-otp-submit-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PhoneOtpSubmitRequest + */ +export interface PhoneOtpSubmitRequest { + /** + * Confirmation code + * @type {number} + * @memberof PhoneOtpSubmitRequest + */ + 'code': number; +} +//# sourceMappingURL=phone-otp-submit-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/phone-otp-submit-request.d.ts.map b/dist/esm/wallet/model/phone-otp-submit-request.d.ts.map new file mode 100644 index 0000000..fd2bad6 --- /dev/null +++ b/dist/esm/wallet/model/phone-otp-submit-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"phone-otp-submit-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/phone-otp-submit-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/phone-otp-submit-request.js b/dist/esm/wallet/model/phone-otp-submit-request.js new file mode 100644 index 0000000..4e06cf6 --- /dev/null +++ b/dist/esm/wallet/model/phone-otp-submit-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=phone-otp-submit-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/phone-otp-submit-request.js.map b/dist/esm/wallet/model/phone-otp-submit-request.js.map new file mode 100644 index 0000000..14e9d6b --- /dev/null +++ b/dist/esm/wallet/model/phone-otp-submit-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"phone-otp-submit-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/phone-otp-submit-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/profile-response.d.ts b/dist/esm/wallet/model/profile-response.d.ts new file mode 100644 index 0000000..b88ed52 --- /dev/null +++ b/dist/esm/wallet/model/profile-response.d.ts @@ -0,0 +1,46 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +import type { Referral } from './referral'; +import type { User } from './user'; +/** + * + * @export + * @interface ProfileResponse + */ +export interface ProfileResponse { + /** + * + * @type {Referral} + * @memberof ProfileResponse + */ + 'referral': Referral; + /** + * + * @type {number} + * @memberof ProfileResponse + */ + 'points': number; + /** + * + * @type {User} + * @memberof ProfileResponse + */ + 'user': User; + /** + * + * @type {Array} + * @memberof ProfileResponse + */ + 'bankInfo': Array; +} +//# sourceMappingURL=profile-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/profile-response.d.ts.map b/dist/esm/wallet/model/profile-response.d.ts.map new file mode 100644 index 0000000..ff5183b --- /dev/null +++ b/dist/esm/wallet/model/profile-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"profile-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/profile-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/profile-response.js b/dist/esm/wallet/model/profile-response.js new file mode 100644 index 0000000..615dff6 --- /dev/null +++ b/dist/esm/wallet/model/profile-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=profile-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/profile-response.js.map b/dist/esm/wallet/model/profile-response.js.map new file mode 100644 index 0000000..ddc3db3 --- /dev/null +++ b/dist/esm/wallet/model/profile-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"profile-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/profile-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-request.d.ts b/dist/esm/wallet/model/redemption-request.d.ts new file mode 100644 index 0000000..c9cad01 --- /dev/null +++ b/dist/esm/wallet/model/redemption-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RedemptionRequest + */ +export interface RedemptionRequest { + /** + * The amount to be redeemed in ZAR + * @type {string} + * @memberof RedemptionRequest + */ + 'amount': string; + /** + * The card number to which the redemption amount will be transferred + * @type {string} + * @memberof RedemptionRequest + */ + 'destinationCardNumber': string; + /** + * The SMS OTP code + * @type {number} + * @memberof RedemptionRequest + */ + 'SmsOtp': number; +} +//# sourceMappingURL=redemption-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-request.d.ts.map b/dist/esm/wallet/model/redemption-request.d.ts.map new file mode 100644 index 0000000..5c55faa --- /dev/null +++ b/dist/esm/wallet/model/redemption-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/redemption-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-request.js b/dist/esm/wallet/model/redemption-request.js new file mode 100644 index 0000000..e125514 --- /dev/null +++ b/dist/esm/wallet/model/redemption-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=redemption-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-request.js.map b/dist/esm/wallet/model/redemption-request.js.map new file mode 100644 index 0000000..748adc2 --- /dev/null +++ b/dist/esm/wallet/model/redemption-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/redemption-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-response.d.ts b/dist/esm/wallet/model/redemption-response.d.ts new file mode 100644 index 0000000..d548d97 --- /dev/null +++ b/dist/esm/wallet/model/redemption-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Redemption } from './redemption'; +/** + * + * @export + * @interface RedemptionResponse + */ +export interface RedemptionResponse { + /** + * + * @type {Array} + * @memberof RedemptionResponse + */ + 'data': Array; +} +//# sourceMappingURL=redemption-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-response.d.ts.map b/dist/esm/wallet/model/redemption-response.d.ts.map new file mode 100644 index 0000000..109b2aa --- /dev/null +++ b/dist/esm/wallet/model/redemption-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/redemption-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-response.js b/dist/esm/wallet/model/redemption-response.js new file mode 100644 index 0000000..481c62b --- /dev/null +++ b/dist/esm/wallet/model/redemption-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=redemption-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption-response.js.map b/dist/esm/wallet/model/redemption-response.js.map new file mode 100644 index 0000000..a1f3b34 --- /dev/null +++ b/dist/esm/wallet/model/redemption-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/redemption-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption.d.ts b/dist/esm/wallet/model/redemption.d.ts new file mode 100644 index 0000000..ec15a6e --- /dev/null +++ b/dist/esm/wallet/model/redemption.d.ts @@ -0,0 +1,66 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +import type { Currency } from './currency'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Redemption + */ +export interface Redemption { + /** + * + * @type {Currency} + * @memberof Redemption + */ + 'amount': Currency; + /** + * + * @type {BankInfo} + * @memberof Redemption + */ + 'destinationBankInfo': BankInfo; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Redemption + */ + 'status': { + [key: string]: string | undefined; + }; + /** + * The ID of the redemption request + * @type {string} + * @memberof Redemption + */ + 'id': string; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'updatedAt'?: Timestamp; + /** + * The Paya tracking code + * @type {string} + * @memberof Redemption + */ + 'payaTrackingCode'?: string; +} +//# sourceMappingURL=redemption.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption.d.ts.map b/dist/esm/wallet/model/redemption.d.ts.map new file mode 100644 index 0000000..0f75d2b --- /dev/null +++ b/dist/esm/wallet/model/redemption.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/redemption.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,EAAE,QAAQ,CAAC;IAChC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption.js b/dist/esm/wallet/model/redemption.js new file mode 100644 index 0000000..d380b2f --- /dev/null +++ b/dist/esm/wallet/model/redemption.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=redemption.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/redemption.js.map b/dist/esm/wallet/model/redemption.js.map new file mode 100644 index 0000000..c364047 --- /dev/null +++ b/dist/esm/wallet/model/redemption.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption.js","sourceRoot":"","sources":["../../../../src/wallet/model/redemption.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/referral-response.d.ts b/dist/esm/wallet/model/referral-response.d.ts new file mode 100644 index 0000000..798052f --- /dev/null +++ b/dist/esm/wallet/model/referral-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Referral } from './referral'; +/** + * + * @export + * @interface ReferralResponse + */ +export interface ReferralResponse { + /** + * + * @type {Array} + * @memberof ReferralResponse + */ + 'data': Array; +} +//# sourceMappingURL=referral-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/referral-response.d.ts.map b/dist/esm/wallet/model/referral-response.d.ts.map new file mode 100644 index 0000000..4f76a4b --- /dev/null +++ b/dist/esm/wallet/model/referral-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"referral-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/referral-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/referral-response.js b/dist/esm/wallet/model/referral-response.js new file mode 100644 index 0000000..dada11f --- /dev/null +++ b/dist/esm/wallet/model/referral-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=referral-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/referral-response.js.map b/dist/esm/wallet/model/referral-response.js.map new file mode 100644 index 0000000..9382476 --- /dev/null +++ b/dist/esm/wallet/model/referral-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referral-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/referral-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/referral.d.ts b/dist/esm/wallet/model/referral.d.ts new file mode 100644 index 0000000..1cf8306 --- /dev/null +++ b/dist/esm/wallet/model/referral.d.ts @@ -0,0 +1,68 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Referral + */ +export interface Referral { + /** + * + * @type {number} + * @memberof Referral + */ + 'id': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'referrerId': number; + /** + * + * @type {string} + * @memberof Referral + */ + 'name'?: string | null; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageLimit': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageCount': number; + /** + * + * @type {Timestamp} + * @memberof Referral + */ + 'createdAt': Timestamp; + /** + * + * @type {string} + * @memberof Referral + */ + 'link'?: string | null; + /** + * + * @type {string} + * @memberof Referral + */ + 'shareUrl'?: string; +} +//# sourceMappingURL=referral.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/referral.d.ts.map b/dist/esm/wallet/model/referral.d.ts.map new file mode 100644 index 0000000..71c5d8c --- /dev/null +++ b/dist/esm/wallet/model/referral.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"referral.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/referral.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/referral.js b/dist/esm/wallet/model/referral.js new file mode 100644 index 0000000..4639106 --- /dev/null +++ b/dist/esm/wallet/model/referral.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=referral.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/referral.js.map b/dist/esm/wallet/model/referral.js.map new file mode 100644 index 0000000..50e130b --- /dev/null +++ b/dist/esm/wallet/model/referral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referral.js","sourceRoot":"","sources":["../../../../src/wallet/model/referral.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/repay-loan-request.d.ts b/dist/esm/wallet/model/repay-loan-request.d.ts new file mode 100644 index 0000000..5731bb0 --- /dev/null +++ b/dist/esm/wallet/model/repay-loan-request.d.ts @@ -0,0 +1,36 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RepayLoanRequest + */ +export interface RepayLoanRequest { + /** + * Intent to repay a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'intent': RepayLoanRequestIntentEnum; + /** + * The id of a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'loanId': string; +} +export declare const RepayLoanRequestIntentEnum: { + readonly REPAY: "Repay"; + readonly PREVIEW: "Preview"; +}; +export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; +//# sourceMappingURL=repay-loan-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/repay-loan-request.d.ts.map b/dist/esm/wallet/model/repay-loan-request.d.ts.map new file mode 100644 index 0000000..ce49c9f --- /dev/null +++ b/dist/esm/wallet/model/repay-loan-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"repay-loan-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/repay-loan-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,0BAA0B,CAAC;IACrC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/repay-loan-request.js b/dist/esm/wallet/model/repay-loan-request.js new file mode 100644 index 0000000..f9ef932 --- /dev/null +++ b/dist/esm/wallet/model/repay-loan-request.js @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const RepayLoanRequestIntentEnum = { + REPAY: 'Repay', + PREVIEW: 'Preview' +}; +//# sourceMappingURL=repay-loan-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/repay-loan-request.js.map b/dist/esm/wallet/model/repay-loan-request.js.map new file mode 100644 index 0000000..1541cbd --- /dev/null +++ b/dist/esm/wallet/model/repay-loan-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"repay-loan-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/repay-loan-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAwBH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/sign-up-request.d.ts b/dist/esm/wallet/model/sign-up-request.d.ts new file mode 100644 index 0000000..23bd672 --- /dev/null +++ b/dist/esm/wallet/model/sign-up-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SignUpRequest + */ +export interface SignUpRequest { + /** + * user\'s email + * @type {string} + * @memberof SignUpRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof SignUpRequest + */ + 'password': string; +} +//# sourceMappingURL=sign-up-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/sign-up-request.d.ts.map b/dist/esm/wallet/model/sign-up-request.d.ts.map new file mode 100644 index 0000000..0af3721 --- /dev/null +++ b/dist/esm/wallet/model/sign-up-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sign-up-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/sign-up-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/sign-up-request.js b/dist/esm/wallet/model/sign-up-request.js new file mode 100644 index 0000000..b77b0ed --- /dev/null +++ b/dist/esm/wallet/model/sign-up-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=sign-up-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/sign-up-request.js.map b/dist/esm/wallet/model/sign-up-request.js.map new file mode 100644 index 0000000..96ce9e2 --- /dev/null +++ b/dist/esm/wallet/model/sign-up-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sign-up-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/sign-up-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/simple-response.d.ts b/dist/esm/wallet/model/simple-response.d.ts new file mode 100644 index 0000000..62fade2 --- /dev/null +++ b/dist/esm/wallet/model/simple-response.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SimpleResponse + */ +export interface SimpleResponse { + /** + * Localized messages + * @type {{ [key: string]: string | undefined; }} + * @memberof SimpleResponse + */ + 'messages': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=simple-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/simple-response.d.ts.map b/dist/esm/wallet/model/simple-response.d.ts.map new file mode 100644 index 0000000..f4d6666 --- /dev/null +++ b/dist/esm/wallet/model/simple-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/simple-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACtD"} \ No newline at end of file diff --git a/dist/esm/wallet/model/simple-response.js b/dist/esm/wallet/model/simple-response.js new file mode 100644 index 0000000..e6d2e7b --- /dev/null +++ b/dist/esm/wallet/model/simple-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=simple-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/simple-response.js.map b/dist/esm/wallet/model/simple-response.js.map new file mode 100644 index 0000000..b3c8db1 --- /dev/null +++ b/dist/esm/wallet/model/simple-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/simple-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-request.d.ts b/dist/esm/wallet/model/swap-request.d.ts new file mode 100644 index 0000000..ae596d5 --- /dev/null +++ b/dist/esm/wallet/model/swap-request.d.ts @@ -0,0 +1,66 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SwapRequest + */ +export interface SwapRequest { + /** + * Intent to swap + * @type {string} + * @memberof SwapRequest + */ + 'intent': SwapRequestIntentEnum; + /** + * Quote ID, required if intent is Swap + * @type {string} + * @memberof SwapRequest + */ + 'quoteId'?: string; + /** + * Trade type + * @type {string} + * @memberof SwapRequest + */ + 'tradeType'?: SwapRequestTradeTypeEnum; + /** + * Coin symbol to swap from + * @type {string} + * @memberof SwapRequest + */ + 'in'?: string; + /** + * Coin symbol to swap to + * @type {string} + * @memberof SwapRequest + */ + 'out'?: string; + /** + * Amount to swap + * @type {string} + * @memberof SwapRequest + */ + 'amount'?: string; +} +export declare const SwapRequestIntentEnum: { + readonly SWAP: "Swap"; + readonly QUOTE: "Quote"; + readonly PREVIEW: "Preview"; +}; +export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; +export declare const SwapRequestTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; +//# sourceMappingURL=swap-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-request.d.ts.map b/dist/esm/wallet/model/swap-request.d.ts.map new file mode 100644 index 0000000..d036abf --- /dev/null +++ b/dist/esm/wallet/model/swap-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/swap-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AACrG,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-request.js b/dist/esm/wallet/model/swap-request.js new file mode 100644 index 0000000..d209217 --- /dev/null +++ b/dist/esm/wallet/model/swap-request.js @@ -0,0 +1,23 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const SwapRequestIntentEnum = { + SWAP: 'Swap', + QUOTE: 'Quote', + PREVIEW: 'Preview' +}; +export const SwapRequestTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=swap-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-request.js.map b/dist/esm/wallet/model/swap-request.js.map new file mode 100644 index 0000000..4ebea1b --- /dev/null +++ b/dist/esm/wallet/model/swap-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/swap-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAgDH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-response.d.ts b/dist/esm/wallet/model/swap-response.d.ts new file mode 100644 index 0000000..e98c625 --- /dev/null +++ b/dist/esm/wallet/model/swap-response.d.ts @@ -0,0 +1,105 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface SwapResponse + */ +export interface SwapResponse { + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'tradeType': SwapResponseTradeTypeEnum; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'in': Symbol; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'out': Symbol; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'amount': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'quote': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'rate': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'inputBalanceAfterSwap'?: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'outputBalanceAfterSwap'?: string; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'expiresAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'executedAt'?: Timestamp; + /** + * + * @type {Currency} + * @memberof SwapResponse + */ + 'value': Currency; +} +export declare const SwapResponseTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; +//# sourceMappingURL=swap-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-response.d.ts.map b/dist/esm/wallet/model/swap-response.d.ts.map new file mode 100644 index 0000000..1231152 --- /dev/null +++ b/dist/esm/wallet/model/swap-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/swap-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,yBAAyB,CAAC;IACvC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-response.js b/dist/esm/wallet/model/swap-response.js new file mode 100644 index 0000000..8efbb2e --- /dev/null +++ b/dist/esm/wallet/model/swap-response.js @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const SwapResponseTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=swap-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/swap-response.js.map b/dist/esm/wallet/model/swap-response.js.map new file mode 100644 index 0000000..bf508ab --- /dev/null +++ b/dist/esm/wallet/model/swap-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/swap-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAmGH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/symbol.d.ts b/dist/esm/wallet/model/symbol.d.ts new file mode 100644 index 0000000..10aca13 --- /dev/null +++ b/dist/esm/wallet/model/symbol.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/symbol.d.ts.map b/dist/esm/wallet/model/symbol.d.ts.map new file mode 100644 index 0000000..ef9a618 --- /dev/null +++ b/dist/esm/wallet/model/symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/symbol.js b/dist/esm/wallet/model/symbol.js new file mode 100644 index 0000000..402fc26 --- /dev/null +++ b/dist/esm/wallet/model/symbol.js @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export const Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +//# sourceMappingURL=symbol.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/symbol.js.map b/dist/esm/wallet/model/symbol.js.map new file mode 100644 index 0000000..8f68e8c --- /dev/null +++ b/dist/esm/wallet/model/symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../../src/wallet/model/symbol.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/task-response.d.ts b/dist/esm/wallet/model/task-response.d.ts new file mode 100644 index 0000000..9b087c8 --- /dev/null +++ b/dist/esm/wallet/model/task-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Task } from './task'; +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {Array} + * @memberof TaskResponse + */ + 'data': Array; +} +//# sourceMappingURL=task-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/task-response.d.ts.map b/dist/esm/wallet/model/task-response.d.ts.map new file mode 100644 index 0000000..0e66a7e --- /dev/null +++ b/dist/esm/wallet/model/task-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"task-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/task-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/task-response.js b/dist/esm/wallet/model/task-response.js new file mode 100644 index 0000000..8b40a6c --- /dev/null +++ b/dist/esm/wallet/model/task-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=task-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/task-response.js.map b/dist/esm/wallet/model/task-response.js.map new file mode 100644 index 0000000..2413e66 --- /dev/null +++ b/dist/esm/wallet/model/task-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"task-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/task-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/task.d.ts b/dist/esm/wallet/model/task.d.ts new file mode 100644 index 0000000..589a1b4 --- /dev/null +++ b/dist/esm/wallet/model/task.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Task + */ +export interface Task { + /** + * Task ID + * @type {string} + * @memberof Task + */ + 'id': string; + /** + * Task description + * @type {string} + * @memberof Task + */ + 'description': string; + /** + * Task reward + * @type {number} + * @memberof Task + */ + 'points': number; + /** + * Task status. Possible values \"Pending\", \"Completed\" + * @type {string} + * @memberof Task + */ + 'status': string; + /** + * + * @type {Timestamp} + * @memberof Task + */ + 'completedAt'?: Timestamp; +} +//# sourceMappingURL=task.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/task.d.ts.map b/dist/esm/wallet/model/task.d.ts.map new file mode 100644 index 0000000..ff9a00f --- /dev/null +++ b/dist/esm/wallet/model/task.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/task.js b/dist/esm/wallet/model/task.js new file mode 100644 index 0000000..aff8137 --- /dev/null +++ b/dist/esm/wallet/model/task.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=task.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/task.js.map b/dist/esm/wallet/model/task.js.map new file mode 100644 index 0000000..5757885 --- /dev/null +++ b/dist/esm/wallet/model/task.js.map @@ -0,0 +1 @@ +{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../src/wallet/model/task.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/telegram-profile.d.ts b/dist/esm/wallet/model/telegram-profile.d.ts new file mode 100644 index 0000000..1956052 --- /dev/null +++ b/dist/esm/wallet/model/telegram-profile.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TelegramProfile + */ +export interface TelegramProfile { + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'username'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'lastName'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'photoUrl'?: string | null; +} +//# sourceMappingURL=telegram-profile.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/telegram-profile.d.ts.map b/dist/esm/wallet/model/telegram-profile.d.ts.map new file mode 100644 index 0000000..e229300 --- /dev/null +++ b/dist/esm/wallet/model/telegram-profile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"telegram-profile.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/telegram-profile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/telegram-profile.js b/dist/esm/wallet/model/telegram-profile.js new file mode 100644 index 0000000..a55cf87 --- /dev/null +++ b/dist/esm/wallet/model/telegram-profile.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=telegram-profile.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/telegram-profile.js.map b/dist/esm/wallet/model/telegram-profile.js.map new file mode 100644 index 0000000..986161b --- /dev/null +++ b/dist/esm/wallet/model/telegram-profile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"telegram-profile.js","sourceRoot":"","sources":["../../../../src/wallet/model/telegram-profile.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/timestamp.d.ts b/dist/esm/wallet/model/timestamp.d.ts new file mode 100644 index 0000000..fe85e42 --- /dev/null +++ b/dist/esm/wallet/model/timestamp.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} +//# sourceMappingURL=timestamp.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/timestamp.d.ts.map b/dist/esm/wallet/model/timestamp.d.ts.map new file mode 100644 index 0000000..f085821 --- /dev/null +++ b/dist/esm/wallet/model/timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/timestamp.js b/dist/esm/wallet/model/timestamp.js new file mode 100644 index 0000000..4420904 --- /dev/null +++ b/dist/esm/wallet/model/timestamp.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/timestamp.js.map b/dist/esm/wallet/model/timestamp.js.map new file mode 100644 index 0000000..aee748a --- /dev/null +++ b/dist/esm/wallet/model/timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/wallet/model/timestamp.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-response.d.ts b/dist/esm/wallet/model/transaction-response.d.ts new file mode 100644 index 0000000..c88837e --- /dev/null +++ b/dist/esm/wallet/model/transaction-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Transaction } from './transaction'; +/** + * + * @export + * @interface TransactionResponse + */ +export interface TransactionResponse { + /** + * + * @type {Array} + * @memberof TransactionResponse + */ + 'data': Array; +} +//# sourceMappingURL=transaction-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-response.d.ts.map b/dist/esm/wallet/model/transaction-response.d.ts.map new file mode 100644 index 0000000..f750b58 --- /dev/null +++ b/dist/esm/wallet/model/transaction-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-response.js b/dist/esm/wallet/model/transaction-response.js new file mode 100644 index 0000000..86cc1d3 --- /dev/null +++ b/dist/esm/wallet/model/transaction-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=transaction-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-response.js.map b/dist/esm/wallet/model/transaction-response.js.map new file mode 100644 index 0000000..603f393 --- /dev/null +++ b/dist/esm/wallet/model/transaction-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-status.d.ts b/dist/esm/wallet/model/transaction-status.d.ts new file mode 100644 index 0000000..d56e4fc --- /dev/null +++ b/dist/esm/wallet/model/transaction-status.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TransactionStatus: { + readonly SENT: "Sent"; + readonly SUCCESS: "Success"; + readonly FAILED: "Failed"; +}; +export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; +//# sourceMappingURL=transaction-status.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-status.d.ts.map b/dist/esm/wallet/model/transaction-status.d.ts.map new file mode 100644 index 0000000..9d2c604 --- /dev/null +++ b/dist/esm/wallet/model/transaction-status.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-status.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-status.js b/dist/esm/wallet/model/transaction-status.js new file mode 100644 index 0000000..1f92e1c --- /dev/null +++ b/dist/esm/wallet/model/transaction-status.js @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export const TransactionStatus = { + SENT: 'Sent', + SUCCESS: 'Success', + FAILED: 'Failed' +}; +//# sourceMappingURL=transaction-status.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-status.js.map b/dist/esm/wallet/model/transaction-status.js.map new file mode 100644 index 0000000..3e7e27f --- /dev/null +++ b/dist/esm/wallet/model/transaction-status.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-status.js","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-status.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-type.d.ts b/dist/esm/wallet/model/transaction-type.d.ts new file mode 100644 index 0000000..045640d --- /dev/null +++ b/dist/esm/wallet/model/transaction-type.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TransactionType: { + readonly CREDIT: "Credit"; + readonly DEBIT: "Debit"; + readonly TRANSFER: "Transfer"; + readonly DEPOSIT: "Deposit"; + readonly WITHDRAW: "Withdraw"; +}; +export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; +//# sourceMappingURL=transaction-type.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-type.d.ts.map b/dist/esm/wallet/model/transaction-type.d.ts.map new file mode 100644 index 0000000..d495e2f --- /dev/null +++ b/dist/esm/wallet/model/transaction-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-type.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-type.js b/dist/esm/wallet/model/transaction-type.js new file mode 100644 index 0000000..931a4ad --- /dev/null +++ b/dist/esm/wallet/model/transaction-type.js @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export const TransactionType = { + CREDIT: 'Credit', + DEBIT: 'Debit', + TRANSFER: 'Transfer', + DEPOSIT: 'Deposit', + WITHDRAW: 'Withdraw' +}; +//# sourceMappingURL=transaction-type.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction-type.js.map b/dist/esm/wallet/model/transaction-type.js.map new file mode 100644 index 0000000..0801e92 --- /dev/null +++ b/dist/esm/wallet/model/transaction-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-type.js","sourceRoot":"","sources":["../../../../src/wallet/model/transaction-type.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction.d.ts b/dist/esm/wallet/model/transaction.d.ts new file mode 100644 index 0000000..bb75bd2 --- /dev/null +++ b/dist/esm/wallet/model/transaction.d.ts @@ -0,0 +1,83 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { ExternalTransaction } from './external-transaction'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +import type { TransactionType } from './transaction-type'; +/** + * + * @export + * @interface Transaction + */ +export interface Transaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof Transaction + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof Transaction + */ + 'time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof Transaction + */ + 'type': TransactionType; + /** + * The ID of the user from whom the transaction originated + * @type {string} + * @memberof Transaction + */ + 'from': string; + /** + * The ID of the user to whom the transaction is directed + * @type {string} + * @memberof Transaction + */ + 'to': string; + /** + * + * @type {Symbol} + * @memberof Transaction + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof Transaction + */ + 'amount': Currency; + /** + * Equal to \"Inbound\" if the transaction is directed to the user, and \"Outbound\" if the transaction is directed from the user. + * @type {string} + * @memberof Transaction + */ + 'direction': TransactionDirectionEnum; + /** + * + * @type {ExternalTransaction} + * @memberof Transaction + */ + 'externalTransaction'?: ExternalTransaction; +} +export declare const TransactionDirectionEnum: { + readonly INBOUND: "Inbound"; + readonly OUTBOUND: "Outbound"; +}; +export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; +//# sourceMappingURL=transaction.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction.d.ts.map b/dist/esm/wallet/model/transaction.d.ts.map new file mode 100644 index 0000000..1fe1bcc --- /dev/null +++ b/dist/esm/wallet/model/transaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,wBAAwB,CAAC;IACtC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;CAC/C;AAED,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction.js b/dist/esm/wallet/model/transaction.js new file mode 100644 index 0000000..1345eaf --- /dev/null +++ b/dist/esm/wallet/model/transaction.js @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const TransactionDirectionEnum = { + INBOUND: 'Inbound', + OUTBOUND: 'Outbound' +}; +//# sourceMappingURL=transaction.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/transaction.js.map b/dist/esm/wallet/model/transaction.js.map new file mode 100644 index 0000000..9c9d132 --- /dev/null +++ b/dist/esm/wallet/model/transaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../../src/wallet/model/transaction.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAiFH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/update-email-request.d.ts b/dist/esm/wallet/model/update-email-request.d.ts new file mode 100644 index 0000000..260c905 --- /dev/null +++ b/dist/esm/wallet/model/update-email-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateEmailRequest + */ +export interface UpdateEmailRequest { + /** + * Email address + * @type {string} + * @memberof UpdateEmailRequest + */ + 'email': string; +} +//# sourceMappingURL=update-email-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/update-email-request.d.ts.map b/dist/esm/wallet/model/update-email-request.d.ts.map new file mode 100644 index 0000000..52b756b --- /dev/null +++ b/dist/esm/wallet/model/update-email-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-email-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/update-email-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/update-email-request.js b/dist/esm/wallet/model/update-email-request.js new file mode 100644 index 0000000..4882893 --- /dev/null +++ b/dist/esm/wallet/model/update-email-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=update-email-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/update-email-request.js.map b/dist/esm/wallet/model/update-email-request.js.map new file mode 100644 index 0000000..6bb9854 --- /dev/null +++ b/dist/esm/wallet/model/update-email-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-email-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/update-email-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/update-phone-request.d.ts b/dist/esm/wallet/model/update-phone-request.d.ts new file mode 100644 index 0000000..6d252a1 --- /dev/null +++ b/dist/esm/wallet/model/update-phone-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdatePhoneRequest + */ +export interface UpdatePhoneRequest { + /** + * Phone number + * @type {string} + * @memberof UpdatePhoneRequest + */ + 'number': string; +} +//# sourceMappingURL=update-phone-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/update-phone-request.d.ts.map b/dist/esm/wallet/model/update-phone-request.d.ts.map new file mode 100644 index 0000000..7379daa --- /dev/null +++ b/dist/esm/wallet/model/update-phone-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-phone-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/update-phone-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/update-phone-request.js b/dist/esm/wallet/model/update-phone-request.js new file mode 100644 index 0000000..884e85b --- /dev/null +++ b/dist/esm/wallet/model/update-phone-request.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=update-phone-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/update-phone-request.js.map b/dist/esm/wallet/model/update-phone-request.js.map new file mode 100644 index 0000000..97d5a50 --- /dev/null +++ b/dist/esm/wallet/model/update-phone-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-phone-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/update-phone-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/user-error.d.ts b/dist/esm/wallet/model/user-error.d.ts new file mode 100644 index 0000000..32cc3cc --- /dev/null +++ b/dist/esm/wallet/model/user-error.d.ts @@ -0,0 +1,28 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorDetail } from './error-detail'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorDetail | undefined; }} + * @memberof UserError + */ + 'messages': { + [key: string]: ErrorDetail | undefined; + }; +} +//# sourceMappingURL=user-error.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/user-error.d.ts.map b/dist/esm/wallet/model/user-error.d.ts.map new file mode 100644 index 0000000..5dc0ce2 --- /dev/null +++ b/dist/esm/wallet/model/user-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/user-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;KAAE,CAAC;CAC3D"} \ No newline at end of file diff --git a/dist/esm/wallet/model/user-error.js b/dist/esm/wallet/model/user-error.js new file mode 100644 index 0000000..adf3d78 --- /dev/null +++ b/dist/esm/wallet/model/user-error.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user-error.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/user-error.js.map b/dist/esm/wallet/model/user-error.js.map new file mode 100644 index 0000000..a25dac3 --- /dev/null +++ b/dist/esm/wallet/model/user-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.js","sourceRoot":"","sources":["../../../../src/wallet/model/user-error.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/user.d.ts b/dist/esm/wallet/model/user.d.ts new file mode 100644 index 0000000..ede09a9 --- /dev/null +++ b/dist/esm/wallet/model/user.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TelegramProfile } from './telegram-profile'; +/** + * + * @export + * @interface User + */ +export interface User { + /** + * User\'s first name + * @type {string} + * @memberof User + */ + 'firstName'?: string; + /** + * User\'s last name + * @type {string} + * @memberof User + */ + 'lastName'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'username'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'phone'?: string; + /** + * + * @type {boolean} + * @memberof User + */ + 'isEmailVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isPhoneVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isKycVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isChild'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isSuperUser'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isAdmin'?: boolean; + /** + * + * @type {TelegramProfile} + * @memberof User + */ + 'telegram'?: TelegramProfile; +} +//# sourceMappingURL=user.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/user.d.ts.map b/dist/esm/wallet/model/user.d.ts.map new file mode 100644 index 0000000..0acf092 --- /dev/null +++ b/dist/esm/wallet/model/user.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/user.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/user.js b/dist/esm/wallet/model/user.js new file mode 100644 index 0000000..4321667 --- /dev/null +++ b/dist/esm/wallet/model/user.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=user.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/user.js.map b/dist/esm/wallet/model/user.js.map new file mode 100644 index 0000000..8e52262 --- /dev/null +++ b/dist/esm/wallet/model/user.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/wallet/model/user.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/wallet-balance.d.ts b/dist/esm/wallet/model/wallet-balance.d.ts new file mode 100644 index 0000000..93f7d73 --- /dev/null +++ b/dist/esm/wallet/model/wallet-balance.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Balance } from './balance'; +import type { Currency } from './currency'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Currency} + * @memberof WalletBalance + */ + 'total': Currency; + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} +//# sourceMappingURL=wallet-balance.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/wallet-balance.d.ts.map b/dist/esm/wallet/model/wallet-balance.d.ts.map new file mode 100644 index 0000000..fa01f94 --- /dev/null +++ b/dist/esm/wallet/model/wallet-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/wallet-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/wallet-balance.js b/dist/esm/wallet/model/wallet-balance.js new file mode 100644 index 0000000..8a8fa01 --- /dev/null +++ b/dist/esm/wallet/model/wallet-balance.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=wallet-balance.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/wallet-balance.js.map b/dist/esm/wallet/model/wallet-balance.js.map new file mode 100644 index 0000000..35ae73e --- /dev/null +++ b/dist/esm/wallet/model/wallet-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.js","sourceRoot":"","sources":["../../../../src/wallet/model/wallet-balance.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-body.d.ts b/dist/esm/wallet/model/withdraw-request-body.d.ts new file mode 100644 index 0000000..dae2800 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-body.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawRequestBody + */ +export interface WithdrawRequestBody { + /** + * Network to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'network': string; + /** + * Coin symbol + * @type {string} + * @memberof WithdrawRequestBody + */ + 'symbol': string; + /** + * Amount to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'amount': string; + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestBody + */ + 'address': string; + /** + * + * @type {string} + * @memberof WithdrawRequestBody + */ + 'comment'?: string | null; +} +//# sourceMappingURL=withdraw-request-body.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-body.d.ts.map b/dist/esm/wallet/model/withdraw-request-body.d.ts.map new file mode 100644 index 0000000..502855c --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-body.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-body.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-body.js b/dist/esm/wallet/model/withdraw-request-body.js new file mode 100644 index 0000000..bd3a274 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-body.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=withdraw-request-body.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-body.js.map b/dist/esm/wallet/model/withdraw-request-body.js.map new file mode 100644 index 0000000..8024306 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-body.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-body.js","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-body.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-preview.d.ts b/dist/esm/wallet/model/withdraw-request-preview.d.ts new file mode 100644 index 0000000..02dfa47 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-preview.d.ts @@ -0,0 +1,58 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface WithdrawRequestPreview + */ +export interface WithdrawRequestPreview { + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestPreview + */ + 'address': string; + /** + * + * @type {Network} + * @memberof WithdrawRequestPreview + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequestPreview + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'amount': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'fee': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'balanceAfterWithdraw': Currency; +} +//# sourceMappingURL=withdraw-request-preview.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-preview.d.ts.map b/dist/esm/wallet/model/withdraw-request-preview.d.ts.map new file mode 100644 index 0000000..0f33b85 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-preview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-preview.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-preview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,sBAAsB,EAAE,QAAQ,CAAC;CACpC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-preview.js b/dist/esm/wallet/model/withdraw-request-preview.js new file mode 100644 index 0000000..a9ca327 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-preview.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=withdraw-request-preview.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-preview.js.map b/dist/esm/wallet/model/withdraw-request-preview.js.map new file mode 100644 index 0000000..abbeceb --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-preview.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-preview.js","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-preview.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-response.d.ts b/dist/esm/wallet/model/withdraw-request-response.d.ts new file mode 100644 index 0000000..7dcc9d3 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WithdrawRequest } from './withdraw-request'; +/** + * + * @export + * @interface WithdrawRequestResponse + */ +export interface WithdrawRequestResponse { + /** + * + * @type {Array} + * @memberof WithdrawRequestResponse + */ + 'data': Array; +} +//# sourceMappingURL=withdraw-request-response.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-response.d.ts.map b/dist/esm/wallet/model/withdraw-request-response.d.ts.map new file mode 100644 index 0000000..ae07854 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-response.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAClC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-response.js b/dist/esm/wallet/model/withdraw-request-response.js new file mode 100644 index 0000000..06d26b7 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-response.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=withdraw-request-response.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request-response.js.map b/dist/esm/wallet/model/withdraw-request-response.js.map new file mode 100644 index 0000000..4b84e46 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-response.js","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request-response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request.d.ts b/dist/esm/wallet/model/withdraw-request.d.ts new file mode 100644 index 0000000..d002017 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request.d.ts @@ -0,0 +1,89 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Network } from './network'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface WithdrawRequest + */ +export interface WithdrawRequest { + /** + * + * @type {number} + * @memberof WithdrawRequest + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof WithdrawRequest + */ + 'timeCreated': Timestamp; + /** + * + * @type {Network} + * @memberof WithdrawRequest + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequest + */ + 'symbol': Symbol; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'to': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'comment'?: string | null; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'status': WithdrawRequestStatusEnum; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'blockExplorerUrl'?: string | null; +} +export declare const WithdrawRequestStatusEnum: { + readonly PENDING: "Pending"; + readonly CANCELED: "Canceled"; + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly PROCCESSING: "Proccessing"; + readonly FAILED: "Failed"; + readonly SENT: "Sent"; + readonly ACCOUNT_DEBITED: "AccountDebited"; + readonly ACCOUNT_BALANCE_UNLOCKED: "AccountBalanceUnlocked"; + readonly COMPLETED: "Completed"; +}; +export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; +//# sourceMappingURL=withdraw-request.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request.d.ts.map b/dist/esm/wallet/model/withdraw-request.d.ts.map new file mode 100644 index 0000000..0e7d595 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,yBAAyB,CAAC;IACpC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAW5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request.js b/dist/esm/wallet/model/withdraw-request.js new file mode 100644 index 0000000..33f6658 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request.js @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export const WithdrawRequestStatusEnum = { + PENDING: 'Pending', + CANCELED: 'Canceled', + APPROVED: 'Approved', + REJECTED: 'Rejected', + PROCCESSING: 'Proccessing', + FAILED: 'Failed', + SENT: 'Sent', + ACCOUNT_DEBITED: 'AccountDebited', + ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', + COMPLETED: 'Completed' +}; +//# sourceMappingURL=withdraw-request.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-request.js.map b/dist/esm/wallet/model/withdraw-request.js.map new file mode 100644 index 0000000..1831495 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request.js","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-request.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AA2EH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,gBAAgB;IACjC,wBAAwB,EAAE,wBAAwB;IAClD,SAAS,EAAE,WAAW;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-response-body.d.ts b/dist/esm/wallet/model/withdraw-response-body.d.ts new file mode 100644 index 0000000..f41449d --- /dev/null +++ b/dist/esm/wallet/model/withdraw-response-body.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawResponseBody + */ +export interface WithdrawResponseBody { + /** + * Withdrawal request ID + * @type {number} + * @memberof WithdrawResponseBody + */ + 'id': number; +} +//# sourceMappingURL=withdraw-response-body.d.ts.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-response-body.d.ts.map b/dist/esm/wallet/model/withdraw-response-body.d.ts.map new file mode 100644 index 0000000..d94c56d --- /dev/null +++ b/dist/esm/wallet/model/withdraw-response-body.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-response-body.d.ts","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-response-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"} \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-response-body.js b/dist/esm/wallet/model/withdraw-response-body.js new file mode 100644 index 0000000..ea91ea6 --- /dev/null +++ b/dist/esm/wallet/model/withdraw-response-body.js @@ -0,0 +1,15 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export {}; +//# sourceMappingURL=withdraw-response-body.js.map \ No newline at end of file diff --git a/dist/esm/wallet/model/withdraw-response-body.js.map b/dist/esm/wallet/model/withdraw-response-body.js.map new file mode 100644 index 0000000..931f09d --- /dev/null +++ b/dist/esm/wallet/model/withdraw-response-body.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-response-body.js","sourceRoot":"","sources":["../../../../src/wallet/model/withdraw-response-body.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts index 6db0cf7..4255030 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,3 +1,3 @@ -export * as Service from "./service/src/index.js"; -export * as Wallet from "./wallet/src/index.js"; +export * as Service from "./service"; +export * as Wallet from "./wallet"; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 7da944b..60e7c9a 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index fbaaf67..65ab5df 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Wallet = exports.Service = void 0; const tslib_1 = require("tslib"); -exports.Service = tslib_1.__importStar(require("./service/src/index.js")); -exports.Wallet = tslib_1.__importStar(require("./wallet/src/index.js")); +exports.Service = tslib_1.__importStar(require("./service")); +exports.Wallet = tslib_1.__importStar(require("./wallet")); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index 7398572..c6d5c9b 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,0EAAkD;AAClD,wEAAgD"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,6DAAqC;AACrC,2DAAmC"} \ No newline at end of file diff --git a/dist/service/api.d.ts b/dist/service/api.d.ts new file mode 100644 index 0000000..404e835 --- /dev/null +++ b/dist/service/api.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AccountsApi from './api/accounts-api'; +export * as AddressesApi from './api/addresses-api'; +export * as BorrowsApi from './api/borrows-api'; +export * as CollectorApi from './api/collector-api'; +export * as DepositsApi from './api/deposits-api'; +export * as IlksApi from './api/ilks-api'; +export * as LendingPoolApi from './api/lending-pool-api'; +export * as LogsApi from './api/logs-api'; +export * as OrdersApi from './api/orders-api'; +export * as PermitApi from './api/permit-api'; +export * as PointsApi from './api/points-api'; +export * as PricesApi from './api/prices-api'; +export * as StableCoinSystemApi from './api/stable-coin-system-api'; +export * as StakingApi from './api/staking-api'; +export * as SwapApi from './api/swap-api'; +export * as VaultsApi from './api/vaults-api'; +export * as WebsocketApi from './api/websocket-api'; +//# sourceMappingURL=api.d.ts.map \ No newline at end of file diff --git a/dist/service/api.d.ts.map b/dist/service/api.d.ts.map new file mode 100644 index 0000000..c6596cd --- /dev/null +++ b/dist/service/api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/service/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/service/api.js b/dist/service/api.js new file mode 100644 index 0000000..af7bc24 --- /dev/null +++ b/dist/service/api.js @@ -0,0 +1,35 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WebsocketApi = exports.VaultsApi = exports.SwapApi = exports.StakingApi = exports.StableCoinSystemApi = exports.PricesApi = exports.PointsApi = exports.PermitApi = exports.OrdersApi = exports.LogsApi = exports.LendingPoolApi = exports.IlksApi = exports.DepositsApi = exports.CollectorApi = exports.BorrowsApi = exports.AddressesApi = exports.AccountsApi = void 0; +const tslib_1 = require("tslib"); +exports.AccountsApi = tslib_1.__importStar(require("./api/accounts-api")); +exports.AddressesApi = tslib_1.__importStar(require("./api/addresses-api")); +exports.BorrowsApi = tslib_1.__importStar(require("./api/borrows-api")); +exports.CollectorApi = tslib_1.__importStar(require("./api/collector-api")); +exports.DepositsApi = tslib_1.__importStar(require("./api/deposits-api")); +exports.IlksApi = tslib_1.__importStar(require("./api/ilks-api")); +exports.LendingPoolApi = tslib_1.__importStar(require("./api/lending-pool-api")); +exports.LogsApi = tslib_1.__importStar(require("./api/logs-api")); +exports.OrdersApi = tslib_1.__importStar(require("./api/orders-api")); +exports.PermitApi = tslib_1.__importStar(require("./api/permit-api")); +exports.PointsApi = tslib_1.__importStar(require("./api/points-api")); +exports.PricesApi = tslib_1.__importStar(require("./api/prices-api")); +exports.StableCoinSystemApi = tslib_1.__importStar(require("./api/stable-coin-system-api")); +exports.StakingApi = tslib_1.__importStar(require("./api/staking-api")); +exports.SwapApi = tslib_1.__importStar(require("./api/swap-api")); +exports.VaultsApi = tslib_1.__importStar(require("./api/vaults-api")); +exports.WebsocketApi = tslib_1.__importStar(require("./api/websocket-api")); +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/service/api.js.map b/dist/service/api.js.map new file mode 100644 index 0000000..c680b52 --- /dev/null +++ b/dist/service/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/service/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAIH,0EAAkD;AAClD,4EAAoD;AACpD,wEAAgD;AAChD,4EAAoD;AACpD,0EAAkD;AAClD,kEAA0C;AAC1C,iFAAyD;AACzD,kEAA0C;AAC1C,sEAA8C;AAC9C,sEAA8C;AAC9C,sEAA8C;AAC9C,sEAA8C;AAC9C,4FAAoE;AACpE,wEAAgD;AAChD,kEAA0C;AAC1C,sEAA8C;AAC9C,4EAAoD"} \ No newline at end of file diff --git a/dist/service/api/accounts-api.d.ts b/dist/service/api/accounts-api.d.ts new file mode 100644 index 0000000..3451bfe --- /dev/null +++ b/dist/service/api/accounts-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Account } from '../model'; +/** + * AccountsApi - axios parameter creator + * @export + */ +export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress: (address: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AccountsApi - functional programming interface + * @export + */ +export declare const AccountsApiFp: (configuration?: Configuration) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AccountsApi - factory interface + * @export + */ +export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AccountsApi - interface + * @export + * @interface AccountsApi + */ +export interface AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApiInterface + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AccountsApi - object-oriented interface + * @export + * @class AccountsApi + * @extends {BaseAPI} + */ +export declare class AccountsApi extends BaseAPI implements AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApi + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=accounts-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/accounts-api.d.ts.map b/dist/service/api/accounts-api.d.ts.map new file mode 100644 index 0000000..522f25b --- /dev/null +++ b/dist/service/api/accounts-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"accounts-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/accounts-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mBAA6B,aAAa;IAE3E;;;;;;OAMG;mCACkC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4B9G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAA4B,aAAa;IAG3D;;;;;;OAMG;iCACgC,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;CAOhK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG3G;;;;;;OAMG;iCAC0B,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC;CAInG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;OAOG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAEhG;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;;OAOG;IACI,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9E"} \ No newline at end of file diff --git a/dist/service/api/accounts-api.js b/dist/service/api/accounts-api.js new file mode 100644 index 0000000..8b09774 --- /dev/null +++ b/dist/service/api/accounts-api.js @@ -0,0 +1,131 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * AccountsApi - axios parameter creator + * @export + */ +const AccountsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress: (address_1, ...args_1) => tslib_1.__awaiter(this, [address_1, ...args_1], void 0, function* (address, options = {}) { + // verify required parameter 'address' is not null or undefined + (0, common_1.assertParamExists)('getAccountByAddress', 'address', address); + const localVarPath = `/v2/accounts/{address}` + .replace(`{${"address"}}`, encodeURIComponent(String(address))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; +/** + * AccountsApi - functional programming interface + * @export + */ +const AccountsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration); + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccountByAddress(address, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getAccountByAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.AccountsApiFp = AccountsApiFp; +/** + * AccountsApi - factory interface + * @export + */ +const AccountsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.AccountsApiFp)(configuration); + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address, options) { + return localVarFp.getAccountByAddress(address, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.AccountsApiFactory = AccountsApiFactory; +/** + * AccountsApi - object-oriented interface + * @export + * @class AccountsApi + * @extends {BaseAPI} + */ +class AccountsApi extends base_1.BaseAPI { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApi + */ + getAccountByAddress(address, options) { + return (0, exports.AccountsApiFp)(this.configuration).getAccountByAddress(address, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.AccountsApi = AccountsApi; +//# sourceMappingURL=accounts-api.js.map \ No newline at end of file diff --git a/dist/service/api/accounts-api.js.map b/dist/service/api/accounts-api.js.map new file mode 100644 index 0000000..5c409bc --- /dev/null +++ b/dist/service/api/accounts-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"accounts-api.js","sourceRoot":"","sources":["../../../src/service/api/accounts-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,4BAA4B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACH;;;;;;WAMG;QACH,mBAAmB,EAAE,uBAAmF,EAAE,oEAA9E,OAAe,EAAE,UAAiC,EAAE;YAC5E,+DAA+D;YAC/D,IAAA,0BAAiB,EAAC,qBAAqB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YAC5D,MAAM,YAAY,GAAG,wBAAwB;iBACxC,OAAO,CAAC,IAAI,SAAS,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACpE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,E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E,KAAqB;IAC/G,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,aAAa,CAAC,CAAA;IAC/C,OAAO;QACH;;;;;;WAMG;QACH,mBAAmB,CAAC,OAAe,EAAE,OAA+B;YAChE,OAAO,UAAU,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACxG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,kBAAkB,sBAc7B;AAoBF;;;;;GAKG;AACH,MAAa,WAAY,SAAQ,cAAO;IACpC;;;;;;;OAOG;IACI,mBAAmB,CAAC,OAAe,EAAE,OAA+B;QACvE,OAAO,IAAA,qBAAa,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ;AAZD,kCAYC"} \ No newline at end of file diff --git a/dist/service/api/addresses-api.d.ts b/dist/service/api/addresses-api.d.ts new file mode 100644 index 0000000..eb8ee61 --- /dev/null +++ b/dist/service/api/addresses-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AddressResponse } from '../model'; +/** + * AddressesApi - axios parameter creator + * @export + */ +export declare const AddressesApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses: (format?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AddressesApi - functional programming interface + * @export + */ +export declare const AddressesApiFp: (configuration?: Configuration) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AddressesApi - factory interface + * @export + */ +export declare const AddressesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AddressesApi - interface + * @export + * @interface AddressesApi + */ +export interface AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApiInterface + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AddressesApi - object-oriented interface + * @export + * @class AddressesApi + * @extends {BaseAPI} + */ +export declare class AddressesApi extends BaseAPI implements AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=addresses-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/addresses-api.d.ts.map b/dist/service/api/addresses-api.d.ts.map new file mode 100644 index 0000000..5e47fc6 --- /dev/null +++ b/dist/service/api/addresses-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"addresses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 No newline at end of file diff --git a/dist/service/api/addresses-api.js b/dist/service/api/addresses-api.js new file mode 100644 index 0000000..a5a4220 --- /dev/null +++ b/dist/service/api/addresses-api.js @@ -0,0 +1,131 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressesApi = exports.AddressesApiFactory = exports.AddressesApiFp = exports.AddressesApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * AddressesApi - axios parameter creator + * @export + */ +const AddressesApiAxiosParamCreator = function (configuration) { + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses: (format_1, ...args_1) => tslib_1.__awaiter(this, [format_1, ...args_1], void 0, function* (format, options = {}) { + const localVarPath = `/v2/addresses`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; +/** + * AddressesApi - functional programming interface + * @export + */ +const AddressesApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.AddressesApiAxiosParamCreator)(configuration); + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllAddresses(format, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AddressesApi.getAllAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.AddressesApiFp = AddressesApiFp; +/** + * AddressesApi - factory interface + * @export + */ +const AddressesApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.AddressesApiFp)(configuration); + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format, options) { + return localVarFp.getAllAddresses(format, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.AddressesApiFactory = AddressesApiFactory; +/** + * AddressesApi - object-oriented interface + * @export + * @class AddressesApi + * @extends {BaseAPI} + */ +class AddressesApi extends base_1.BaseAPI { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + getAllAddresses(format, options) { + return (0, exports.AddressesApiFp)(this.configuration).getAllAddresses(format, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.AddressesApi = AddressesApi; +//# sourceMappingURL=addresses-api.js.map \ No newline at end of file diff --git a/dist/service/api/addresses-api.js.map b/dist/service/api/addresses-api.js.map new file mode 100644 index 0000000..1476fcb --- /dev/null +++ b/dist/service/api/addresses-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"addresses-api.js","sourceRoot":"","sources":["../../../src/service/api/addresses-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;;WAMG;QACH,eAAe,EAAE,sBAAmF,EAAE,mEAA9E,MAAe,EAAE,UAAiC,EAAE;YACxE,MAAM,YAAY,GAAG,eAAe,CAAC;YACrC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACvB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAC9C,CAAC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE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B;IAChH,MAAM,UAAU,GAAG,IAAA,sBAAc,EAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;;WAMG;QACH,eAAe,CAAC,MAAe,EAAE,OAA+B;YAC5D,OAAO,UAAU,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACnG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,mBAAmB,uBAc9B;AAoBF;;;;;GAKG;AACH,MAAa,YAAa,SAAQ,cAAO;IACrC;;;;;;;OAOG;IACI,eAAe,CAAC,MAAe,EAAE,OAA+B;QACnE,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrI,CAAC;CACJ;AAZD,oCAYC"} \ No newline at end of file diff --git a/dist/service/api/borrows-api.d.ts b/dist/service/api/borrows-api.d.ts new file mode 100644 index 0000000..eb1f0da --- /dev/null +++ b/dist/service/api/borrows-api.d.ts @@ -0,0 +1,106 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { UserBorrowsResponse } from '../model'; +/** + * BorrowsApi - axios parameter creator + * @export + */ +export declare const BorrowsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * BorrowsApi - functional programming interface + * @export + */ +export declare const BorrowsApiFp: (configuration?: Configuration) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * BorrowsApi - factory interface + * @export + */ +export declare const BorrowsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * BorrowsApi - interface + * @export + * @interface BorrowsApi + */ +export interface BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * BorrowsApi - object-oriented interface + * @export + * @class BorrowsApi + * @extends {BaseAPI} + */ +export declare class BorrowsApi extends BaseAPI implements BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApi + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=borrows-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/borrows-api.d.ts.map b/dist/service/api/borrows-api.d.ts.map new file mode 100644 index 0000000..071e865 --- /dev/null +++ b/dist/service/api/borrows-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"borrows-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/borrows-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;;;;OASG;4BAC2B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyC1J,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;;;;OASG;0BACyB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAOxN,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;;;;OASG;0BACmB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC;CAI3J,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAExJ;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG1H"} \ No newline at end of file diff --git a/dist/service/api/borrows-api.js b/dist/service/api/borrows-api.js new file mode 100644 index 0000000..95d562c --- /dev/null +++ b/dist/service/api/borrows-api.js @@ -0,0 +1,152 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BorrowsApi = exports.BorrowsApiFactory = exports.BorrowsApiFp = exports.BorrowsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * BorrowsApi - axios parameter creator + * @export + */ +const BorrowsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/borrows`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.BorrowsApiAxiosParamCreator = BorrowsApiAxiosParamCreator; +/** + * BorrowsApi - functional programming interface + * @export + */ +const BorrowsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.BorrowsApiAxiosParamCreator)(configuration); + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BorrowsApi.getUserBorrows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.BorrowsApiFp = BorrowsApiFp; +/** + * BorrowsApi - factory interface + * @export + */ +const BorrowsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.BorrowsApiFp)(configuration); + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.BorrowsApiFactory = BorrowsApiFactory; +/** + * BorrowsApi - object-oriented interface + * @export + * @class BorrowsApi + * @extends {BaseAPI} + */ +class BorrowsApi extends base_1.BaseAPI { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApi + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return (0, exports.BorrowsApiFp)(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.BorrowsApi = BorrowsApi; +//# sourceMappingURL=borrows-api.js.map \ No newline at end of file diff --git a/dist/service/api/borrows-api.js.map b/dist/service/api/borrows-api.js.map new file mode 100644 index 0000000..a05c715 --- /dev/null +++ b/dist/service/api/borrows-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"borrows-api.js","sourceRoot":"","sources":["../../../src/service/api/borrows-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;;;;WASG;QACH,cAAc,EAAE,kDAAoI,EAAE,+FAA/H,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,UAAiC,EAAE;YACxH,MAAM,YAAY,GAAG,yBAAyB,CAAC;YAC/C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,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AACH,MAAa,UAAW,SAAQ,cAAO;IACnC;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACnH,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxJ,CAAC;CACJ;AAfD,gCAeC"} \ No newline at end of file diff --git a/dist/service/api/collector-api.d.ts b/dist/service/api/collector-api.d.ts new file mode 100644 index 0000000..1538f02 --- /dev/null +++ b/dist/service/api/collector-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Stats } from '../model'; +/** + * CollectorApi - axios parameter creator + * @export + */ +export declare const CollectorApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * CollectorApi - functional programming interface + * @export + */ +export declare const CollectorApiFp: (configuration?: Configuration) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * CollectorApi - factory interface + * @export + */ +export declare const CollectorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * CollectorApi - interface + * @export + * @interface CollectorApi + */ +export interface CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * CollectorApi - object-oriented interface + * @export + * @class CollectorApi + * @extends {BaseAPI} + */ +export declare class CollectorApi extends BaseAPI implements CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApi + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=collector-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/collector-api.d.ts.map b/dist/service/api/collector-api.d.ts.map new file mode 100644 index 0000000..4a882b4 --- /dev/null +++ b/dist/service/api/collector-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"collector-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/collector-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;OAKG;iCAC+B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyB1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA4B,aAAa;IAG5D;;;;;OAKG;+BAC8B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC;CAO1I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG5G;;;;;OAKG;+BACwB,qBAAqB,GAAG,YAAY,CAAC,KAAK,CAAC;CAI7E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;CAE1E;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;OAMG;IACI,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG1D"} \ No newline at end of file diff --git a/dist/service/api/collector-api.js b/dist/service/api/collector-api.js new file mode 100644 index 0000000..92922eb --- /dev/null +++ b/dist/service/api/collector-api.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CollectorApi = exports.CollectorApiFactory = exports.CollectorApiFp = exports.CollectorApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * CollectorApi - axios parameter creator + * @export + */ +const CollectorApiAxiosParamCreator = function (configuration) { + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/stats`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.CollectorApiAxiosParamCreator = CollectorApiAxiosParamCreator; +/** + * CollectorApi - functional programming interface + * @export + */ +const CollectorApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.CollectorApiAxiosParamCreator)(configuration); + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollectorApi.getCollectorData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.CollectorApiFp = CollectorApiFp; +/** + * CollectorApi - factory interface + * @export + */ +const CollectorApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.CollectorApiFp)(configuration); + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.CollectorApiFactory = CollectorApiFactory; +/** + * CollectorApi - object-oriented interface + * @export + * @class CollectorApi + * @extends {BaseAPI} + */ +class CollectorApi extends base_1.BaseAPI { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApi + */ + getCollectorData(options) { + return (0, exports.CollectorApiFp)(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.CollectorApi = CollectorApi; +//# sourceMappingURL=collector-api.js.map \ No newline at end of file diff --git a/dist/service/api/collector-api.js.map b/dist/service/api/collector-api.js.map new file mode 100644 index 0000000..ab71ed0 --- /dev/null +++ b/dist/service/api/collector-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"collector-api.js","sourceRoot":"","sources":["../../../src/service/api/collector-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YACxD,MAAM,YAAY,GAAG,WAAW,CAAC;YACjC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,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iBAAiB,EAAE,eAAW,EAAE,gBAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB;AAEF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAChH,MAAM,UAAU,GAAG,IAAA,sBAAc,EAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,CAAC,OAA+B;YAC5C,OAAO,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,mBAAmB,uBAa9B;AAmBF;;;;;GAKG;AACH,MAAa,YAAa,SAAQ,cAAO;IACrC;;;;;;OAMG;IACI,gBAAgB,CAAC,OAA+B;QACnD,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9H,CAAC;CACJ;AAXD,oCAWC"} \ No newline at end of file diff --git a/dist/service/api/deposits-api.d.ts b/dist/service/api/deposits-api.d.ts new file mode 100644 index 0000000..dda61e5 --- /dev/null +++ b/dist/service/api/deposits-api.d.ts @@ -0,0 +1,106 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { UserDepositsResponse } from '../model'; +/** + * DepositsApi - axios parameter creator + * @export + */ +export declare const DepositsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * DepositsApi - functional programming interface + * @export + */ +export declare const DepositsApiFp: (configuration?: Configuration) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * DepositsApi - factory interface + * @export + */ +export declare const DepositsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * DepositsApi - interface + * @export + * @interface DepositsApi + */ +export interface DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * DepositsApi - object-oriented interface + * @export + * @class DepositsApi + * @extends {BaseAPI} + */ +export declare class DepositsApi extends BaseAPI implements DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApi + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=deposits-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/deposits-api.d.ts.map b/dist/service/api/deposits-api.d.ts.map new file mode 100644 index 0000000..1aeeb4e --- /dev/null +++ b/dist/service/api/deposits-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deposits-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/deposits-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mBAA6B,aAAa;IAE3E;;;;;;;;;OASG;6BAC4B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyC3J,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAA4B,aAAa;IAG3D;;;;;;;;;OASG;2BAC0B,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAO1N,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG3G;;;;;;;;;OASG;2BACoB,MAAM,YAAY,MAAM,WAAW,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAI7J,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAE1J;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3H"} \ No newline at end of file diff --git a/dist/service/api/deposits-api.js b/dist/service/api/deposits-api.js new file mode 100644 index 0000000..36d6d88 --- /dev/null +++ b/dist/service/api/deposits-api.js @@ -0,0 +1,152 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DepositsApi = exports.DepositsApiFactory = exports.DepositsApiFp = exports.DepositsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * DepositsApi - axios parameter creator + * @export + */ +const DepositsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/deposits`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.DepositsApiAxiosParamCreator = DepositsApiAxiosParamCreator; +/** + * DepositsApi - functional programming interface + * @export + */ +const DepositsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.DepositsApiAxiosParamCreator)(configuration); + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DepositsApi.getUserDeposits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.DepositsApiFp = DepositsApiFp; +/** + * DepositsApi - factory interface + * @export + */ +const DepositsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.DepositsApiFp)(configuration); + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.DepositsApiFactory = DepositsApiFactory; +/** + * DepositsApi - object-oriented interface + * @export + * @class DepositsApi + * @extends {BaseAPI} + */ +class DepositsApi extends base_1.BaseAPI { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApi + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return (0, exports.DepositsApiFp)(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.DepositsApi = DepositsApi; +//# sourceMappingURL=deposits-api.js.map \ No newline at end of file diff --git a/dist/service/api/deposits-api.js.map b/dist/service/api/deposits-api.js.map new file mode 100644 index 0000000..5ed8508 --- /dev/null +++ b/dist/service/api/deposits-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposits-api.js","sourceRoot":"","sources":["../../../src/service/api/deposits-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,4BAA4B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACH;;;;;;;;;WASG;QACH,eAAe,EAAE,kDAAoI,EAAE,+FAA/H,IAAa,EAAE,OAAgB,EAAE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O,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACzH,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAjBW,QAAA,kBAAkB,sBAiB7B;AAuBF;;;;;GAKG;AACH,MAAa,WAAY,SAAQ,cAAO;IACpC;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACpH,OAAO,IAAA,qBAAa,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1J,CAAC;CACJ;AAfD,kCAeC"} \ No newline at end of file diff --git a/dist/service/api/ilks-api.d.ts b/dist/service/api/ilks-api.d.ts new file mode 100644 index 0000000..354c0a8 --- /dev/null +++ b/dist/service/api/ilks-api.d.ts @@ -0,0 +1,129 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Ilk } from '../model'; +import type { IlksResponse } from '../model'; +/** + * IlksApi - axios parameter creator + * @export + */ +export declare const IlksApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * IlksApi - functional programming interface + * @export + */ +export declare const IlksApiFp: (configuration?: Configuration) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * IlksApi - factory interface + * @export + */ +export declare const IlksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * IlksApi - interface + * @export + * @interface IlksApi + */ +export interface IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * IlksApi - object-oriented interface + * @export + * @class IlksApi + * @extends {BaseAPI} + */ +export declare class IlksApi extends BaseAPI implements IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=ilks-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/ilks-api.d.ts.map b/dist/service/api/ilks-api.d.ts.map new file mode 100644 index 0000000..673b848 --- /dev/null +++ b/dist/service/api/ilks-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/ilks-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;OAKG;2BACyB,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAwB7E;;;;;;OAMG;yBACwB,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4BpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;OAKG;yBACwB,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;IAMpI;;;;;;OAMG;uBACsB,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC;CAOlJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;OAKG;yBACkB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;IAGvE;;;;;;OAMG;uBACgB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,GAAG,CAAC;CAIrF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAExE;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;CAElF;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;OAMG;IACI,UAAU,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAIjD;;;;;;;OAOG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGpE"} \ No newline at end of file diff --git a/dist/service/api/ilks-api.js b/dist/service/api/ilks-api.js new file mode 100644 index 0000000..d5be307 --- /dev/null +++ b/dist/service/api/ilks-api.js @@ -0,0 +1,190 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IlksApi = exports.IlksApiFactory = exports.IlksApiFp = exports.IlksApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * IlksApi - axios parameter creator + * @export + */ +const IlksApiAxiosParamCreator = function (configuration) { + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ilks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name_1, ...args_1) => tslib_1.__awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getIlkByName', 'name', name); + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.IlksApiAxiosParamCreator = IlksApiAxiosParamCreator; +/** + * IlksApi - functional programming interface + * @export + */ +const IlksApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.IlksApiAxiosParamCreator)(configuration); + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IlksApi.getAllIlks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IlksApi.getIlkByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.IlksApiFp = IlksApiFp; +/** + * IlksApi - factory interface + * @export + */ +const IlksApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.IlksApiFp)(configuration); + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.IlksApiFactory = IlksApiFactory; +/** + * IlksApi - object-oriented interface + * @export + * @class IlksApi + * @extends {BaseAPI} + */ +class IlksApi extends base_1.BaseAPI { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getAllIlks(options) { + return (0, exports.IlksApiFp)(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + getIlkByName(name, options) { + return (0, exports.IlksApiFp)(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.IlksApi = IlksApi; +//# sourceMappingURL=ilks-api.js.map \ No newline at end of file diff --git a/dist/service/api/ilks-api.js.map b/dist/service/api/ilks-api.js.map new file mode 100644 index 0000000..8fe3ed0 --- /dev/null +++ b/dist/service/api/ilks-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-api.js","sourceRoot":"","sources":["../../../src/service/api/ilks-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAKtH;;;GAGG;AACI,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;WAKG;QACH,UAAU,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YAClD,MAAM,YAAY,GAAG,UAAU,CAAC;YAChC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,IAAI,sBAAsB,GAAG,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3F,sBAAsB,CAAC,OAAO,iDAAO,uBAAuB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AO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ;AAvBD,0BAuBC"} \ No newline at end of file diff --git a/dist/service/api/lending-pool-api.d.ts b/dist/service/api/lending-pool-api.d.ts new file mode 100644 index 0000000..458735b --- /dev/null +++ b/dist/service/api/lending-pool-api.d.ts @@ -0,0 +1,427 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { FormattedReserveData } from '../model'; +import type { LendingpoolBorrowTxRequest } from '../model'; +import type { LendingpoolBorrowTxResponse } from '../model'; +import type { LendingpoolDepositTxRequest } from '../model'; +import type { LendingpoolDepositTxResponse } from '../model'; +import type { LendingpoolRepayTxRequest } from '../model'; +import type { LendingpoolRepayTxResponse } from '../model'; +import type { LendingpoolUseAssetAsCollateralTxRequest } from '../model'; +import type { LendingpoolUseAssetAsCollateralTxResponse } from '../model'; +import type { LendingpoolWithdrawTxRequest } from '../model'; +import type { LendingpoolWithdrawTxResponse } from '../model'; +import type { UserBorrowsResponse } from '../model'; +import type { UserDepositsResponse } from '../model'; +/** + * LendingPoolApi - axios parameter creator + * @export + */ +export declare const LendingPoolApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow: (lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit: (lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay: (lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw: (lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset: (asset?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral: (lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LendingPoolApi - functional programming interface + * @export + */ +export declare const LendingPoolApiFp: (configuration?: Configuration) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LendingPoolApi - factory interface + * @export + */ +export declare const LendingPoolApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LendingPoolApi - interface + * @export + * @interface LendingPoolApi + */ +export interface LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LendingPoolApi - object-oriented interface + * @export + * @class LendingPoolApi + * @extends {BaseAPI} + */ +export declare class LendingPoolApi extends BaseAPI implements LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=lending-pool-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/lending-pool-api.d.ts.map b/dist/service/api/lending-pool-api.d.ts.map new file mode 100644 index 0000000..a4b9ceb --- /dev/null +++ b/dist/service/api/lending-pool-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lending-pool-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/lending-pool-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAC;AAEzE,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;AAE1E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,M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5H;;;;;;;OAOG;IACI,uBAAuB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI9E;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIvH;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIxH;;;;;;;OAOG;IACI,6BAA6B,CAAC,wCAAwC,EAAE,wCAAwC,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3J"} \ No newline at end of file diff --git a/dist/service/api/lending-pool-api.js b/dist/service/api/lending-pool-api.js new file mode 100644 index 0000000..22accb3 --- /dev/null +++ b/dist/service/api/lending-pool-api.js @@ -0,0 +1,640 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LendingPoolApi = exports.LendingPoolApiFactory = exports.LendingPoolApiFp = exports.LendingPoolApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * LendingPoolApi - axios parameter creator + * @export + */ +const LendingPoolApiAxiosParamCreator = function (configuration) { + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow: (lendingpoolBorrowTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [lendingpoolBorrowTxRequest_1, ...args_1], void 0, function* (lendingpoolBorrowTxRequest, options = {}) { + // verify required parameter 'lendingpoolBorrowTxRequest' is not null or undefined + (0, common_1.assertParamExists)('createLendingPoolBorrow', 'lendingpoolBorrowTxRequest', lendingpoolBorrowTxRequest); + const localVarPath = `/v2/lendingpool/tx/borrow`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lendingpoolBorrowTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit: (lendingpoolDepositTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [lendingpoolDepositTxRequest_1, ...args_1], void 0, function* (lendingpoolDepositTxRequest, options = {}) { + // verify required parameter 'lendingpoolDepositTxRequest' is not null or undefined + (0, common_1.assertParamExists)('createLendingPoolDeposit', 'lendingpoolDepositTxRequest', lendingpoolDepositTxRequest); + const localVarPath = `/v2/lendingpool/tx/deposit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lendingpoolDepositTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay: (lendingpoolRepayTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [lendingpoolRepayTxRequest_1, ...args_1], void 0, function* (lendingpoolRepayTxRequest, options = {}) { + // verify required parameter 'lendingpoolRepayTxRequest' is not null or undefined + (0, common_1.assertParamExists)('createLendingPoolRepay', 'lendingpoolRepayTxRequest', lendingpoolRepayTxRequest); + const localVarPath = `/v2/lendingpool/tx/repay`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lendingpoolRepayTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw: (lendingpoolWithdrawTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [lendingpoolWithdrawTxRequest_1, ...args_1], void 0, function* (lendingpoolWithdrawTxRequest, options = {}) { + // verify required parameter 'lendingpoolWithdrawTxRequest' is not null or undefined + (0, common_1.assertParamExists)('createLendingPoolWithdraw', 'lendingpoolWithdrawTxRequest', lendingpoolWithdrawTxRequest); + const localVarPath = `/v2/lendingpool/tx/withdraw`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lendingpoolWithdrawTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset: (asset_1, ...args_1) => tslib_1.__awaiter(this, [asset_1, ...args_1], void 0, function* (asset, options = {}) { + const localVarPath = `/v2/lendingpool/reserves`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (asset !== undefined) { + localVarQueryParameter['asset'] = asset; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/borrows`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: (user_1, reserve_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [user_1, reserve_1, cursor_1, limit_1, ...args_1], void 0, function* (user, reserve, cursor, limit, options = {}) { + const localVarPath = `/v2/lendingpool/deposits`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral: (lendingpoolUseAssetAsCollateralTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [lendingpoolUseAssetAsCollateralTxRequest_1, ...args_1], void 0, function* (lendingpoolUseAssetAsCollateralTxRequest, options = {}) { + // verify required parameter 'lendingpoolUseAssetAsCollateralTxRequest' is not null or undefined + (0, common_1.assertParamExists)('setLendingPoolAssetCollateral', 'lendingpoolUseAssetAsCollateralTxRequest', lendingpoolUseAssetAsCollateralTxRequest); + const localVarPath = `/v2/lendingpool/tx/useassetascollateral`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lendingpoolUseAssetAsCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.LendingPoolApiAxiosParamCreator = LendingPoolApiAxiosParamCreator; +/** + * LendingPoolApi - functional programming interface + * @export + */ +const LendingPoolApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.LendingPoolApiAxiosParamCreator)(configuration); + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.createLendingPoolBorrow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolDeposit(lendingpoolDepositTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.createLendingPoolDeposit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolRepay(lendingpoolRepayTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.createLendingPoolRepay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.createLendingPoolWithdraw']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.fetchReserveDataByAsset(asset, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.fetchReserveDataByAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.getUserBorrows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.getUserDeposits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LendingPoolApi.setLendingPoolAssetCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.LendingPoolApiFp = LendingPoolApiFp; +/** + * LendingPoolApi - factory interface + * @export + */ +const LendingPoolApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.LendingPoolApiFp)(configuration); + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return localVarFp.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return localVarFp.createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return localVarFp.createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return localVarFp.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset, options) { + return localVarFp.fetchReserveDataByAsset(asset, options).then((request) => request(axios, basePath)); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return localVarFp.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.LendingPoolApiFactory = LendingPoolApiFactory; +/** + * LendingPoolApi - object-oriented interface + * @export + * @class LendingPoolApi + * @extends {BaseAPI} + */ +class LendingPoolApi extends base_1.BaseAPI { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolRepay(lendingpoolRepayTxRequest, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + fetchReserveDataByAsset(asset, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).fetchReserveDataByAsset(asset, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserBorrows(user, reserve, cursor, limit, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + getUserDeposits(user, reserve, cursor, limit, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options) { + return (0, exports.LendingPoolApiFp)(this.configuration).setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.LendingPoolApi = LendingPoolApi; +//# sourceMappingURL=lending-pool-api.js.map \ No newline at end of file diff --git a/dist/service/api/lending-pool-api.js.map b/dist/service/api/lending-pool-api.js.map new file mode 100644 index 0000000..5f82dd5 --- /dev/null +++ b/dist/service/api/lending-pool-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lending-pool-api.js","sourceRoot":"","sources":["../../../src/service/api/lending-pool-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AA6BtH;;;GAGG;AACI,MAAM,+BAA+B,GAAG,UAAU,aAA6B;IAClF,OAAO;QACH;;;;;;WAMG;QACH,uBAAuB,EAAE,0CAA0H,EAAE,uFAArH,0BAAsD,EAAE,UAAiC,EAAE;YACvH,kFAAkF;YAClF,IAAA,0BAAiB,EAAC,yBAAyB,EAAE,4BAA4B,EAAE,0BAA0B,CAAC,CAAA;YACtG,MAAM,YAAY,GAAG,2BAA2B,CAAC;YACjD,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,MAAM,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS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AC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9I,CAAC;IAED;;;;;;;;;;OAUG;IACI,cAAc,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACnH,OAAO,IAAA,wBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5J,CAAC;IAED;;;;;;;;;;OAUG;IACI,eAAe,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QACpH,OAAO,IAAA,wBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7J,CAAC;IAED;;;;;;;OAOG;IACI,6BAA6B,CAAC,wCAAkF,EAAE,OAA+B;QACpJ,OAAO,IAAA,wBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,6BAA6B,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvL,CAAC;CACJ;AAtGD,wCAsGC"} \ No newline at end of file diff --git a/dist/service/api/logs-api.d.ts b/dist/service/api/logs-api.d.ts new file mode 100644 index 0000000..ed55376 --- /dev/null +++ b/dist/service/api/logs-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { EventDetailsResponse } from '../model'; +/** + * LogsApi - axios parameter creator + * @export + */ +export declare const LogsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash: (txHash: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LogsApi - functional programming interface + * @export + */ +export declare const LogsApiFp: (configuration?: Configuration) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LogsApi - factory interface + * @export + */ +export declare const LogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LogsApi - interface + * @export + * @interface LogsApi + */ +export interface LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApiInterface + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LogsApi - object-oriented interface + * @export + * @class LogsApi + * @extends {BaseAPI} + */ +export declare class LogsApi extends BaseAPI implements LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApi + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=logs-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/logs-api.d.ts.map b/dist/service/api/logs-api.d.ts.map new file mode 100644 index 0000000..52da189 --- /dev/null +++ b/dist/service/api/logs-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"logs-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/logs-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;;OAMG;uCACsC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA4BlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;;OAMG;qCACoC,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAOjL,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;;OAMG;qCAC8B,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAIpH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEjH;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;;OAOG;IACI,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGlF"} \ No newline at end of file diff --git a/dist/service/api/logs-api.js b/dist/service/api/logs-api.js new file mode 100644 index 0000000..c990e71 --- /dev/null +++ b/dist/service/api/logs-api.js @@ -0,0 +1,131 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * LogsApi - axios parameter creator + * @export + */ +const LogsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash: (txHash_1, ...args_1) => tslib_1.__awaiter(this, [txHash_1, ...args_1], void 0, function* (txHash, options = {}) { + // verify required parameter 'txHash' is not null or undefined + (0, common_1.assertParamExists)('getLogsByTransactionHash', 'txHash', txHash); + const localVarPath = `/v2/logs/{txHash}` + .replace(`{${"txHash"}}`, encodeURIComponent(String(txHash))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.LogsApiAxiosParamCreator = LogsApiAxiosParamCreator; +/** + * LogsApi - functional programming interface + * @export + */ +const LogsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.LogsApiAxiosParamCreator)(configuration); + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsByTransactionHash(txHash, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LogsApi.getLogsByTransactionHash']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.LogsApiFp = LogsApiFp; +/** + * LogsApi - factory interface + * @export + */ +const LogsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.LogsApiFp)(configuration); + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash, options) { + return localVarFp.getLogsByTransactionHash(txHash, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.LogsApiFactory = LogsApiFactory; +/** + * LogsApi - object-oriented interface + * @export + * @class LogsApi + * @extends {BaseAPI} + */ +class LogsApi extends base_1.BaseAPI { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApi + */ + getLogsByTransactionHash(txHash, options) { + return (0, exports.LogsApiFp)(this.configuration).getLogsByTransactionHash(txHash, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.LogsApi = LogsApi; +//# sourceMappingURL=logs-api.js.map \ No newline at end of file diff --git a/dist/service/api/logs-api.js.map b/dist/service/api/logs-api.js.map new file mode 100644 index 0000000..470ee91 --- /dev/null +++ b/dist/service/api/logs-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logs-api.js","sourceRoot":"","sources":["../../../src/service/api/logs-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OA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CAAC,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ;AAZD,0BAYC"} \ No newline at end of file diff --git a/dist/service/api/orders-api.d.ts b/dist/service/api/orders-api.d.ts new file mode 100644 index 0000000..e4880b6 --- /dev/null +++ b/dist/service/api/orders-api.d.ts @@ -0,0 +1,200 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { OrderResponse } from '../model'; +import type { TimeRange } from '../model'; +import type { UpdateOrderRequest } from '../model'; +/** + * OrdersApi - axios parameter creator + * @export + */ +export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders: (type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder: (updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * OrdersApi - functional programming interface + * @export + */ +export declare const OrdersApiFp: (configuration?: Configuration) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * OrdersApi - factory interface + * @export + */ +export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * OrdersApi - interface + * @export + * @interface OrdersApi + */ +export interface OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * OrdersApi - object-oriented interface + * @export + * @class OrdersApi + * @extends {BaseAPI} + */ +export declare class OrdersApi extends BaseAPI implements OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetUnfilledOrdersTypeEnum: { + readonly LIMIT: "limit"; + readonly DUTCH: "dutch"; +}; +export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; +/** + * @export + */ +export declare const GetUnfilledOrdersStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; +//# sourceMappingURL=orders-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/orders-api.d.ts.map b/dist/service/api/orders-api.d.ts.map new file mode 100644 index 0000000..5ab9738 --- /dev/null +++ b/dist/service/api/orders-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"orders-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/orders-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;;;;;;;;;;;OAeG;+BAC8B,yBAAyB,SAAS,MAAM,WAAW,2BAA2B,YAAY,MAAM,WAAW,MAAM,mBAAmB,SAAS,iBAAiB,SAAS,aAAa,SAAS,WAAW,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAsE3T;;;;;;OAMG;oCACmC,kBAAkB,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA8B3H,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD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AM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAEvT;;;;;;;OAOG;IACH,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;CAE3G;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;;;;;;;;;;;OAgBG;IACI,iBAAiB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/R;;;;;;;OAOG;IACI,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG3F;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/api/orders-api.js b/dist/service/api/orders-api.js new file mode 100644 index 0000000..aeff911 --- /dev/null +++ b/dist/service/api/orders-api.js @@ -0,0 +1,285 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetUnfilledOrdersStatusEnum = exports.GetUnfilledOrdersTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * OrdersApi - axios parameter creator + * @export + */ +const OrdersApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders: (type_1, hash_1, status_1, offerer_1, filler_1, decayStartTime_1, decayEndTime_1, deadline_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [type_1, hash_1, status_1, offerer_1, filler_1, decayStartTime_1, decayEndTime_1, deadline_1, cursor_1, limit_1, ...args_1], void 0, function* (type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options = {}) { + const localVarPath = `/v2/orders`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (offerer !== undefined) { + localVarQueryParameter['offerer'] = offerer; + } + if (filler !== undefined) { + localVarQueryParameter['filler'] = filler; + } + if (decayStartTime !== undefined) { + for (const [key, value] of Object.entries(decayStartTime)) { + localVarQueryParameter[key] = value; + } + } + if (decayEndTime !== undefined) { + for (const [key, value] of Object.entries(decayEndTime)) { + localVarQueryParameter[key] = value; + } + } + if (deadline !== undefined) { + for (const [key, value] of Object.entries(deadline)) { + localVarQueryParameter[key] = value; + } + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder: (updateOrderRequest_1, ...args_1) => tslib_1.__awaiter(this, [updateOrderRequest_1, ...args_1], void 0, function* (updateOrderRequest, options = {}) { + // verify required parameter 'updateOrderRequest' is not null or undefined + (0, common_1.assertParamExists)('syncOrder', 'updateOrderRequest', updateOrderRequest); + const localVarPath = `/v2/orders/sync`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrderRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator; +/** + * OrdersApi - functional programming interface + * @export + */ +const OrdersApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration); + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getUnfilledOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.syncOrder(updateOrderRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.syncOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.OrdersApiFp = OrdersApiFp; +/** + * OrdersApi - factory interface + * @export + */ +const OrdersApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.OrdersApiFp)(configuration); + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return localVarFp.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest, options) { + return localVarFp.syncOrder(updateOrderRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.OrdersApiFactory = OrdersApiFactory; +/** + * OrdersApi - object-oriented interface + * @export + * @class OrdersApi + * @extends {BaseAPI} + */ +class OrdersApi extends base_1.BaseAPI { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options) { + return (0, exports.OrdersApiFp)(this.configuration).getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + syncOrder(updateOrderRequest, options) { + return (0, exports.OrdersApiFp)(this.configuration).syncOrder(updateOrderRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.OrdersApi = OrdersApi; +/** + * @export + */ +exports.GetUnfilledOrdersTypeEnum = { + LIMIT: 'limit', + DUTCH: 'dutch' +}; +/** + * @export + */ +exports.GetUnfilledOrdersStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +//# sourceMappingURL=orders-api.js.map \ No newline at end of file diff --git a/dist/service/api/orders-api.js.map b/dist/service/api/orders-api.js.map new file mode 100644 index 0000000..33317d8 --- /dev/null +++ b/dist/service/api/orders-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"orders-api.js","sourceRoot":"","sources":["../../../src/service/api/orders-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;;;;;;;;;;WAeG;QACH,iBAAiB,EAAE,4HAAyS,EAAE,yKAApS,IAAgC,EAAE,IAAa,EAAE,MAAoC,EAAE,OAAgB,EAAE,MAAe,EAAE,cAA0B,EAAE,YAAwB,EAAE,QAAoB,EAAE,MAAe,EAAE,KAAc,EAAE,UAAiC,EAAE;YAChS,MAAM,YAAY,GAAG,YAAY,CAAC;YAClC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAA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,SAAS,CAAC,kBAAsC,EAAE,OAA+B;QACpF,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;CACJ;AAjCD,8BAiCC;AAED;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAEX;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC"} \ No newline at end of file diff --git a/dist/service/api/permit-api.d.ts b/dist/service/api/permit-api.d.ts new file mode 100644 index 0000000..260e20e --- /dev/null +++ b/dist/service/api/permit-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { PermitSingle } from '../model'; +/** + * PermitApi - axios parameter creator + * @export + */ +export declare const PermitApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit: (token: string, user: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PermitApi - functional programming interface + * @export + */ +export declare const PermitApiFp: (configuration?: Configuration) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PermitApi - factory interface + * @export + */ +export declare const PermitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PermitApi - interface + * @export + * @interface PermitApi + */ +export interface PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApiInterface + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PermitApi - object-oriented interface + * @export + * @class PermitApi + * @extends {BaseAPI} + */ +export declare class PermitApi extends BaseAPI implements PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApi + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=permit-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/permit-api.d.ts.map b/dist/service/api/permit-api.d.ts.map new file mode 100644 index 0000000..2d5dc40 --- /dev/null +++ b/dist/service/api/permit-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/permit-api.ts"],"names":[],"mappings":"AAEA;;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qBAAqB;CAG3F"} \ No newline at end of file diff --git a/dist/service/api/permit-api.js b/dist/service/api/permit-api.js new file mode 100644 index 0000000..e974ed7 --- /dev/null +++ b/dist/service/api/permit-api.js @@ -0,0 +1,142 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermitApi = exports.PermitApiFactory = exports.PermitApiFp = exports.PermitApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * PermitApi - axios parameter creator + * @export + */ +const PermitApiAxiosParamCreator = function (configuration) { + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit: (token_1, user_1, ...args_1) => tslib_1.__awaiter(this, [token_1, user_1, ...args_1], void 0, function* (token, user, options = {}) { + // verify required parameter 'token' is not null or undefined + (0, common_1.assertParamExists)('getSingleTokenPermit', 'token', token); + // verify required parameter 'user' is not null or undefined + (0, common_1.assertParamExists)('getSingleTokenPermit', 'user', user); + const localVarPath = `/v2/permit/single`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.PermitApiAxiosParamCreator = PermitApiAxiosParamCreator; +/** + * PermitApi - functional programming interface + * @export + */ +const PermitApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.PermitApiAxiosParamCreator)(configuration); + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token, user, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSingleTokenPermit(token, user, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PermitApi.getSingleTokenPermit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.PermitApiFp = PermitApiFp; +/** + * PermitApi - factory interface + * @export + */ +const PermitApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.PermitApiFp)(configuration); + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token, user, options) { + return localVarFp.getSingleTokenPermit(token, user, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.PermitApiFactory = PermitApiFactory; +/** + * PermitApi - object-oriented interface + * @export + * @class PermitApi + * @extends {BaseAPI} + */ +class PermitApi extends base_1.BaseAPI { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApi + */ + getSingleTokenPermit(token, user, options) { + return (0, exports.PermitApiFp)(this.configuration).getSingleTokenPermit(token, user, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.PermitApi = PermitApi; +//# sourceMappingURL=permit-api.js.map \ No newline at end of file diff --git a/dist/service/api/permit-api.js.map b/dist/service/api/permit-api.js.map new file mode 100644 index 0000000..310f2ce --- /dev/null +++ b/dist/service/api/permit-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-api.js","sourceRoot":"","sources":["../../../src/service/api/permit-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;;WAOG;QACH,oBAAoB,EAAE,6BAA+F,EAAE,0EAA1F,KAAa,EAAE,IAAY,EAAE,UAAiC,EAAE;YACzF,6DAA6D;YAC7D,IAAA,0BAAiB,EAAC,sBAAsB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;YACzD,4DAA4D;YAC5D,IAAA,0BAAiB,EAAC,sBAAsB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;YACvD,MAAM,YAAY,GAAG,mBAAmB,CAAC;YACzC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAA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AE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5I,CAAC;CACJ;AAbD,8BAaC"} \ No newline at end of file diff --git a/dist/service/api/points-api.d.ts b/dist/service/api/points-api.d.ts new file mode 100644 index 0000000..e4a11d3 --- /dev/null +++ b/dist/service/api/points-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Scoreboard } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export declare const PointsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export declare const PointsApiFp: (configuration?: Configuration) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PointsApi - factory interface + * @export + */ +export declare const PointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export declare class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getScoreboard(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=points-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/points-api.d.ts.map b/dist/service/api/points-api.d.ts.map new file mode 100644 index 0000000..c0d9bd3 --- /dev/null +++ b/dist/service/api/points-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/points-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;8BAC4B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBvF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;4BAC2B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,UAAU,CAAC,CAAC;CAO5I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;4BACqB,qBAAqB,GAAG,YAAY,CAAC,UAAU,CAAC;CAI/E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;CAE5E;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,aAAa,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGvD"} \ No newline at end of file diff --git a/dist/service/api/points-api.js b/dist/service/api/points-api.js new file mode 100644 index 0000000..ab29288 --- /dev/null +++ b/dist/service/api/points-api.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PointsApi = exports.PointsApiFactory = exports.PointsApiFp = exports.PointsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * PointsApi - axios parameter creator + * @export + */ +const PointsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/points/scoreboard`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.PointsApiAxiosParamCreator = PointsApiAxiosParamCreator; +/** + * PointsApi - functional programming interface + * @export + */ +const PointsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.PointsApiAxiosParamCreator)(configuration); + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getScoreboard(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PointsApi.getScoreboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.PointsApiFp = PointsApiFp; +/** + * PointsApi - factory interface + * @export + */ +const PointsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.PointsApiFp)(configuration); + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options) { + return localVarFp.getScoreboard(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.PointsApiFactory = PointsApiFactory; +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +class PointsApi extends base_1.BaseAPI { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getScoreboard(options) { + return (0, exports.PointsApiFp)(this.configuration).getScoreboard(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.PointsApi = PointsApi; +//# sourceMappingURL=points-api.js.map \ No newline at end of file diff --git a/dist/service/api/points-api.js.map b/dist/service/api/points-api.js.map new file mode 100644 index 0000000..7c8a3ca --- /dev/null +++ b/dist/service/api/points-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.js","sourceRoot":"","sources":["../../../src/service/api/points-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,aAAa,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YACrD,MAAM,YAAY,GAAG,uBAAuB,CAAC;YAC7C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD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a,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;WAKG;QACH,aAAa,CAAC,OAA+B;YACzC,OAAO,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACzF,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AAmBF;;;;;GAKG;AACH,MAAa,SAAU,SAAQ,cAAO;IAClC;;;;;;OAMG;IACI,aAAa,CAAC,OAA+B;QAChD,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxH,CAAC;CACJ;AAXD,8BAWC"} \ No newline at end of file diff --git a/dist/service/api/prices-api.d.ts b/dist/service/api/prices-api.d.ts new file mode 100644 index 0000000..4d07b49 --- /dev/null +++ b/dist/service/api/prices-api.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { PriceListResponse } from '../model'; +/** + * PricesApi - axios parameter creator + * @export + */ +export declare const PricesApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices: (symbol?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PricesApi - functional programming interface + * @export + */ +export declare const PricesApiFp: (configuration?: Configuration) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PricesApi - factory interface + * @export + */ +export declare const PricesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PricesApi - interface + * @export + * @interface PricesApi + */ +export interface PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApiInterface + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PricesApi - object-oriented interface + * @export + * @class PricesApi + * @extends {BaseAPI} + */ +export declare class PricesApi extends BaseAPI implements PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApi + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=prices-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/prices-api.d.ts.map b/dist/service/api/prices-api.d.ts.map new file mode 100644 index 0000000..fb3d160 --- /dev/null +++ b/dist/service/api/prices-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prices-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/prices-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;;OAMG;0BACyB,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6BrG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;;OAMG;wBACuB,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAOjK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;;OAMG;wBACiB,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,iBAAiB,CAAC;CAIpG,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;OAOG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAEjG;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;;OAOG;IACI,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGrE"} \ No newline at end of file diff --git a/dist/service/api/prices-api.js b/dist/service/api/prices-api.js new file mode 100644 index 0000000..8908fe1 --- /dev/null +++ b/dist/service/api/prices-api.js @@ -0,0 +1,131 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricesApi = exports.PricesApiFactory = exports.PricesApiFp = exports.PricesApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * PricesApi - axios parameter creator + * @export + */ +const PricesApiAxiosParamCreator = function (configuration) { + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices: (symbol_1, ...args_1) => tslib_1.__awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + const localVarPath = `/v2/prices`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.PricesApiAxiosParamCreator = PricesApiAxiosParamCreator; +/** + * PricesApi - functional programming interface + * @export + */ +const PricesApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.PricesApiAxiosParamCreator)(configuration); + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.listPrices(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PricesApi.listPrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.PricesApiFp = PricesApiFp; +/** + * PricesApi - factory interface + * @export + */ +const PricesApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.PricesApiFp)(configuration); + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol, options) { + return localVarFp.listPrices(symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.PricesApiFactory = PricesApiFactory; +/** + * PricesApi - object-oriented interface + * @export + * @class PricesApi + * @extends {BaseAPI} + */ +class PricesApi extends base_1.BaseAPI { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApi + */ + listPrices(symbol, options) { + return (0, exports.PricesApiFp)(this.configuration).listPrices(symbol, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.PricesApi = PricesApi; +//# sourceMappingURL=prices-api.js.map \ No newline at end of file diff --git a/dist/service/api/prices-api.js.map b/dist/service/api/prices-api.js.map new file mode 100644 index 0000000..40fc5f7 --- /dev/null +++ b/dist/service/api/prices-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prices-api.js","sourceRoot":"","sources":["../../../src/service/api/prices-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,sBAAmF,EAAE,mEAA9E,MAAe,EAAE,UAAiC,EAAE;YACnE,MAAM,YAAY,GAAG,YAAY,CAAC;YAClC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACvB,sBAAsB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YAC9C,CAAC;YAID,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,IAAI,sBAAsB,GAAG,WAAW,IAAI,WAAW,CAAC,OAAO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;QACH;;;;;;WAMG;QACH,UAAU,CAAC,MAAe,EAAE,OAA+B;YACvD,OAAO,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC9F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AAoBF;;;;;GAKG;AACH,MAAa,SAAU,SAAQ,cAAO;IAClC;;;;;;;OAOG;IACI,UAAU,CAAC,MAAe,EAAE,OAA+B;QAC9D,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7H,CAAC;CACJ;AAZD,8BAYC"} \ No newline at end of file diff --git a/dist/service/api/stable-coin-system-api.d.ts b/dist/service/api/stable-coin-system-api.d.ts new file mode 100644 index 0000000..2ea2503 --- /dev/null +++ b/dist/service/api/stable-coin-system-api.d.ts @@ -0,0 +1,785 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { ChainActivity } from '../model'; +import type { Ilk } from '../model'; +import type { IlksResponse } from '../model'; +import type { StablecoinSystemBarkTxRequest } from '../model'; +import type { StablecoinSystemCreateVaultTxRequest } from '../model'; +import type { StablecoinSystemDepositCollateralTxRequest } from '../model'; +import type { StablecoinSystemGemexitTxRequest } from '../model'; +import type { StablecoinSystemMintZarTxRequest } from '../model'; +import type { StablecoinSystemRedoTxRequest } from '../model'; +import type { StablecoinSystemRepayZarTxRequest } from '../model'; +import type { StablecoinSystemTakeTxRequest } from '../model'; +import type { StablecoinSystemWithdrawCollateralTxRequest } from '../model'; +import type { StablecoinSystemZarexitTxRequest } from '../model'; +import type { StablecoinSystemZarjoinTxRequest } from '../model'; +import type { Stats } from '../model'; +import type { Vault } from '../model'; +import type { VaultEventsResponse } from '../model'; +import type { VaultsResponse } from '../model'; +/** + * StableCoinSystemApi - axios parameter creator + * @export + */ +export declare const StableCoinSystemApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction: (stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault: (stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral: (stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction: (stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction: (stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (options?: RawAxiosRequestConfig) => Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name: string, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction: (stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction: (stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction: (stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction: (stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction: (stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction: (stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * StableCoinSystemApi - functional programming interface + * @export + */ +export declare const StableCoinSystemApiFp: (configuration?: Configuration) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * StableCoinSystemApi - factory interface + * @export + */ +export declare const StableCoinSystemApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * StableCoinSystemApi - interface + * @export + * @interface StableCoinSystemApi + */ +export interface StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * StableCoinSystemApi - object-oriented interface + * @export + * @class StableCoinSystemApi + * @extends {BaseAPI} + */ +export declare class StableCoinSystemApi extends BaseAPI implements StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getAllIlks(options?: RawAxiosRequestConfig): Promise>; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getCollectorData(options?: RawAxiosRequestConfig): Promise>; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=stable-coin-system-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/stable-coin-system-api.d.ts.map b/dist/service/api/stable-coin-system-api.d.ts.map new file mode 100644 index 0000000..a0be426 --- /dev/null +++ b/dist/service/api/stable-coin-system-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stable-coin-system-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/stable-coin-system-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AAE3E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,KA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;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/api/stable-coin-system-api.js b/dist/service/api/stable-coin-system-api.js new file mode 100644 index 0000000..ca3916c --- /dev/null +++ b/dist/service/api/stable-coin-system-api.js @@ -0,0 +1,1200 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetVaultEventsByIdTypeEnum = exports.StableCoinSystemApi = exports.StableCoinSystemApiFactory = exports.StableCoinSystemApiFp = exports.StableCoinSystemApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * StableCoinSystemApi - axios parameter creator + * @export + */ +const StableCoinSystemApiAxiosParamCreator = function (configuration) { + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction: (stablecoinSystemZarjoinTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemZarjoinTxRequest_1, ...args_1], void 0, function* (stablecoinSystemZarjoinTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemZarjoinTxRequest' is not null or undefined + (0, common_1.assertParamExists)('approveAndJoinZarTransaction', 'stablecoinSystemZarjoinTxRequest', stablecoinSystemZarjoinTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarjoin`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemZarjoinTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault: (stablecoinSystemCreateVaultTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemCreateVaultTxRequest_1, ...args_1], void 0, function* (stablecoinSystemCreateVaultTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemCreateVaultTxRequest' is not null or undefined + (0, common_1.assertParamExists)('createStableCoinVault', 'stablecoinSystemCreateVaultTxRequest', stablecoinSystemCreateVaultTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/createvault`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemCreateVaultTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral: (stablecoinSystemDepositCollateralTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemDepositCollateralTxRequest_1, ...args_1], void 0, function* (stablecoinSystemDepositCollateralTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemDepositCollateralTxRequest' is not null or undefined + (0, common_1.assertParamExists)('depositStableCoinCollateral', 'stablecoinSystemDepositCollateralTxRequest', stablecoinSystemDepositCollateralTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/depositcollateral`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemDepositCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction: (stablecoinSystemGemexitTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemGemexitTxRequest_1, ...args_1], void 0, function* (stablecoinSystemGemexitTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemGemexitTxRequest' is not null or undefined + (0, common_1.assertParamExists)('exitGemTransaction', 'stablecoinSystemGemexitTxRequest', stablecoinSystemGemexitTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/gemexit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemGemexitTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction: (stablecoinSystemZarexitTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemZarexitTxRequest_1, ...args_1], void 0, function* (stablecoinSystemZarexitTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemZarexitTxRequest' is not null or undefined + (0, common_1.assertParamExists)('exitZarTransaction', 'stablecoinSystemZarexitTxRequest', stablecoinSystemZarexitTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarexit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemZarexitTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ilks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/stats`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: (name_1, ...args_1) => tslib_1.__awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getIlkByName', 'name', name); + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id_1, ...args_1) => tslib_1.__awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getVaultById', 'id', id); + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id_1, type_1, ...args_1) => tslib_1.__awaiter(this, [id_1, type_1, ...args_1], void 0, function* (id, type, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getVaultEventsById', 'id', id); + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner_1, ...args_1) => tslib_1.__awaiter(this, [owner_1, ...args_1], void 0, function* (owner, options = {}) { + const localVarPath = `/v2/vaults`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction: (stablecoinSystemBarkTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemBarkTxRequest_1, ...args_1], void 0, function* (stablecoinSystemBarkTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemBarkTxRequest' is not null or undefined + (0, common_1.assertParamExists)('liquidateVaultTransaction', 'stablecoinSystemBarkTxRequest', stablecoinSystemBarkTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/bark`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemBarkTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction: (stablecoinSystemMintZarTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemMintZarTxRequest_1, ...args_1], void 0, function* (stablecoinSystemMintZarTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemMintZarTxRequest' is not null or undefined + (0, common_1.assertParamExists)('mintZarTransaction', 'stablecoinSystemMintZarTxRequest', stablecoinSystemMintZarTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/mintzar`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemMintZarTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction: (stablecoinSystemRepayZarTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemRepayZarTxRequest_1, ...args_1], void 0, function* (stablecoinSystemRepayZarTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemRepayZarTxRequest' is not null or undefined + (0, common_1.assertParamExists)('repayZarTransaction', 'stablecoinSystemRepayZarTxRequest', stablecoinSystemRepayZarTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/repayzar`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemRepayZarTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction: (stablecoinSystemRedoTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemRedoTxRequest_1, ...args_1], void 0, function* (stablecoinSystemRedoTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemRedoTxRequest' is not null or undefined + (0, common_1.assertParamExists)('resetAuctionTransaction', 'stablecoinSystemRedoTxRequest', stablecoinSystemRedoTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/redo`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemRedoTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction: (stablecoinSystemTakeTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemTakeTxRequest_1, ...args_1], void 0, function* (stablecoinSystemTakeTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemTakeTxRequest' is not null or undefined + (0, common_1.assertParamExists)('takeAuctionTransaction', 'stablecoinSystemTakeTxRequest', stablecoinSystemTakeTxRequest); + const localVarPath = `/v2/stablecoinsystem/auctions/tx/take`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemTakeTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction: (stablecoinSystemWithdrawCollateralTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stablecoinSystemWithdrawCollateralTxRequest_1, ...args_1], void 0, function* (stablecoinSystemWithdrawCollateralTxRequest, options = {}) { + // verify required parameter 'stablecoinSystemWithdrawCollateralTxRequest' is not null or undefined + (0, common_1.assertParamExists)('withdrawCollateralTransaction', 'stablecoinSystemWithdrawCollateralTxRequest', stablecoinSystemWithdrawCollateralTxRequest); + const localVarPath = `/v2/stablecoinsystem/tx/withdrawcollateral`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stablecoinSystemWithdrawCollateralTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.StableCoinSystemApiAxiosParamCreator = StableCoinSystemApiAxiosParamCreator; +/** + * StableCoinSystemApi - functional programming interface + * @export + */ +const StableCoinSystemApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.StableCoinSystemApiAxiosParamCreator)(configuration); + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.approveAndJoinZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.createStableCoinVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.depositStableCoinCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.exitGemTransaction(stablecoinSystemGemexitTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.exitGemTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.exitZarTransaction(stablecoinSystemZarexitTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.exitZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getAllIlks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getCollectorData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getIlkByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getVaultById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getVaultEventsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.getVaultsByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.liquidateVaultTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.mintZarTransaction(stablecoinSystemMintZarTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.mintZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.repayZarTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.resetAuctionTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.takeAuctionTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StableCoinSystemApi.withdrawCollateralTransaction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.StableCoinSystemApiFp = StableCoinSystemApiFp; +/** + * StableCoinSystemApi - factory interface + * @export + */ +const StableCoinSystemApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.StableCoinSystemApiFp)(configuration); + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return localVarFp.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return localVarFp.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return localVarFp.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return localVarFp.exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return localVarFp.exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options) { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options) { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name, options) { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return localVarFp.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return localVarFp.mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return localVarFp.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return localVarFp.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return localVarFp.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return localVarFp.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.StableCoinSystemApiFactory = StableCoinSystemApiFactory; +/** + * StableCoinSystemApi - object-oriented interface + * @export + * @class StableCoinSystemApi + * @extends {BaseAPI} + */ +class StableCoinSystemApi extends base_1.BaseAPI { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getAllIlks(options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getCollectorData(options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getIlkByName(name, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultById(id, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultEventsById(id, type, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + getVaultsByOwner(owner, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options) { + return (0, exports.StableCoinSystemApiFp)(this.configuration).withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.StableCoinSystemApi = StableCoinSystemApi; +/** + * @export + */ +exports.GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=stable-coin-system-api.js.map \ No newline at end of file diff --git a/dist/service/api/stable-coin-system-api.js.map b/dist/service/api/stable-coin-system-api.js.map new file mode 100644 index 0000000..2770e87 --- /dev/null +++ b/dist/service/api/stable-coin-system-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stable-coin-system-api.js","sourceRoot":"","sources":["../../../src/service/api/stable-coin-system-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAA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,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1K,CAAC;IAED;;;;;;;OAOG;IACI,6BAA6B,CAAC,2CAAwF,EAAE,OAA+B;QAC1J,OAAO,IAAA,6BAAqB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,6BAA6B,CAAC,2CAA2C,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/L,CAAC;CACJ;AA3MD,kDA2MC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/service/api/staking-api.d.ts b/dist/service/api/staking-api.d.ts new file mode 100644 index 0000000..df4f36b --- /dev/null +++ b/dist/service/api/staking-api.d.ts @@ -0,0 +1,281 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { StakePlansResponse } from '../model'; +import type { StakingCollectRewardTxRequest } from '../model'; +import type { StakingCollectRewardTxResponse } from '../model'; +import type { StakingStakeTxRequest } from '../model'; +import type { StakingStakeTxResponse } from '../model'; +import type { StakingWithdrawTxRequest } from '../model'; +import type { StakingWithdrawTxResponse } from '../model'; +import type { UserStakesResponse } from '../model'; +/** + * StakingApi - axios parameter creator + * @export + */ +export declare const StakingApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward: (stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats: (user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract: (stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset: (stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * StakingApi - functional programming interface + * @export + */ +export declare const StakingApiFp: (configuration?: Configuration) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * StakingApi - factory interface + * @export + */ +export declare const StakingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * StakingApi - interface + * @export + * @interface StakingApi + */ +export interface StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +export declare class StakingApi extends BaseAPI implements StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getStakingPlans(options?: RawAxiosRequestConfig): Promise>; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=staking-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/staking-api.d.ts.map b/dist/service/api/staking-api.d.ts.map new file mode 100644 index 0000000..446b64d --- /dev/null +++ b/dist/service/api/staking-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/staking-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,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B,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI3G;;;;;;;OAOG;IACI,mBAAmB,CAAC,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGjH"} \ No newline at end of file diff --git a/dist/service/api/staking-api.js b/dist/service/api/staking-api.js new file mode 100644 index 0000000..3e00dca --- /dev/null +++ b/dist/service/api/staking-api.js @@ -0,0 +1,419 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StakingApi = exports.StakingApiFactory = exports.StakingApiFp = exports.StakingApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * StakingApi - axios parameter creator + * @export + */ +const StakingApiAxiosParamCreator = function (configuration) { + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward: (stakingCollectRewardTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stakingCollectRewardTxRequest_1, ...args_1], void 0, function* (stakingCollectRewardTxRequest, options = {}) { + // verify required parameter 'stakingCollectRewardTxRequest' is not null or undefined + (0, common_1.assertParamExists)('collectStakingReward', 'stakingCollectRewardTxRequest', stakingCollectRewardTxRequest); + const localVarPath = `/v2/staking/tx/collectreward`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stakingCollectRewardTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/staking/plans`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats: (user_1, address_1, active_1, cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [user_1, address_1, active_1, cursor_1, limit_1, ...args_1], void 0, function* (user, address, active, cursor, limit, options = {}) { + const localVarPath = `/v2/staking/stats`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + if (active !== undefined) { + localVarQueryParameter['active'] = active; + } + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract: (stakingStakeTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stakingStakeTxRequest_1, ...args_1], void 0, function* (stakingStakeTxRequest, options = {}) { + // verify required parameter 'stakingStakeTxRequest' is not null or undefined + (0, common_1.assertParamExists)('stakeToStakingContract', 'stakingStakeTxRequest', stakingStakeTxRequest); + const localVarPath = `/v2/staking/tx/stake`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stakingStakeTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset: (stakingWithdrawTxRequest_1, ...args_1) => tslib_1.__awaiter(this, [stakingWithdrawTxRequest_1, ...args_1], void 0, function* (stakingWithdrawTxRequest, options = {}) { + // verify required parameter 'stakingWithdrawTxRequest' is not null or undefined + (0, common_1.assertParamExists)('withdrawStakedAsset', 'stakingWithdrawTxRequest', stakingWithdrawTxRequest); + const localVarPath = `/v2/staking/tx/withdraw`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stakingWithdrawTxRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.StakingApiAxiosParamCreator = StakingApiAxiosParamCreator; +/** + * StakingApi - functional programming interface + * @export + */ +const StakingApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.StakingApiAxiosParamCreator)(configuration); + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.collectStakingReward(stakingCollectRewardTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StakingApi.collectStakingReward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getStakingPlans(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StakingApi.getStakingPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserStakingStats(user, address, active, cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StakingApi.getUserStakingStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.stakeToStakingContract(stakingStakeTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StakingApi.stakeToStakingContract']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.withdrawStakedAsset(stakingWithdrawTxRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StakingApi.withdrawStakedAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.StakingApiFp = StakingApiFp; +/** + * StakingApi - factory interface + * @export + */ +const StakingApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.StakingApiFp)(configuration); + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return localVarFp.collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options) { + return localVarFp.getStakingPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return localVarFp.getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return localVarFp.stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return localVarFp.withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.StakingApiFactory = StakingApiFactory; +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +class StakingApi extends base_1.BaseAPI { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + collectStakingReward(stakingCollectRewardTxRequest, options) { + return (0, exports.StakingApiFp)(this.configuration).collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getStakingPlans(options) { + return (0, exports.StakingApiFp)(this.configuration).getStakingPlans(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + getUserStakingStats(user, address, active, cursor, limit, options) { + return (0, exports.StakingApiFp)(this.configuration).getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + stakeToStakingContract(stakingStakeTxRequest, options) { + return (0, exports.StakingApiFp)(this.configuration).stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + withdrawStakedAsset(stakingWithdrawTxRequest, options) { + return (0, exports.StakingApiFp)(this.configuration).withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.StakingApi = StakingApi; +//# sourceMappingURL=staking-api.js.map \ No newline at end of file diff --git a/dist/service/api/staking-api.js.map b/dist/service/api/staking-api.js.map new file mode 100644 index 0000000..14b1c5e --- /dev/null +++ b/dist/service/api/staking-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-api.js","sourceRoot":"","sources":["../../../src/service/api/staking-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;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IACI,mBAAmB,CAAC,IAAa,EAAE,OAAgB,EAAE,MAAgB,EAAE,MAAe,EAAE,KAAc,EAAE,OAA+B;QAC1I,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrK,CAAC;IAED;;;;;;;OAOG;IACI,sBAAsB,CAAC,qBAA4C,EAAE,OAA+B;QACvG,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzJ,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CAAC,wBAAkD,EAAE,OAA+B;QAC1G,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzJ,CAAC;CACJ;AA/DD,gCA+DC"} \ No newline at end of file diff --git a/dist/service/api/swap-api.d.ts b/dist/service/api/swap-api.d.ts new file mode 100644 index 0000000..d4badf2 --- /dev/null +++ b/dist/service/api/swap-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { QuoteRequest } from '../model'; +import type { QuoteResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export declare const SwapApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote: (quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export declare const SwapApiFp: (configuration?: Configuration) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * SwapApi - factory interface + * @export + */ +export declare const SwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export declare class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=swap-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/swap-api.d.ts.map b/dist/service/api/swap-api.d.ts.map new file mode 100644 index 0000000..ac7761a --- /dev/null +++ b/dist/service/api/swap-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/swap-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mBAA6B,aAAa;IAEvE;;;;;;OAMG;iCACgC,YAAY,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA8BlH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,mBAA4B,aAAa;IAGvD;;;;;;OAMG;+BAC8B,YAAY,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC;CAO1K,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGvG;;;;;;OAMG;+BACwB,YAAY,YAAY,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC;CAI7G,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;CAE1G;AAED;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,OAAQ,YAAW,gBAAgB;IAC5D;;;;;;;OAOG;IACI,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGlF"} \ No newline at end of file diff --git a/dist/service/api/swap-api.js b/dist/service/api/swap-api.js new file mode 100644 index 0000000..48d1e1a --- /dev/null +++ b/dist/service/api/swap-api.js @@ -0,0 +1,132 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapApi = exports.SwapApiFactory = exports.SwapApiFp = exports.SwapApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * SwapApi - axios parameter creator + * @export + */ +const SwapApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote: (quoteRequest_1, ...args_1) => tslib_1.__awaiter(this, [quoteRequest_1, ...args_1], void 0, function* (quoteRequest, options = {}) { + // verify required parameter 'quoteRequest' is not null or undefined + (0, common_1.assertParamExists)('getSwapQuote', 'quoteRequest', quoteRequest); + const localVarPath = `/v2/swap/quote`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(quoteRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.SwapApiAxiosParamCreator = SwapApiAxiosParamCreator; +/** + * SwapApi - functional programming interface + * @export + */ +const SwapApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.SwapApiAxiosParamCreator)(configuration); + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSwapQuote(quoteRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SwapApi.getSwapQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.SwapApiFp = SwapApiFp; +/** + * SwapApi - factory interface + * @export + */ +const SwapApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.SwapApiFp)(configuration); + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest, options) { + return localVarFp.getSwapQuote(quoteRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.SwapApiFactory = SwapApiFactory; +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +class SwapApi extends base_1.BaseAPI { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + getSwapQuote(quoteRequest, options) { + return (0, exports.SwapApiFp)(this.configuration).getSwapQuote(quoteRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.SwapApi = SwapApi; +//# sourceMappingURL=swap-api.js.map \ No newline at end of file diff --git a/dist/service/api/swap-api.js.map b/dist/service/api/swap-api.js.map new file mode 100644 index 0000000..05fb335 --- /dev/null +++ b/dist/service/api/swap-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.js","sourceRoot":"","sources":["../../../src/service/api/swap-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAKtH;;;GAGG;AACI,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,YAAY,EAAE,4BAA8F,EAAE,yEAAzF,YAA0B,EAAE,UAAiC,EAAE;YAChF,oEAAoE;YACpE,I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,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnI,CAAC;CACJ;AAZD,0BAYC"} \ No newline at end of file diff --git a/dist/service/api/vaults-api.d.ts b/dist/service/api/vaults-api.d.ts new file mode 100644 index 0000000..07de00d --- /dev/null +++ b/dist/service/api/vaults-api.d.ts @@ -0,0 +1,192 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Vault } from '../model'; +import type { VaultEventsResponse } from '../model'; +import type { VaultsResponse } from '../model'; +/** + * VaultsApi - axios parameter creator + * @export + */ +export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner?: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * VaultsApi - functional programming interface + * @export + */ +export declare const VaultsApiFp: (configuration?: Configuration) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * VaultsApi - factory interface + * @export + */ +export declare const VaultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * VaultsApi - interface + * @export + * @interface VaultsApi + */ +export interface VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * VaultsApi - object-oriented interface + * @export + * @class VaultsApi + * @extends {BaseAPI} + */ +export declare class VaultsApi extends BaseAPI implements VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=vaults-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/vaults-api.d.ts.map b/dist/service/api/vaults-api.d.ts.map new file mode 100644 index 0000000..93c3e70 --- /dev/null +++ b/dist/service/api/vaults-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-api.d.ts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,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG1E;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/api/vaults-api.js b/dist/service/api/vaults-api.js new file mode 100644 index 0000000..7593c28 --- /dev/null +++ b/dist/service/api/vaults-api.js @@ -0,0 +1,279 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetVaultEventsByIdTypeEnum = exports.VaultsApi = exports.VaultsApiFactory = exports.VaultsApiFp = exports.VaultsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * VaultsApi - axios parameter creator + * @export + */ +const VaultsApiAxiosParamCreator = function (configuration) { + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: (id_1, ...args_1) => tslib_1.__awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getVaultById', 'id', id); + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: (id_1, type_1, ...args_1) => tslib_1.__awaiter(this, [id_1, type_1, ...args_1], void 0, function* (id, type, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getVaultEventsById', 'id', id); + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: (owner_1, ...args_1) => tslib_1.__awaiter(this, [owner_1, ...args_1], void 0, function* (owner, options = {}) { + const localVarPath = `/v2/vaults`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator; +/** + * VaultsApi - functional programming interface + * @export + */ +const VaultsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VaultsApi.getVaultById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VaultsApi.getVaultEventsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VaultsApi.getVaultsByOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.VaultsApiFp = VaultsApiFp; +/** + * VaultsApi - factory interface + * @export + */ +const VaultsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.VaultsApiFp)(configuration); + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id, options) { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id, type, options) { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner, options) { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.VaultsApiFactory = VaultsApiFactory; +/** + * VaultsApi - object-oriented interface + * @export + * @class VaultsApi + * @extends {BaseAPI} + */ +class VaultsApi extends base_1.BaseAPI { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultById(id, options) { + return (0, exports.VaultsApiFp)(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultEventsById(id, type, options) { + return (0, exports.VaultsApiFp)(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + getVaultsByOwner(owner, options) { + return (0, exports.VaultsApiFp)(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.VaultsApi = VaultsApi; +/** + * @export + */ +exports.GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=vaults-api.js.map \ No newline at end of file diff --git a/dist/service/api/vaults-api.js.map b/dist/service/api/vaults-api.js.map new file mode 100644 index 0000000..228a0c6 --- /dev/null +++ b/dist/service/api/vaults-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-api.js","sourceRoot":"","sources":["../../../src/service/api/vaults-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;WAMG;QACH,YAAY,EAAE,kBAA8E,EAAE,+DAAzE,EAAU,EAAE,UAAiC,EAAE;YAChE,0DAA0D;YAC1D,IAAA,0BAAiB,EAAC,cAAc,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YAC3C,MAAM,YAAY,GAAG,iBAAiB;iBACjC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1D,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,IAAI,sBAAsB,GAAG,WA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OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClI,CAAC;CACJ;AArCD,8BAqCC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/service/api/websocket-api.d.ts b/dist/service/api/websocket-api.d.ts new file mode 100644 index 0000000..0d8864d --- /dev/null +++ b/dist/service/api/websocket-api.d.ts @@ -0,0 +1,85 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +/** + * WebsocketApi - axios parameter creator + * @export + */ +export declare const WebsocketApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * WebsocketApi - functional programming interface + * @export + */ +export declare const WebsocketApiFp: (configuration?: Configuration) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * WebsocketApi - factory interface + * @export + */ +export declare const WebsocketApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * WebsocketApi - interface + * @export + * @interface WebsocketApi + */ +export interface WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApiInterface + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * WebsocketApi - object-oriented interface + * @export + * @class WebsocketApi + * @extends {BaseAPI} + */ +export declare class WebsocketApi extends BaseAPI implements WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApi + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=websocket-api.d.ts.map \ No newline at end of file diff --git a/dist/service/api/websocket-api.d.ts.map b/dist/service/api/websocket-api.d.ts.map new file mode 100644 index 0000000..273f9d5 --- /dev/null +++ b/dist/service/api/websocket-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket-api.d.ts","sourceRoot":"","sources":["../../../src/service/api/websocket-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AACtH;;;GAGG;AACH,eAAO,MAAM,6BAA6B,mBAA6B,aAAa;IAE5E;;;;;OAKG;2CACyC,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,mBAA4B,aAAa;IAG5D;;;;;OAKG;yCACwC,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAOnJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG5G;;;;;OAKG;yCACkC,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC;CAItF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,0BAA0B,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;CAEnF;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;OAMG;IACI,0BAA0B,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGpE"} \ No newline at end of file diff --git a/dist/service/api/websocket-api.js b/dist/service/api/websocket-api.js new file mode 100644 index 0000000..f0dd74f --- /dev/null +++ b/dist/service/api/websocket-api.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WebsocketApi = exports.WebsocketApiFactory = exports.WebsocketApiFp = exports.WebsocketApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * WebsocketApi - axios parameter creator + * @export + */ +const WebsocketApiAxiosParamCreator = function (configuration) { + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/v2/ws`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.WebsocketApiAxiosParamCreator = WebsocketApiAxiosParamCreator; +/** + * WebsocketApi - functional programming interface + * @export + */ +const WebsocketApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.WebsocketApiAxiosParamCreator)(configuration); + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUnfilledOrdersWebsocket(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsocketApi.getUnfilledOrdersWebsocket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.WebsocketApiFp = WebsocketApiFp; +/** + * WebsocketApi - factory interface + * @export + */ +const WebsocketApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.WebsocketApiFp)(configuration); + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options) { + return localVarFp.getUnfilledOrdersWebsocket(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.WebsocketApiFactory = WebsocketApiFactory; +/** + * WebsocketApi - object-oriented interface + * @export + * @class WebsocketApi + * @extends {BaseAPI} + */ +class WebsocketApi extends base_1.BaseAPI { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApi + */ + getUnfilledOrdersWebsocket(options) { + return (0, exports.WebsocketApiFp)(this.configuration).getUnfilledOrdersWebsocket(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.WebsocketApi = WebsocketApi; +//# sourceMappingURL=websocket-api.js.map \ No newline at end of file diff --git a/dist/service/api/websocket-api.js.map b/dist/service/api/websocket-api.js.map new file mode 100644 index 0000000..69c1800 --- /dev/null +++ b/dist/service/api/websocket-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket-api.js","sourceRoot":"","sources":["../../../src/service/api/websocket-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AACtH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;WAKG;QACH,0BAA0B,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YAClE,MAAM,YAAY,GAAG,QAAQ,CAAC;YAC9B,oFAAo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BAA4B,CAAC,0CAAE,GAAG,CAAC;gBAC3I,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,IAAA,8BAAqB,EAAC,iBAAiB,EAAE,eAAW,EAAE,gBAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB;AAEF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAChH,MAAM,UAAU,GAAG,IAAA,sBAAc,EAAC,aAAa,CAAC,CAAA;IAChD,OAAO;QACH;;;;;WAKG;QACH,0BAA0B,CAAC,OAA+B;YACtD,OAAO,UAAU,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACtG,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,mBAAmB,uBAa9B;AAmBF;;;;;GAKG;AACH,MAAa,YAAa,SAAQ,cAAO;IACrC;;;;;;OAMG;IACI,0BAA0B,CAAC,OAA+B;QAC7D,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;CACJ;AAXD,oCAWC"} \ No newline at end of file diff --git a/dist/service/base.d.ts b/dist/service/base.d.ts new file mode 100644 index 0000000..b8f37c3 --- /dev/null +++ b/dist/service/base.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from './configuration'; +import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; +export declare const BASE_PATH: string; +/** + * + * @export + */ +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} +/** + * + * @export + * @class BaseAPI + */ +export declare class BaseAPI { + protected basePath: string; + protected axios: AxiosInstance; + protected configuration: Configuration | undefined; + constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); +} +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export declare class RequiredError extends Error { + field: string; + constructor(field: string, msg?: string); +} +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} +/** + * + * @export + */ +export declare const operationServerMap: ServerMap; +export {}; +//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/dist/service/base.d.ts.map b/dist/service/base.d.ts.map new file mode 100644 index 0000000..1d2c6c8 --- /dev/null +++ b/dist/service/base.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/service/base.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAgB,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGhF,eAAO,MAAM,SAAS,QAA8C,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAG2B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAAc,SAAS,CAAC,KAAK,EAAE,aAAa;IAFjH,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;gBAEvC,aAAa,CAAC,EAAE,aAAa,EAAY,QAAQ,GAAE,MAAkB,EAAY,KAAK,GAAE,aAA2B;CAMlI;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACjB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAIjD;AAED,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;CACP;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAChC,CAAA"} \ No newline at end of file diff --git a/dist/service/base.js b/dist/service/base.js new file mode 100644 index 0000000..ae75cfa --- /dev/null +++ b/dist/service/base.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +exports.BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); +/** + * + * @export + */ +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +class BaseAPI { + constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) { + var _a; + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath; + } + } +} +exports.BaseAPI = BaseAPI; +; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +exports.RequiredError = RequiredError; +/** + * + * @export + */ +exports.operationServerMap = {}; +//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/service/base.js.map b/dist/service/base.js.map new file mode 100644 index 0000000..01020bc --- /dev/null +++ b/dist/service/base.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/service/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAOH,0DAAgC;AAEnB,QAAA,SAAS,GAAG,uBAAuB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAErE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,MAAA,aAAa,CAAC,QAAQ,mCAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IACpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AALD,sCAKC;AASD;;;GAGG;AACU,QAAA,kBAAkB,GAAc,EAC5C,CAAA"} \ No newline at end of file diff --git a/dist/service/common.d.ts b/dist/service/common.d.ts new file mode 100644 index 0000000..55b6860 --- /dev/null +++ b/dist/service/common.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { URL } from 'url'; +/** + * + * @export + */ +export declare const DUMMY_BASE_URL = "https://example.com"; +/** + * + * @throws {RequiredError} + * @export + */ +export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; +/** + * + * @export + */ +export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; +/** + * + * @export + */ +export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setSearchParams: (url: URL, ...objects: any[]) => void; +/** + * + * @export + */ +export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; +/** + * + * @export + */ +export declare const toPathString: (url: URL) => string; +/** + * + * @export + */ +export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/dist/service/common.d.ts.map b/dist/service/common.d.ts.map new file mode 100644 index 0000000..df243dc --- /dev/null +++ b/dist/service/common.d.ts.map @@ -0,0 +1 @@ +{"version":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ff --git a/dist/service/common.js b/dist/service/common.js new file mode 100644 index 0000000..1c5505d --- /dev/null +++ b/dist/service/common.js @@ -0,0 +1,155 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0; +const tslib_1 = require("tslib"); +const base_1 = require("./base"); +const url_1 = require("url"); +/** + * + * @export + */ +exports.DUMMY_BASE_URL = 'https://example.com'; +/** + * + * @throws {RequiredError} + * @export + */ +const assertParamExists = function (functionName, paramName, paramValue) { + if (paramValue === null || paramValue === undefined) { + throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +}; +exports.assertParamExists = assertParamExists; +/** + * + * @export + */ +const setApiKeyToObject = function (object, keyParamName, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? yield configuration.apiKey(keyParamName) + : yield configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } + }); +}; +exports.setApiKeyToObject = setApiKeyToObject; +/** + * + * @export + */ +const setBasicAuthToObject = function (object, configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +}; +exports.setBasicAuthToObject = setBasicAuthToObject; +/** + * + * @export + */ +const setBearerAuthToObject = function (object, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken() + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } + }); +}; +exports.setBearerAuthToObject = setBearerAuthToObject; +/** + * + * @export + */ +const setOAuthToObject = function (object, name, scopes, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken(name, scopes) + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } + }); +}; +exports.setOAuthToObject = setOAuthToObject; +function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { + if (parameter == null) + return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} +/** + * + * @export + */ +const setSearchParams = function (url, ...objects) { + const searchParams = new url_1.URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; +exports.setSearchParams = setSearchParams; +/** + * + * @export + */ +const serializeDataIfNeeded = function (value, requestOptions, configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +}; +exports.serializeDataIfNeeded = serializeDataIfNeeded; +/** + * + * @export + */ +const toPathString = function (url) { + return url.pathname + url.search + url.hash; +}; +exports.toPathString = toPathString; +/** + * + * @export + */ +const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { + return (axios = globalAxios, basePath = BASE_PATH) => { + var _a; + const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url }); + return axios.request(axiosRequestArgs); + }; +}; +exports.createRequestFunction = createRequestFunction; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/service/common.js.map b/dist/service/common.js.map new file mode 100644 index 0000000..e0157bf --- /dev/null +++ b/dist/service/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/service/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAMH,iCAAuC;AACvC,6BAA2C;AAE3C;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,MAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;QAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;YACxC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;gBAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC1C,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC;YACjC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;QAC/C,CAAC;IACL,CAAC;CAAA,CAAA;AAPY,QAAA,iBAAiB,qBAO7B;AAED;;;GAGG;AACI,MAAM,oBAAoB,GA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fa97 --- /dev/null +++ b/dist/service/configuration.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} +export declare class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + constructor(param?: ConfigurationParameters); + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime: string): boolean; +} +//# sourceMappingURL=configuration.d.ts.map \ No newline at end of file diff --git a/dist/service/configuration.d.ts.map b/dist/service/configuration.d.ts.map new file mode 100644 index 0000000..a8779b8 --- /dev/null +++ b/dist/service/configuration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/service/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;CAChC;AAED,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAW/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"} \ No newline at end of file diff --git a/dist/service/configuration.js b/dist/service/configuration.js new file mode 100644 index 0000000..4843d7a --- /dev/null +++ b/dist/service/configuration.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Configuration = void 0; +class Configuration { + constructor(param = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} +exports.Configuration = Configuration; +//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/service/configuration.js.map b/dist/service/configuration.js.map new file mode 100644 index 0000000..1e19863 --- /dev/null +++ b/dist/service/configuration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/service/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,MAAa,aAAa;IA0DtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AAnFD,sCAmFC"} \ No newline at end of file diff --git a/dist/service/index.d.ts b/dist/service/index.d.ts new file mode 100644 index 0000000..6ad2f4b --- /dev/null +++ b/dist/service/index.d.ts @@ -0,0 +1,15 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/service/index.d.ts.map b/dist/service/index.d.ts.map new file mode 100644 index 0000000..44d45bf --- /dev/null +++ b/dist/service/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/service/index.js b/dist/service/index.js new file mode 100644 index 0000000..b7b4e3b --- /dev/null +++ b/dist/service/index.js @@ -0,0 +1,20 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./api"), exports); +tslib_1.__exportStar(require("./configuration"), exports); +tslib_1.__exportStar(require("./model"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/service/index.js.map b/dist/service/index.js.map new file mode 100644 index 0000000..664a3da --- /dev/null +++ b/dist/service/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,gDAAsB;AACtB,0DAAgC;AAChC,kDAAwB"} \ No newline at end of file diff --git a/dist/service/model/account-lendingpool-summary.d.ts b/dist/service/model/account-lendingpool-summary.d.ts new file mode 100644 index 0000000..9243f91 --- /dev/null +++ b/dist/service/model/account-lendingpool-summary.d.ts @@ -0,0 +1,93 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountLendingpoolSummary + */ +export interface AccountLendingpoolSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalCollateral': { + [key: string]: string | undefined; + }; + /** + * Health factor in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'healthFactor': string; + /** + * Net annual percentage yield in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'netApy': string; + /** + * Total supply rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalSupplyApy': string; + /** + * Total borrow rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalBorrowApy': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'availableToBorrow': { + [key: string]: string | undefined; + }; + /** + * Borrow power used in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'borrowPowerUsed': string; + /** + * Current liquidation threshold in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'currentLiquidationThreshold': string; + /** + * Loan to value in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'loanToValue': string; +} +//# sourceMappingURL=account-lendingpool-summary.d.ts.map \ No newline at end of file diff --git a/dist/service/model/account-lendingpool-summary.d.ts.map b/dist/service/model/account-lendingpool-summary.d.ts.map new file mode 100644 index 0000000..b90b1e1 --- /dev/null +++ b/dist/service/model/account-lendingpool-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-lendingpool-summary.d.ts","sourceRoot":"","sources":["../../../src/service/model/account-lendingpool-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/service/model/account-lendingpool-summary.js b/dist/service/model/account-lendingpool-summary.js new file mode 100644 index 0000000..a77a563 --- /dev/null +++ b/dist/service/model/account-lendingpool-summary.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=account-lendingpool-summary.js.map \ No newline at end of file diff --git a/dist/service/model/account-lendingpool-summary.js.map b/dist/service/model/account-lendingpool-summary.js.map new file mode 100644 index 0000000..b23b12a --- /dev/null +++ b/dist/service/model/account-lendingpool-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-lendingpool-summary.js","sourceRoot":"","sources":["../../../src/service/model/account-lendingpool-summary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/account-stablecoin-system-summary.d.ts b/dist/service/model/account-stablecoin-system-summary.d.ts new file mode 100644 index 0000000..755ac56 --- /dev/null +++ b/dist/service/model/account-stablecoin-system-summary.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStablecoinSystemSummary + */ +export interface AccountStablecoinSystemSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in stablecoin system + * @type {string} + * @memberof AccountStablecoinSystemSummary + */ + 'netApy': string; +} +//# sourceMappingURL=account-stablecoin-system-summary.d.ts.map \ No newline at end of file diff --git a/dist/service/model/account-stablecoin-system-summary.d.ts.map b/dist/service/model/account-stablecoin-system-summary.d.ts.map new file mode 100644 index 0000000..c1b9a77 --- /dev/null +++ b/dist/service/model/account-stablecoin-system-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-stablecoin-system-summary.d.ts","sourceRoot":"","sources":["../../../src/service/model/account-stablecoin-system-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/service/model/account-stablecoin-system-summary.js b/dist/service/model/account-stablecoin-system-summary.js new file mode 100644 index 0000000..e710990 --- /dev/null +++ b/dist/service/model/account-stablecoin-system-summary.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=account-stablecoin-system-summary.js.map \ No newline at end of file diff --git a/dist/service/model/account-stablecoin-system-summary.js.map b/dist/service/model/account-stablecoin-system-summary.js.map new file mode 100644 index 0000000..2876efa --- /dev/null +++ b/dist/service/model/account-stablecoin-system-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-stablecoin-system-summary.js","sourceRoot":"","sources":["../../../src/service/model/account-stablecoin-system-summary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/account-staking-summary.d.ts b/dist/service/model/account-staking-summary.d.ts new file mode 100644 index 0000000..e545dc5 --- /dev/null +++ b/dist/service/model/account-staking-summary.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStakingSummary + */ +export interface AccountStakingSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'totalStake': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'unclaimedReward': { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in staking contract + * @type {string} + * @memberof AccountStakingSummary + */ + 'netApy': string; +} +//# sourceMappingURL=account-staking-summary.d.ts.map \ No newline at end of file diff --git a/dist/service/model/account-staking-summary.d.ts.map b/dist/service/model/account-staking-summary.d.ts.map new file mode 100644 index 0000000..c18c1a2 --- /dev/null +++ b/dist/service/model/account-staking-summary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account-staking-summary.d.ts","sourceRoot":"","sources":["../../../src/service/model/account-staking-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/service/model/account-staking-summary.js b/dist/service/model/account-staking-summary.js new file mode 100644 index 0000000..3494c97 --- /dev/null +++ b/dist/service/model/account-staking-summary.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=account-staking-summary.js.map \ No newline at end of file diff --git a/dist/service/model/account-staking-summary.js.map b/dist/service/model/account-staking-summary.js.map new file mode 100644 index 0000000..54555a4 --- /dev/null +++ b/dist/service/model/account-staking-summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account-staking-summary.js","sourceRoot":"","sources":["../../../src/service/model/account-staking-summary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/account.d.ts b/dist/service/model/account.d.ts new file mode 100644 index 0000000..ed9f3ab --- /dev/null +++ b/dist/service/model/account.d.ts @@ -0,0 +1,83 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { AccountLendingpoolSummary } from './account-lendingpool-summary'; +import type { AccountStablecoinSystemSummary } from './account-stablecoin-system-summary'; +import type { AccountStakingSummary } from './account-staking-summary'; +import type { WalletBalance } from './wallet-balance'; +/** + * + * @export + * @interface Account + */ +export interface Account { + /** + * The number of points the account has. + * @type {number} + * @memberof Account + */ + 'points': number; + /** + * Ethereum address of the account + * @type {string} + * @memberof Account + */ + 'address': string; + /** + * + * @type {WalletBalance} + * @memberof Account + */ + 'walletBalance': WalletBalance; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'netWorth': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDeposits': { + [key: string]: string | undefined; + }; + /** + * + * @type {AccountLendingpoolSummary} + * @memberof Account + */ + 'lendingpoolSummary': AccountLendingpoolSummary; + /** + * + * @type {AccountStablecoinSystemSummary} + * @memberof Account + */ + 'stabelcoinSystemSummary': AccountStablecoinSystemSummary; + /** + * + * @type {AccountStakingSummary} + * @memberof Account + */ + 'stakingSummary': AccountStakingSummary; +} +//# sourceMappingURL=account.d.ts.map \ No newline at end of file diff --git a/dist/service/model/account.d.ts.map b/dist/service/model/account.d.ts.map new file mode 100644 index 0000000..18c986f --- /dev/null +++ b/dist/service/model/account.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/service/model/account.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAG1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,oBAAoB,EAAE,yBAAyB,CAAC;IAChD;;;;OAIG;IACH,yBAAyB,EAAE,8BAA8B,CAAC;IAC1D;;;;OAIG;IACH,gBAAgB,EAAE,qBAAqB,CAAC;CAC3C"} \ No newline at end of file diff --git a/dist/service/model/account.js b/dist/service/model/account.js new file mode 100644 index 0000000..713c744 --- /dev/null +++ b/dist/service/model/account.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=account.js.map \ No newline at end of file diff --git a/dist/service/model/account.js.map b/dist/service/model/account.js.map new file mode 100644 index 0000000..3e67c14 --- /dev/null +++ b/dist/service/model/account.js.map @@ -0,0 +1 @@ +{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/service/model/account.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/address-response.d.ts b/dist/service/model/address-response.d.ts new file mode 100644 index 0000000..e3edbe6 --- /dev/null +++ b/dist/service/model/address-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Address } from './address'; +/** + * + * @export + * @interface AddressResponse + */ +export interface AddressResponse { + /** + * + * @type {Array
} + * @memberof AddressResponse + */ + 'data': Array
; +} +//# sourceMappingURL=address-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/address-response.d.ts.map b/dist/service/model/address-response.d.ts.map new file mode 100644 index 0000000..e7ccf38 --- /dev/null +++ b/dist/service/model/address-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"address-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/address-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/service/model/address-response.js b/dist/service/model/address-response.js new file mode 100644 index 0000000..fb4a43f --- /dev/null +++ b/dist/service/model/address-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=address-response.js.map \ No newline at end of file diff --git a/dist/service/model/address-response.js.map b/dist/service/model/address-response.js.map new file mode 100644 index 0000000..a1e743f --- /dev/null +++ b/dist/service/model/address-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"address-response.js","sourceRoot":"","sources":["../../../src/service/model/address-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/address.d.ts b/dist/service/model/address.d.ts new file mode 100644 index 0000000..362a3ba --- /dev/null +++ b/dist/service/model/address.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Address + */ +export interface Address { + /** + * The label of the address. + * @type {string} + * @memberof Address + */ + 'label': string; + /** + * The Ethereum address. + * @type {string} + * @memberof Address + */ + 'address': string; +} +//# sourceMappingURL=address.d.ts.map \ No newline at end of file diff --git a/dist/service/model/address.d.ts.map b/dist/service/model/address.d.ts.map new file mode 100644 index 0000000..4613aa4 --- /dev/null +++ b/dist/service/model/address.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../src/service/model/address.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/address.js b/dist/service/model/address.js new file mode 100644 index 0000000..9cc3ea5 --- /dev/null +++ b/dist/service/model/address.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=address.js.map \ No newline at end of file diff --git a/dist/service/model/address.js.map b/dist/service/model/address.js.map new file mode 100644 index 0000000..5cbe564 --- /dev/null +++ b/dist/service/model/address.js.map @@ -0,0 +1 @@ +{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../src/service/model/address.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/balance.d.ts b/dist/service/model/balance.d.ts new file mode 100644 index 0000000..5ec6ff2 --- /dev/null +++ b/dist/service/model/balance.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Token} + * @memberof Balance + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Balance + */ + 'balance': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=balance.d.ts.map \ No newline at end of file diff --git a/dist/service/model/balance.d.ts.map b/dist/service/model/balance.d.ts.map new file mode 100644 index 0000000..5ca69be --- /dev/null +++ b/dist/service/model/balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../src/service/model/balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACrD"} \ No newline at end of file diff --git a/dist/service/model/balance.js b/dist/service/model/balance.js new file mode 100644 index 0000000..8abdfaa --- /dev/null +++ b/dist/service/model/balance.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=balance.js.map \ No newline at end of file diff --git a/dist/service/model/balance.js.map b/dist/service/model/balance.js.map new file mode 100644 index 0000000..9fa311f --- /dev/null +++ b/dist/service/model/balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../src/service/model/balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/basic-event.d.ts b/dist/service/model/basic-event.d.ts new file mode 100644 index 0000000..46bbe51 --- /dev/null +++ b/dist/service/model/basic-event.d.ts @@ -0,0 +1,53 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './event-domain'; +import type { EventName } from './event-name'; +import type { EventType } from './event-type'; +import type { Log } from './log'; +/** + * + * @export + * @interface BasicEvent + */ +export interface BasicEvent { + /** + * Identifier for the event. + * @type {number} + * @memberof BasicEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof BasicEvent + */ + 'name': EventName; + /** + * + * @type {EventType} + * @memberof BasicEvent + */ + 'type': EventType; + /** + * + * @type {EventDomain} + * @memberof BasicEvent + */ + 'domain': EventDomain; + /** + * + * @type {Log} + * @memberof BasicEvent + */ + 'raw': Log; +} +//# sourceMappingURL=basic-event.d.ts.map \ No newline at end of file diff --git a/dist/service/model/basic-event.d.ts.map b/dist/service/model/basic-event.d.ts.map new file mode 100644 index 0000000..04e7240 --- /dev/null +++ b/dist/service/model/basic-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"basic-event.d.ts","sourceRoot":"","sources":["../../../src/service/model/basic-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/service/model/basic-event.js b/dist/service/model/basic-event.js new file mode 100644 index 0000000..22ea978 --- /dev/null +++ b/dist/service/model/basic-event.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=basic-event.js.map \ No newline at end of file diff --git a/dist/service/model/basic-event.js.map b/dist/service/model/basic-event.js.map new file mode 100644 index 0000000..afb2dcb --- /dev/null +++ b/dist/service/model/basic-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"basic-event.js","sourceRoot":"","sources":["../../../src/service/model/basic-event.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/chain-activity-step-data.d.ts b/dist/service/model/chain-activity-step-data.d.ts new file mode 100644 index 0000000..b26709b --- /dev/null +++ b/dist/service/model/chain-activity-step-data.d.ts @@ -0,0 +1,20 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EIP712SignRequest } from './eip712-sign-request'; +import type { PersonalSignRequest } from './personal-sign-request'; +import type { PreparedTx } from './prepared-tx'; +/** + * @type ChainActivityStepData + * @export + */ +export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; +//# sourceMappingURL=chain-activity-step-data.d.ts.map \ No newline at end of file diff --git a/dist/service/model/chain-activity-step-data.d.ts.map b/dist/service/model/chain-activity-step-data.d.ts.map new file mode 100644 index 0000000..0b3b9df --- /dev/null +++ b/dist/service/model/chain-activity-step-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step-data.d.ts","sourceRoot":"","sources":["../../../src/service/model/chain-activity-step-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/service/model/chain-activity-step-data.js b/dist/service/model/chain-activity-step-data.js new file mode 100644 index 0000000..3ee100d --- /dev/null +++ b/dist/service/model/chain-activity-step-data.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=chain-activity-step-data.js.map \ No newline at end of file diff --git a/dist/service/model/chain-activity-step-data.js.map b/dist/service/model/chain-activity-step-data.js.map new file mode 100644 index 0000000..22d9638 --- /dev/null +++ b/dist/service/model/chain-activity-step-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step-data.js","sourceRoot":"","sources":["../../../src/service/model/chain-activity-step-data.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/chain-activity-step.d.ts b/dist/service/model/chain-activity-step.d.ts new file mode 100644 index 0000000..ed15fdf --- /dev/null +++ b/dist/service/model/chain-activity-step.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStepData } from './chain-activity-step-data'; +/** + * + * @export + * @interface ChainActivityStep + */ +export interface ChainActivityStep { + /** + * + * @type {string} + * @memberof ChainActivityStep + */ + 'type': ChainActivityStepTypeEnum; + /** + * + * @type {ChainActivityStepData} + * @memberof ChainActivityStep + */ + 'data': ChainActivityStepData; +} +export declare const ChainActivityStepTypeEnum: { + readonly PREPARED_TX: "PreparedTx"; + readonly EIP712_SIGN_REQUEST: "EIP712SignRequest"; + readonly PERSONAL_SIGN_REQUEST: "PersonalSignRequest"; +}; +export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; +//# sourceMappingURL=chain-activity-step.d.ts.map \ No newline at end of file diff --git a/dist/service/model/chain-activity-step.d.ts.map b/dist/service/model/chain-activity-step.d.ts.map new file mode 100644 index 0000000..9f98c4c --- /dev/null +++ b/dist/service/model/chain-activity-step.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step.d.ts","sourceRoot":"","sources":["../../../src/service/model/chain-activity-step.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAClC;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;CACjC;AAED,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/chain-activity-step.js b/dist/service/model/chain-activity-step.js new file mode 100644 index 0000000..dd8db4d --- /dev/null +++ b/dist/service/model/chain-activity-step.js @@ -0,0 +1,22 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChainActivityStepTypeEnum = void 0; +exports.ChainActivityStepTypeEnum = { + PREPARED_TX: 'PreparedTx', + EIP712_SIGN_REQUEST: 'EIP712SignRequest', + PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' +}; +//# sourceMappingURL=chain-activity-step.js.map \ No newline at end of file diff --git a/dist/service/model/chain-activity-step.js.map b/dist/service/model/chain-activity-step.js.map new file mode 100644 index 0000000..818156a --- /dev/null +++ b/dist/service/model/chain-activity-step.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity-step.js","sourceRoot":"","sources":["../../../src/service/model/chain-activity-step.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA2BU,QAAA,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,mBAAmB,EAAE,mBAAmB;IACxC,qBAAqB,EAAE,qBAAqB;CACtC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/chain-activity.d.ts b/dist/service/model/chain-activity.d.ts new file mode 100644 index 0000000..8b20504 --- /dev/null +++ b/dist/service/model/chain-activity.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStep } from './chain-activity-step'; +/** + * + * @export + * @interface ChainActivity + */ +export interface ChainActivity { + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'stepNumber': number; + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'numberOfSteps': number; + /** + * + * @type {Array} + * @memberof ChainActivity + */ + 'steps': Array; +} +//# sourceMappingURL=chain-activity.d.ts.map \ No newline at end of file diff --git a/dist/service/model/chain-activity.d.ts.map b/dist/service/model/chain-activity.d.ts.map new file mode 100644 index 0000000..7d501cb --- /dev/null +++ b/dist/service/model/chain-activity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity.d.ts","sourceRoot":"","sources":["../../../src/service/model/chain-activity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACrC"} \ No newline at end of file diff --git a/dist/service/model/chain-activity.js b/dist/service/model/chain-activity.js new file mode 100644 index 0000000..bcfbc42 --- /dev/null +++ b/dist/service/model/chain-activity.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=chain-activity.js.map \ No newline at end of file diff --git a/dist/service/model/chain-activity.js.map b/dist/service/model/chain-activity.js.map new file mode 100644 index 0000000..0a9017e --- /dev/null +++ b/dist/service/model/chain-activity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chain-activity.js","sourceRoot":"","sources":["../../../src/service/model/chain-activity.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/dutch-amount.d.ts b/dist/service/model/dutch-amount.d.ts new file mode 100644 index 0000000..7d1b43d --- /dev/null +++ b/dist/service/model/dutch-amount.d.ts @@ -0,0 +1,48 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface DutchAmount + */ +export interface DutchAmount { + /** + * + * @type {Token} + * @memberof DutchAmount + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'startAmount': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'endAmount': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof DutchAmount + */ + 'recipient'?: string; +} +//# sourceMappingURL=dutch-amount.d.ts.map \ No newline at end of file diff --git a/dist/service/model/dutch-amount.d.ts.map b/dist/service/model/dutch-amount.d.ts.map new file mode 100644 index 0000000..98fa712 --- /dev/null +++ b/dist/service/model/dutch-amount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dutch-amount.d.ts","sourceRoot":"","sources":["../../../src/service/model/dutch-amount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/dutch-amount.js b/dist/service/model/dutch-amount.js new file mode 100644 index 0000000..9354fac --- /dev/null +++ b/dist/service/model/dutch-amount.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=dutch-amount.js.map \ No newline at end of file diff --git a/dist/service/model/dutch-amount.js.map b/dist/service/model/dutch-amount.js.map new file mode 100644 index 0000000..2898e69 --- /dev/null +++ b/dist/service/model/dutch-amount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dutch-amount.js","sourceRoot":"","sources":["../../../src/service/model/dutch-amount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/eip712-sign-request.d.ts b/dist/service/model/eip712-sign-request.d.ts new file mode 100644 index 0000000..dc27eb4 --- /dev/null +++ b/dist/service/model/eip712-sign-request.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface EIP712SignRequest + */ +export interface EIP712SignRequest { + /** + * The name of the EIP712 signature + * @type {string} + * @memberof EIP712SignRequest + */ + 'name': string; + /** + * + * @type {TypedData} + * @memberof EIP712SignRequest + */ + 'typedData': TypedData; + /** + * The hash of the EIP712 signature that needs to be signed + * @type {string} + * @memberof EIP712SignRequest + */ + 'hash': string; +} +//# sourceMappingURL=eip712-sign-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/eip712-sign-request.d.ts.map b/dist/service/model/eip712-sign-request.d.ts.map new file mode 100644 index 0000000..659dafd --- /dev/null +++ b/dist/service/model/eip712-sign-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"eip712-sign-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/eip712-sign-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/service/model/eip712-sign-request.js b/dist/service/model/eip712-sign-request.js new file mode 100644 index 0000000..e87c04f --- /dev/null +++ b/dist/service/model/eip712-sign-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=eip712-sign-request.js.map \ No newline at end of file diff --git a/dist/service/model/eip712-sign-request.js.map b/dist/service/model/eip712-sign-request.js.map new file mode 100644 index 0000000..d7cc912 --- /dev/null +++ b/dist/service/model/eip712-sign-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eip712-sign-request.js","sourceRoot":"","sources":["../../../src/service/model/eip712-sign-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/error-message.d.ts b/dist/service/model/error-message.d.ts new file mode 100644 index 0000000..c89cb8d --- /dev/null +++ b/dist/service/model/error-message.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorMessage + */ +export interface ErrorMessage { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorMessage + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorMessage + */ + 'solutions': Array; +} +//# sourceMappingURL=error-message.d.ts.map \ No newline at end of file diff --git a/dist/service/model/error-message.d.ts.map b/dist/service/model/error-message.d.ts.map new file mode 100644 index 0000000..66f2ad1 --- /dev/null +++ b/dist/service/model/error-message.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../src/service/model/error-message.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/service/model/error-message.js b/dist/service/model/error-message.js new file mode 100644 index 0000000..611fe8c --- /dev/null +++ b/dist/service/model/error-message.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=error-message.js.map \ No newline at end of file diff --git a/dist/service/model/error-message.js.map b/dist/service/model/error-message.js.map new file mode 100644 index 0000000..96247f5 --- /dev/null +++ b/dist/service/model/error-message.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error-message.js","sourceRoot":"","sources":["../../../src/service/model/error-message.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/event-details-response.d.ts b/dist/service/model/event-details-response.d.ts new file mode 100644 index 0000000..febe43b --- /dev/null +++ b/dist/service/model/event-details-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Log } from './log'; +/** + * + * @export + * @interface EventDetailsResponse + */ +export interface EventDetailsResponse { + /** + * + * @type {Array} + * @memberof EventDetailsResponse + */ + 'data': Array; +} +//# sourceMappingURL=event-details-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/event-details-response.d.ts.map b/dist/service/model/event-details-response.d.ts.map new file mode 100644 index 0000000..8a1c5b9 --- /dev/null +++ b/dist/service/model/event-details-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-details-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/event-details-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/service/model/event-details-response.js b/dist/service/model/event-details-response.js new file mode 100644 index 0000000..fed0282 --- /dev/null +++ b/dist/service/model/event-details-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=event-details-response.js.map \ No newline at end of file diff --git a/dist/service/model/event-details-response.js.map b/dist/service/model/event-details-response.js.map new file mode 100644 index 0000000..958bfbd --- /dev/null +++ b/dist/service/model/event-details-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-details-response.js","sourceRoot":"","sources":["../../../src/service/model/event-details-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/event-domain.d.ts b/dist/service/model/event-domain.d.ts new file mode 100644 index 0000000..8f348d8 --- /dev/null +++ b/dist/service/model/event-domain.d.ts @@ -0,0 +1,24 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The domain of the event. + * @export + * @enum {string} + */ +export declare const EventDomain: { + readonly STABLE_COIN_SYSTEM: "stableCoinSystem"; + readonly LENDINGPOOL: "lendingpool"; + readonly CHAINLINK: "chainlink"; + readonly UNISWAP_V3: "uniswapV3"; +}; +export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; +//# sourceMappingURL=event-domain.d.ts.map \ No newline at end of file diff --git a/dist/service/model/event-domain.d.ts.map b/dist/service/model/event-domain.d.ts.map new file mode 100644 index 0000000..4633923 --- /dev/null +++ b/dist/service/model/event-domain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-domain.d.ts","sourceRoot":"","sources":["../../../src/service/model/event-domain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/event-domain.js b/dist/service/model/event-domain.js new file mode 100644 index 0000000..5003353 --- /dev/null +++ b/dist/service/model/event-domain.js @@ -0,0 +1,28 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventDomain = void 0; +/** + * The domain of the event. + * @export + * @enum {string} + */ +exports.EventDomain = { + STABLE_COIN_SYSTEM: 'stableCoinSystem', + LENDINGPOOL: 'lendingpool', + CHAINLINK: 'chainlink', + UNISWAP_V3: 'uniswapV3' +}; +//# sourceMappingURL=event-domain.js.map \ No newline at end of file diff --git a/dist/service/model/event-domain.js.map b/dist/service/model/event-domain.js.map new file mode 100644 index 0000000..4cc5d67 --- /dev/null +++ b/dist/service/model/event-domain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-domain.js","sourceRoot":"","sources":["../../../src/service/model/event-domain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,WAAW,GAAG;IACvB,kBAAkB,EAAE,kBAAkB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,WAAW;CACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/model/event-name.d.ts b/dist/service/model/event-name.d.ts new file mode 100644 index 0000000..fe8ed5f --- /dev/null +++ b/dist/service/model/event-name.d.ts @@ -0,0 +1,36 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const EventName: { + readonly VAULTS_REPAY: "VaultsRepay"; + readonly VAULTS_WITHDRAW: "VaultsWithdraw"; + readonly VAULTS_DEPOSIT: "VaultsDeposit"; + readonly VAULTS_MINT: "VaultsMint"; + readonly VAULTS_KICK: "VaultsKick"; + readonly VAULTS_TAKE: "VaultsTake"; + readonly VAULTS_REDO: "VaultsRedo"; + readonly VAULTS_YANK: "VaultsYank"; + readonly LENDINGPOOL_WITHDRAW: "LendingpoolWithdraw"; + readonly LENDINGPOOL_REPAY: "LendingpoolRepay"; + readonly LENDINGPOOL_LIQUIDATION_CALL: "LendingpoolLiquidationCall"; + readonly LENDINGPOOL_BORROW: "LendingpoolBorrow"; + readonly FILE: "File"; + readonly PERMISSION: "Permission"; + readonly MEDIAN: "Median"; + readonly UNKNOWN: "Unknown"; +}; +export type EventName = typeof EventName[keyof typeof EventName]; +//# sourceMappingURL=event-name.d.ts.map \ No newline at end of file diff --git a/dist/service/model/event-name.d.ts.map b/dist/service/model/event-name.d.ts.map new file mode 100644 index 0000000..cc00144 --- /dev/null +++ b/dist/service/model/event-name.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-name.d.ts","sourceRoot":"","sources":["../../../src/service/model/event-name.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/event-name.js b/dist/service/model/event-name.js new file mode 100644 index 0000000..2aa9531 --- /dev/null +++ b/dist/service/model/event-name.js @@ -0,0 +1,40 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventName = void 0; +/** + * + * @export + * @enum {string} + */ +exports.EventName = { + VAULTS_REPAY: 'VaultsRepay', + VAULTS_WITHDRAW: 'VaultsWithdraw', + VAULTS_DEPOSIT: 'VaultsDeposit', + VAULTS_MINT: 'VaultsMint', + VAULTS_KICK: 'VaultsKick', + VAULTS_TAKE: 'VaultsTake', + VAULTS_REDO: 'VaultsRedo', + VAULTS_YANK: 'VaultsYank', + LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', + LENDINGPOOL_REPAY: 'LendingpoolRepay', + LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', + LENDINGPOOL_BORROW: 'LendingpoolBorrow', + FILE: 'File', + PERMISSION: 'Permission', + MEDIAN: 'Median', + UNKNOWN: 'Unknown' +}; +//# sourceMappingURL=event-name.js.map \ No newline at end of file diff --git a/dist/service/model/event-name.js.map b/dist/service/model/event-name.js.map new file mode 100644 index 0000000..2fd1cbf --- /dev/null +++ b/dist/service/model/event-name.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-name.js","sourceRoot":"","sources":["../../../src/service/model/event-name.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE,aAAa;IAC3B,eAAe,EAAE,gBAAgB;IACjC,cAAc,EAAE,eAAe;IAC/B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,oBAAoB,EAAE,qBAAqB;IAC3C,iBAAiB,EAAE,kBAAkB;IACrC,4BAA4B,EAAE,4BAA4B;IAC1D,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/service/model/event-type.d.ts b/dist/service/model/event-type.d.ts new file mode 100644 index 0000000..7ca5041 --- /dev/null +++ b/dist/service/model/event-type.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The type of the event. who has triggered the event. + * @export + * @enum {string} + */ +export declare const EventType: { + readonly EXECUTIVE: "executive"; + readonly ORACLE: "oracle"; + readonly USER: "user"; +}; +export type EventType = typeof EventType[keyof typeof EventType]; +//# sourceMappingURL=event-type.d.ts.map \ No newline at end of file diff --git a/dist/service/model/event-type.d.ts.map b/dist/service/model/event-type.d.ts.map new file mode 100644 index 0000000..5157264 --- /dev/null +++ b/dist/service/model/event-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../../src/service/model/event-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/event-type.js b/dist/service/model/event-type.js new file mode 100644 index 0000000..4bdbc3d --- /dev/null +++ b/dist/service/model/event-type.js @@ -0,0 +1,27 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventType = void 0; +/** + * The type of the event. who has triggered the event. + * @export + * @enum {string} + */ +exports.EventType = { + EXECUTIVE: 'executive', + ORACLE: 'oracle', + USER: 'user' +}; +//# sourceMappingURL=event-type.js.map \ No newline at end of file diff --git a/dist/service/model/event-type.js.map b/dist/service/model/event-type.js.map new file mode 100644 index 0000000..04bae26 --- /dev/null +++ b/dist/service/model/event-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"event-type.js","sourceRoot":"","sources":["../../../src/service/model/event-type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,SAAS,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/service/model/extended-event.d.ts b/dist/service/model/extended-event.d.ts new file mode 100644 index 0000000..3a89a55 --- /dev/null +++ b/dist/service/model/extended-event.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './event-domain'; +import type { EventName } from './event-name'; +import type { EventType } from './event-type'; +import type { Log } from './log'; +/** + * + * @export + * @interface ExtendedEvent + */ +export interface ExtendedEvent { + /** + * + * @type {EventDomain} + * @memberof ExtendedEvent + */ + 'domain': EventDomain; + /** + * Identifier for the event. + * @type {number} + * @memberof ExtendedEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof ExtendedEvent + */ + 'name': EventName; + /** + * + * @type {Log} + * @memberof ExtendedEvent + */ + 'raw': Log; + /** + * + * @type {EventType} + * @memberof ExtendedEvent + */ + 'type': EventType; + /** + * The payload of the event. The payload is a JSON-marshalled + * @type {{ [key: string]: any | undefined; }} + * @memberof ExtendedEvent + */ + 'payload': { + [key: string]: any | undefined; + }; +} +//# sourceMappingURL=extended-event.d.ts.map \ No newline at end of file diff --git a/dist/service/model/extended-event.d.ts.map b/dist/service/model/extended-event.d.ts.map new file mode 100644 index 0000000..b030c21 --- /dev/null +++ b/dist/service/model/extended-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"extended-event.d.ts","sourceRoot":"","sources":["../../../src/service/model/extended-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAClD"} \ No newline at end of file diff --git a/dist/service/model/extended-event.js b/dist/service/model/extended-event.js new file mode 100644 index 0000000..91e6d0d --- /dev/null +++ b/dist/service/model/extended-event.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=extended-event.js.map \ No newline at end of file diff --git a/dist/service/model/extended-event.js.map b/dist/service/model/extended-event.js.map new file mode 100644 index 0000000..eb99b12 --- /dev/null +++ b/dist/service/model/extended-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"extended-event.js","sourceRoot":"","sources":["../../../src/service/model/extended-event.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/formatted-reserve-data.d.ts b/dist/service/model/formatted-reserve-data.d.ts new file mode 100644 index 0000000..c8832b9 --- /dev/null +++ b/dist/service/model/formatted-reserve-data.d.ts @@ -0,0 +1,154 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface FormattedReserveData + */ +export interface FormattedReserveData { + /** + * Identifier for the reserve data. + * @type {string} + * @memberof FormattedReserveData + */ + 'id': string; + /** + * + * @type {Token} + * @memberof FormattedReserveData + */ + 'underlyingAsset': Token; + /** + * Address of the associated zToken contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'zTokenAddress': string; + /** + * Address of the associated variable debt token contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'variableDebtTokenAddress': string; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'borrowingEnabled': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isActive': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isFrozen': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'usageAsCollateralEnabled': boolean; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveFactor': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'baseLTVasCollateral': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationThreshold': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationBonus': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'utilizationRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalLiquidity': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'availableLiquidity': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPR': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPR': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'price': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=formatted-reserve-data.d.ts.map \ No newline at end of file diff --git a/dist/service/model/formatted-reserve-data.d.ts.map b/dist/service/model/formatted-reserve-data.d.ts.map new file mode 100644 index 0000000..b9593d2 --- /dev/null +++ b/dist/service/model/formatted-reserve-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"formatted-reserve-data.d.ts","sourceRoot":"","sources":["../../../src/service/model/formatted-reserve-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,0BAA0B,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,oBAAoB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7D;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD"} \ No newline at end of file diff --git a/dist/service/model/formatted-reserve-data.js b/dist/service/model/formatted-reserve-data.js new file mode 100644 index 0000000..79ba4f6 --- /dev/null +++ b/dist/service/model/formatted-reserve-data.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=formatted-reserve-data.js.map \ No newline at end of file diff --git a/dist/service/model/formatted-reserve-data.js.map b/dist/service/model/formatted-reserve-data.js.map new file mode 100644 index 0000000..7036bd4 --- /dev/null +++ b/dist/service/model/formatted-reserve-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"formatted-reserve-data.js","sourceRoot":"","sources":["../../../src/service/model/formatted-reserve-data.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/ilk.d.ts b/dist/service/model/ilk.d.ts new file mode 100644 index 0000000..5ff1997 --- /dev/null +++ b/dist/service/model/ilk.d.ts @@ -0,0 +1,150 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Ilk + */ +export interface Ilk { + /** + * Name of the ILK + * @type {string} + * @memberof Ilk + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Ilk + */ + 'symbol': Symbol; + /** + * Minimum Collateralization Ratio + * @type {string} + * @memberof Ilk + */ + 'minimumCollateralizationRatio': string; + /** + * Maximum Loan To Value + * @type {string} + * @memberof Ilk + */ + 'maximumLoanToValue': string; + /** + * Liquidation Penalty + * @type {string} + * @memberof Ilk + */ + 'liquidationPenalty': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debtCeiling': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debt': { + [key: string]: string | undefined; + }; + /** + * Annual Stability Fee + * @type {string} + * @memberof Ilk + */ + 'annualStabilityFee': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dustLimit': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'price': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'nextPrice': { + [key: string]: string | undefined; + }; + /** + * Join Address + * @type {string} + * @memberof Ilk + */ + 'join': string; + /** + * Median Address + * @type {string} + * @memberof Ilk + */ + 'median': string; + /** + * Gem Address + * @type {string} + * @memberof Ilk + */ + 'gem': string; + /** + * Clipper Address + * @type {string} + * @memberof Ilk + */ + 'clipper': string; + /** + * Pip Address + * @type {string} + * @memberof Ilk + */ + 'pip': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'hole': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dirt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'availableToBorrow': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=ilk.d.ts.map \ No newline at end of file diff --git a/dist/service/model/ilk.d.ts.map b/dist/service/model/ilk.d.ts.map new file mode 100644 index 0000000..4c17d00 --- /dev/null +++ b/dist/service/model/ilk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilk.d.ts","sourceRoot":"","sources":["../../../src/service/model/ilk.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,+BAA+B,EAAE,MAAM,CAAC;IACxC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC/D"} \ No newline at end of file diff --git a/dist/service/model/ilk.js b/dist/service/model/ilk.js new file mode 100644 index 0000000..575046d --- /dev/null +++ b/dist/service/model/ilk.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ilk.js.map \ No newline at end of file diff --git a/dist/service/model/ilk.js.map b/dist/service/model/ilk.js.map new file mode 100644 index 0000000..a6c6ebb --- /dev/null +++ b/dist/service/model/ilk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilk.js","sourceRoot":"","sources":["../../../src/service/model/ilk.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/ilks-response.d.ts b/dist/service/model/ilks-response.d.ts new file mode 100644 index 0000000..b9bd0bb --- /dev/null +++ b/dist/service/model/ilks-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface IlksResponse + */ +export interface IlksResponse { + /** + * + * @type {Array} + * @memberof IlksResponse + */ + 'data': Array; +} +//# sourceMappingURL=ilks-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/ilks-response.d.ts.map b/dist/service/model/ilks-response.d.ts.map new file mode 100644 index 0000000..df0827d --- /dev/null +++ b/dist/service/model/ilks-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/ilks-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/service/model/ilks-response.js b/dist/service/model/ilks-response.js new file mode 100644 index 0000000..0b5fefc --- /dev/null +++ b/dist/service/model/ilks-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ilks-response.js.map \ No newline at end of file diff --git a/dist/service/model/ilks-response.js.map b/dist/service/model/ilks-response.js.map new file mode 100644 index 0000000..0bfa0da --- /dev/null +++ b/dist/service/model/ilks-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ilks-response.js","sourceRoot":"","sources":["../../../src/service/model/ilks-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/index.d.ts b/dist/service/model/index.d.ts new file mode 100644 index 0000000..e7deced --- /dev/null +++ b/dist/service/model/index.d.ts @@ -0,0 +1,107 @@ +export * from './account'; +export * from './account-lendingpool-summary'; +export * from './account-stablecoin-system-summary'; +export * from './account-staking-summary'; +export * from './address'; +export * from './address-response'; +export * from './balance'; +export * from './basic-event'; +export * from './chain-activity'; +export * from './chain-activity-step'; +export * from './chain-activity-step-data'; +export * from './dutch-amount'; +export * from './eip712-sign-request'; +export * from './error-message'; +export * from './event-details-response'; +export * from './event-domain'; +export * from './event-name'; +export * from './event-type'; +export * from './extended-event'; +export * from './formatted-reserve-data'; +export * from './ilk'; +export * from './ilks-response'; +export * from './lendingpool-borrow'; +export * from './lendingpool-borrow-tx-request'; +export * from './lendingpool-borrow-tx-response'; +export * from './lendingpool-deposit'; +export * from './lendingpool-deposit-tx-request'; +export * from './lendingpool-deposit-tx-response'; +export * from './lendingpool-repay-tx-request'; +export * from './lendingpool-repay-tx-response'; +export * from './lendingpool-stats'; +export * from './lendingpool-tx-response'; +export * from './lendingpool-use-asset-as-collateral-tx-request'; +export * from './lendingpool-use-asset-as-collateral-tx-response'; +export * from './lendingpool-withdraw-tx-request'; +export * from './lendingpool-withdraw-tx-response'; +export * from './log'; +export * from './method-parameters'; +export * from './model-error'; +export * from './order'; +export * from './order-info'; +export * from './order-response'; +export * from './order-type'; +export * from './permit-single'; +export * from './personal-sign-request'; +export * from './prepared-tx'; +export * from './price'; +export * from './price-list-response'; +export * from './quote-request'; +export * from './quote-request-options'; +export * from './quote-response'; +export * from './raw-dutch-amount'; +export * from './route-item'; +export * from './scoreboard'; +export * from './scoreboard-item'; +export * from './stablecoin-system-bark-tx-request'; +export * from './stablecoin-system-create-vault-tx-request'; +export * from './stablecoin-system-deposit-collateral-tx-request'; +export * from './stablecoin-system-gemexit-tx-request'; +export * from './stablecoin-system-mint-zar-tx-request'; +export * from './stablecoin-system-redo-tx-request'; +export * from './stablecoin-system-repay-zar-tx-request'; +export * from './stablecoin-system-stats'; +export * from './stablecoin-system-take-tx-request'; +export * from './stablecoin-system-withdraw-collateral-tx-request'; +export * from './stablecoin-system-zarexit-tx-request'; +export * from './stablecoin-system-zarjoin-tx-request'; +export * from './stake-balance'; +export * from './stake-plan'; +export * from './stake-plans-response'; +export * from './staking-collect-reward-tx-request'; +export * from './staking-collect-reward-tx-response'; +export * from './staking-stake-tx-request'; +export * from './staking-stake-tx-response'; +export * from './staking-withdraw-tx-request'; +export * from './staking-withdraw-tx-response'; +export * from './stats'; +export * from './symbol'; +export * from './system-bad-debt'; +export * from './system-debt'; +export * from './system-debt-ceiling'; +export * from './system-surplus'; +export * from './system-surplus-buffer'; +export * from './system-surplus-lot-size'; +export * from './time-range'; +export * from './timestamp'; +export * from './token'; +export * from './trade-type'; +export * from './type'; +export * from './typed-data'; +export * from './typed-data-domain'; +export * from './unclaimed-reward'; +export * from './update-order-request'; +export * from './user-borrows-response'; +export * from './user-deposits-response'; +export * from './user-error'; +export * from './user-stake'; +export * from './user-stakes-response'; +export * from './v3-pool-in-route'; +export * from './vault'; +export * from './vault-event'; +export * from './vault-event-extension'; +export * from './vault-event-item'; +export * from './vault-events-response'; +export * from './vaults-response'; +export * from './wallet-balance'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/service/model/index.d.ts.map b/dist/service/model/index.d.ts.map new file mode 100644 index 0000000..e4e40c5 --- /dev/null +++ b/dist/service/model/index.d.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AqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/dist/service/model/index.js b/dist/service/model/index.js new file mode 100644 index 0000000..4ae7438 --- /dev/null +++ b/dist/service/model/index.js @@ -0,0 +1,110 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./account"), exports); +tslib_1.__exportStar(require("./account-lendingpool-summary"), exports); +tslib_1.__exportStar(require("./account-stablecoin-system-summary"), exports); +tslib_1.__exportStar(require("./account-staking-summary"), exports); +tslib_1.__exportStar(require("./address"), exports); +tslib_1.__exportStar(require("./address-response"), exports); +tslib_1.__exportStar(require("./balance"), exports); +tslib_1.__exportStar(require("./basic-event"), exports); +tslib_1.__exportStar(require("./chain-activity"), exports); +tslib_1.__exportStar(require("./chain-activity-step"), exports); +tslib_1.__exportStar(require("./chain-activity-step-data"), exports); +tslib_1.__exportStar(require("./dutch-amount"), exports); +tslib_1.__exportStar(require("./eip712-sign-request"), exports); +tslib_1.__exportStar(require("./error-message"), exports); +tslib_1.__exportStar(require("./event-details-response"), exports); +tslib_1.__exportStar(require("./event-domain"), exports); +tslib_1.__exportStar(require("./event-name"), exports); +tslib_1.__exportStar(require("./event-type"), exports); +tslib_1.__exportStar(require("./extended-event"), exports); +tslib_1.__exportStar(require("./formatted-reserve-data"), exports); +tslib_1.__exportStar(require("./ilk"), exports); +tslib_1.__exportStar(require("./ilks-response"), exports); +tslib_1.__exportStar(require("./lendingpool-borrow"), exports); +tslib_1.__exportStar(require("./lendingpool-borrow-tx-request"), exports); +tslib_1.__exportStar(require("./lendingpool-borrow-tx-response"), exports); +tslib_1.__exportStar(require("./lendingpool-deposit"), exports); +tslib_1.__exportStar(require("./lendingpool-deposit-tx-request"), exports); +tslib_1.__exportStar(require("./lendingpool-deposit-tx-response"), exports); +tslib_1.__exportStar(require("./lendingpool-repay-tx-request"), exports); +tslib_1.__exportStar(require("./lendingpool-repay-tx-response"), exports); +tslib_1.__exportStar(require("./lendingpool-stats"), exports); +tslib_1.__exportStar(require("./lendingpool-tx-response"), exports); +tslib_1.__exportStar(require("./lendingpool-use-asset-as-collateral-tx-request"), exports); +tslib_1.__exportStar(require("./lendingpool-use-asset-as-collateral-tx-response"), exports); +tslib_1.__exportStar(require("./lendingpool-withdraw-tx-request"), exports); +tslib_1.__exportStar(require("./lendingpool-withdraw-tx-response"), exports); +tslib_1.__exportStar(require("./log"), exports); +tslib_1.__exportStar(require("./method-parameters"), exports); +tslib_1.__exportStar(require("./model-error"), exports); +tslib_1.__exportStar(require("./order"), exports); +tslib_1.__exportStar(require("./order-info"), exports); +tslib_1.__exportStar(require("./order-response"), exports); +tslib_1.__exportStar(require("./order-type"), exports); +tslib_1.__exportStar(require("./permit-single"), exports); +tslib_1.__exportStar(require("./personal-sign-request"), exports); +tslib_1.__exportStar(require("./prepared-tx"), exports); +tslib_1.__exportStar(require("./price"), exports); +tslib_1.__exportStar(require("./price-list-response"), exports); +tslib_1.__exportStar(require("./quote-request"), exports); +tslib_1.__exportStar(require("./quote-request-options"), exports); +tslib_1.__exportStar(require("./quote-response"), exports); +tslib_1.__exportStar(require("./raw-dutch-amount"), exports); +tslib_1.__exportStar(require("./route-item"), exports); +tslib_1.__exportStar(require("./scoreboard"), exports); +tslib_1.__exportStar(require("./scoreboard-item"), exports); +tslib_1.__exportStar(require("./stablecoin-system-bark-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-create-vault-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-deposit-collateral-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-gemexit-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-mint-zar-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-redo-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-repay-zar-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-stats"), exports); +tslib_1.__exportStar(require("./stablecoin-system-take-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-withdraw-collateral-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-zarexit-tx-request"), exports); +tslib_1.__exportStar(require("./stablecoin-system-zarjoin-tx-request"), exports); +tslib_1.__exportStar(require("./stake-balance"), exports); +tslib_1.__exportStar(require("./stake-plan"), exports); +tslib_1.__exportStar(require("./stake-plans-response"), exports); +tslib_1.__exportStar(require("./staking-collect-reward-tx-request"), exports); +tslib_1.__exportStar(require("./staking-collect-reward-tx-response"), exports); +tslib_1.__exportStar(require("./staking-stake-tx-request"), exports); +tslib_1.__exportStar(require("./staking-stake-tx-response"), exports); +tslib_1.__exportStar(require("./staking-withdraw-tx-request"), exports); +tslib_1.__exportStar(require("./staking-withdraw-tx-response"), exports); +tslib_1.__exportStar(require("./stats"), exports); +tslib_1.__exportStar(require("./symbol"), exports); +tslib_1.__exportStar(require("./system-bad-debt"), exports); +tslib_1.__exportStar(require("./system-debt"), exports); +tslib_1.__exportStar(require("./system-debt-ceiling"), exports); +tslib_1.__exportStar(require("./system-surplus"), exports); +tslib_1.__exportStar(require("./system-surplus-buffer"), exports); +tslib_1.__exportStar(require("./system-surplus-lot-size"), exports); +tslib_1.__exportStar(require("./time-range"), exports); +tslib_1.__exportStar(require("./timestamp"), exports); +tslib_1.__exportStar(require("./token"), exports); +tslib_1.__exportStar(require("./trade-type"), exports); +tslib_1.__exportStar(require("./type"), exports); +tslib_1.__exportStar(require("./typed-data"), exports); +tslib_1.__exportStar(require("./typed-data-domain"), exports); +tslib_1.__exportStar(require("./unclaimed-reward"), exports); +tslib_1.__exportStar(require("./update-order-request"), exports); +tslib_1.__exportStar(require("./user-borrows-response"), exports); +tslib_1.__exportStar(require("./user-deposits-response"), exports); +tslib_1.__exportStar(require("./user-error"), exports); +tslib_1.__exportStar(require("./user-stake"), exports); +tslib_1.__exportStar(require("./user-stakes-response"), exports); +tslib_1.__exportStar(require("./v3-pool-in-route"), exports); +tslib_1.__exportStar(require("./vault"), exports); +tslib_1.__exportStar(require("./vault-event"), exports); +tslib_1.__exportStar(require("./vault-event-extension"), exports); +tslib_1.__exportStar(require("./vault-event-item"), exports); +tslib_1.__exportStar(require("./vault-events-response"), exports); +tslib_1.__exportStar(require("./vaults-response"), exports); +tslib_1.__exportStar(require("./wallet-balance"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/service/model/index.js.map b/dist/service/model/index.js.map new file mode 100644 index 0000000..bbbf581 --- /dev/null +++ b/dist/service/model/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/model/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,wEAA8C;AAC9C,8EAAoD;AACpD,oEAA0C;AAC1C,oDAA0B;AAC1B,6DAAmC;AACnC,oDAA0B;AAC1B,wDAA8B;AAC9B,2DAAiC;AACjC,gEAAsC;AACtC,qEAA2C;AAC3C,yDAA+B;AAC/B,gEAAsC;AACtC,0DAAgC;AAChC,mEAAyC;AACzC,yDAA+B;AAC/B,uDAA6B;AAC7B,uDAA6B;AAC7B,2DAAiC;AACjC,mEAAyC;AACzC,gDAAsB;AACtB,0DAAgC;AAChC,+DAAqC;AACrC,0EAAgD;AAChD,2EAAiD;AACjD,gEAAsC;AACtC,2EAAiD;AACjD,4EAAkD;AAClD,yEAA+C;AAC/C,0EAAgD;AAChD,8DAAoC;AACpC,oEAA0C;AAC1C,2FAAiE;AACjE,4FAAkE;AAClE,4EAAkD;AAClD,6EAAmD;AACnD,gDAAsB;AACtB,8DAAoC;AACpC,wDAA8B;AAC9B,kDAAwB;AACxB,uDAA6B;AAC7B,2DAAiC;AACjC,uDAA6B;AAC7B,0DAAgC;AAChC,kEAAwC;AACxC,wDAA8B;AAC9B,kDAAwB;AACxB,gEAAsC;AACtC,0DAAgC;AAChC,kEAAwC;AACxC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,uDAA6B;AAC7B,4DAAkC;AAClC,8EAAoD;AACpD,sFAA4D;AAC5D,4FAAkE;AAClE,iFAAuD;AACvD,kFAAwD;AACxD,8EAAoD;AACpD,mFAAyD;AACzD,oEAA0C;AAC1C,8EAAoD;AACpD,6FAAmE;AACnE,iFAAuD;AACvD,iFAAuD;AACvD,0DAAgC;AAChC,uDAA6B;AAC7B,iEAAuC;AACvC,8EAAoD;AACpD,+EAAqD;AACrD,qEAA2C;AAC3C,sEAA4C;AAC5C,wEAA8C;AAC9C,yEAA+C;AAC/C,kDAAwB;AACxB,mDAAyB;AACzB,4DAAkC;AAClC,wDAA8B;AAC9B,gEAAsC;AACtC,2DAAiC;AACjC,kEAAwC;AACxC,oEAA0C;AAC1C,uDAA6B;AAC7B,sDAA4B;AAC5B,kDAAwB;AACxB,uDAA6B;AAC7B,iDAAuB;AACvB,uDAA6B;AAC7B,8DAAoC;AACpC,6DAAmC;AACnC,iEAAuC;AACvC,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,uDAA6B;AAC7B,iEAAuC;AACvC,6DAAmC;AACnC,kDAAwB;AACxB,wDAA8B;AAC9B,kEAAwC;AACxC,6DAAmC;AACnC,kEAAwC;AACxC,4DAAkC;AAClC,2DAAiC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-request.d.ts b/dist/service/model/lendingpool-borrow-tx-request.d.ts new file mode 100644 index 0000000..8357b05 --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolBorrowTxRequest + */ +export interface LendingpoolBorrowTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'symbol': string; + /** + * The amount to borrow in native token units + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-borrow-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-request.d.ts.map b/dist/service/model/lendingpool-borrow-tx-request.d.ts.map new file mode 100644 index 0000000..e0bda6c --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-request.js b/dist/service/model/lendingpool-borrow-tx-request.js new file mode 100644 index 0000000..107b499 --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-borrow-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-request.js.map b/dist/service/model/lendingpool-borrow-tx-request.js.map new file mode 100644 index 0000000..8b9eed5 --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-response.d.ts b/dist/service/model/lendingpool-borrow-tx-response.d.ts new file mode 100644 index 0000000..00707d9 --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolBorrowTxResponse + */ +export interface LendingpoolBorrowTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolBorrowTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolBorrowTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-borrow-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-response.d.ts.map b/dist/service/model/lendingpool-borrow-tx-response.d.ts.map new file mode 100644 index 0000000..690307d --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-response.js b/dist/service/model/lendingpool-borrow-tx-response.js new file mode 100644 index 0000000..d5ce64c --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-borrow-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow-tx-response.js.map b/dist/service/model/lendingpool-borrow-tx-response.js.map new file mode 100644 index 0000000..197e554 --- /dev/null +++ b/dist/service/model/lendingpool-borrow-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow.d.ts b/dist/service/model/lendingpool-borrow.d.ts new file mode 100644 index 0000000..c2604eb --- /dev/null +++ b/dist/service/model/lendingpool-borrow.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface LendingpoolBorrow + */ +export interface LendingpoolBorrow { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolBorrow + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * The borrow rate. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'borrowRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'maxBorrowAmount': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=lendingpool-borrow.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow.d.ts.map b/dist/service/model/lendingpool-borrow.d.ts.map new file mode 100644 index 0000000..6345e12 --- /dev/null +++ b/dist/service/model/lendingpool-borrow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC7D"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow.js b/dist/service/model/lendingpool-borrow.js new file mode 100644 index 0000000..d447722 --- /dev/null +++ b/dist/service/model/lendingpool-borrow.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-borrow.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-borrow.js.map b/dist/service/model/lendingpool-borrow.js.map new file mode 100644 index 0000000..daf2f23 --- /dev/null +++ b/dist/service/model/lendingpool-borrow.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-borrow.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-borrow.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-request.d.ts b/dist/service/model/lendingpool-deposit-tx-request.d.ts new file mode 100644 index 0000000..e856b43 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolDepositTxRequest + */ +export interface LendingpoolDepositTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'symbol': string; + /** + * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-deposit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-request.d.ts.map b/dist/service/model/lendingpool-deposit-tx-request.d.ts.map new file mode 100644 index 0000000..3603f3b --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-request.js b/dist/service/model/lendingpool-deposit-tx-request.js new file mode 100644 index 0000000..4114db2 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-deposit-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-request.js.map b/dist/service/model/lendingpool-deposit-tx-request.js.map new file mode 100644 index 0000000..dee4c77 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-response.d.ts b/dist/service/model/lendingpool-deposit-tx-response.d.ts new file mode 100644 index 0000000..1c6e949 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolDepositTxResponse + */ +export interface LendingpoolDepositTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolDepositTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolDepositTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-deposit-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-response.d.ts.map b/dist/service/model/lendingpool-deposit-tx-response.d.ts.map new file mode 100644 index 0000000..d2f21b9 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-response.js b/dist/service/model/lendingpool-deposit-tx-response.js new file mode 100644 index 0000000..974e85a --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-deposit-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit-tx-response.js.map b/dist/service/model/lendingpool-deposit-tx-response.js.map new file mode 100644 index 0000000..8bb5704 --- /dev/null +++ b/dist/service/model/lendingpool-deposit-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit.d.ts b/dist/service/model/lendingpool-deposit.d.ts new file mode 100644 index 0000000..be443a2 --- /dev/null +++ b/dist/service/model/lendingpool-deposit.d.ts @@ -0,0 +1,52 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface LendingpoolDeposit + */ +export interface LendingpoolDeposit { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolDeposit + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolDeposit + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * Whether the user has enabled the asset as collateral. + * @type {boolean} + * @memberof LendingpoolDeposit + */ + 'usageAsCollateralEnabledOnUser': boolean; + /** + * The supply APY. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'supplyAPY': string; +} +//# sourceMappingURL=lendingpool-deposit.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit.d.ts.map b/dist/service/model/lendingpool-deposit.d.ts.map new file mode 100644 index 0000000..e12773a --- /dev/null +++ b/dist/service/model/lendingpool-deposit.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,gCAAgC,EAAE,OAAO,CAAC;IAC1C;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit.js b/dist/service/model/lendingpool-deposit.js new file mode 100644 index 0000000..85d710c --- /dev/null +++ b/dist/service/model/lendingpool-deposit.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-deposit.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-deposit.js.map b/dist/service/model/lendingpool-deposit.js.map new file mode 100644 index 0000000..4a3b9f8 --- /dev/null +++ b/dist/service/model/lendingpool-deposit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-deposit.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-deposit.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-request.d.ts b/dist/service/model/lendingpool-repay-tx-request.d.ts new file mode 100644 index 0000000..94957fe --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolRepayTxRequest + */ +export interface LendingpoolRepayTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'symbol': string; + /** + * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-repay-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-request.d.ts.map b/dist/service/model/lendingpool-repay-tx-request.d.ts.map new file mode 100644 index 0000000..21eae8c --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-repay-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-request.js b/dist/service/model/lendingpool-repay-tx-request.js new file mode 100644 index 0000000..e3576d4 --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-repay-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-request.js.map b/dist/service/model/lendingpool-repay-tx-request.js.map new file mode 100644 index 0000000..5b7f13a --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-repay-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-response.d.ts b/dist/service/model/lendingpool-repay-tx-response.d.ts new file mode 100644 index 0000000..489d30d --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolRepayTxResponse + */ +export interface LendingpoolRepayTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolRepayTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolRepayTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-repay-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-response.d.ts.map b/dist/service/model/lendingpool-repay-tx-response.d.ts.map new file mode 100644 index 0000000..56c91c6 --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-repay-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-response.js b/dist/service/model/lendingpool-repay-tx-response.js new file mode 100644 index 0000000..77c9a4a --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-repay-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-repay-tx-response.js.map b/dist/service/model/lendingpool-repay-tx-response.js.map new file mode 100644 index 0000000..6741ace --- /dev/null +++ b/dist/service/model/lendingpool-repay-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-repay-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-repay-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-stats.d.ts b/dist/service/model/lendingpool-stats.d.ts new file mode 100644 index 0000000..4c1e227 --- /dev/null +++ b/dist/service/model/lendingpool-stats.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolStats + */ +export interface LendingpoolStats { + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalAvailable': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalBorrows': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalMarketSize': any; +} +//# sourceMappingURL=lendingpool-stats.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-stats.d.ts.map b/dist/service/model/lendingpool-stats.d.ts.map new file mode 100644 index 0000000..67f76f5 --- /dev/null +++ b/dist/service/model/lendingpool-stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-stats.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,gBAAgB,EAAE,GAAG,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,GAAG,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,EAAE,GAAG,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-stats.js b/dist/service/model/lendingpool-stats.js new file mode 100644 index 0000000..e2d541d --- /dev/null +++ b/dist/service/model/lendingpool-stats.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-stats.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-stats.js.map b/dist/service/model/lendingpool-stats.js.map new file mode 100644 index 0000000..82bda0b --- /dev/null +++ b/dist/service/model/lendingpool-stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-stats.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-stats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-tx-response.d.ts b/dist/service/model/lendingpool-tx-response.d.ts new file mode 100644 index 0000000..b6a76e8 --- /dev/null +++ b/dist/service/model/lendingpool-tx-response.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolTxResponse + */ +export interface LendingpoolTxResponse { + /** + * The health factor after the deposit + * @type {string} + * @memberof LendingpoolTxResponse + */ + 'nextHealthFactor'?: string; +} +//# sourceMappingURL=lendingpool-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-tx-response.d.ts.map b/dist/service/model/lendingpool-tx-response.d.ts.map new file mode 100644 index 0000000..fa18a7f --- /dev/null +++ b/dist/service/model/lendingpool-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-tx-response.js b/dist/service/model/lendingpool-tx-response.js new file mode 100644 index 0000000..14fc546 --- /dev/null +++ b/dist/service/model/lendingpool-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-tx-response.js.map b/dist/service/model/lendingpool-tx-response.js.map new file mode 100644 index 0000000..5b755d3 --- /dev/null +++ b/dist/service/model/lendingpool-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts new file mode 100644 index 0000000..61e0721 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxRequest + */ +export interface LendingpoolUseAssetAsCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'user': string; + /** + * Symbol of asset + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'symbol': string; + /** + * Enable or disable the asset as collateral + * @type {boolean} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'enabled': boolean; +} +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..fc792aa --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACrD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js new file mode 100644 index 0000000..ace58af --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map new file mode 100644 index 0000000..0d30944 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts new file mode 100644 index 0000000..b95eee3 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxResponse + */ +export interface LendingpoolUseAssetAsCollateralTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map new file mode 100644 index 0000000..48729c8 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACtD;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js new file mode 100644 index 0000000..f4de391 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-use-asset-as-collateral-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map new file mode 100644 index 0000000..0c578a7 --- /dev/null +++ b/dist/service/model/lendingpool-use-asset-as-collateral-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-use-asset-as-collateral-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-request.d.ts b/dist/service/model/lendingpool-withdraw-tx-request.d.ts new file mode 100644 index 0000000..f2e612e --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolWithdrawTxRequest + */ +export interface LendingpoolWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'symbol': string; + /** + * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=lendingpool-withdraw-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-request.d.ts.map b/dist/service/model/lendingpool-withdraw-tx-request.d.ts.map new file mode 100644 index 0000000..56173f7 --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-withdraw-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-request.js b/dist/service/model/lendingpool-withdraw-tx-request.js new file mode 100644 index 0000000..0f7f6ea --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-withdraw-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-request.js.map b/dist/service/model/lendingpool-withdraw-tx-request.js.map new file mode 100644 index 0000000..e946045 --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-withdraw-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-response.d.ts b/dist/service/model/lendingpool-withdraw-tx-response.d.ts new file mode 100644 index 0000000..7edf63f --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-response.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; +/** + * + * @export + * @interface LendingpoolWithdrawTxResponse + */ +export interface LendingpoolWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolWithdrawTxResponse + */ + 'response'?: LendingpoolTxResponse; +} +//# sourceMappingURL=lendingpool-withdraw-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-response.d.ts.map b/dist/service/model/lendingpool-withdraw-tx-response.d.ts.map new file mode 100644 index 0000000..dbfc560 --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/lendingpool-withdraw-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC"} \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-response.js b/dist/service/model/lendingpool-withdraw-tx-response.js new file mode 100644 index 0000000..3bc7e25 --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=lendingpool-withdraw-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/lendingpool-withdraw-tx-response.js.map b/dist/service/model/lendingpool-withdraw-tx-response.js.map new file mode 100644 index 0000000..d207091 --- /dev/null +++ b/dist/service/model/lendingpool-withdraw-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lendingpool-withdraw-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/lendingpool-withdraw-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/log.d.ts b/dist/service/model/log.d.ts new file mode 100644 index 0000000..b328c6c --- /dev/null +++ b/dist/service/model/log.d.ts @@ -0,0 +1,88 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Log + */ +export interface Log { + /** + * The name of the log + * @type {string} + * @memberof Log + */ + 'name': string; + /** + * The contract address + * @type {string} + * @memberof Log + */ + 'contract': string; + /** + * + * @type {Timestamp} + * @memberof Log + */ + 'timestamp': Timestamp; + /** + * The Ethereum address + * @type {string} + * @memberof Log + */ + 'address': string; + /** + * The block number + * @type {number} + * @memberof Log + */ + 'blockNumber': number; + /** + * The transaction hash + * @type {string} + * @memberof Log + */ + 'txHash': string; + /** + * The block hash + * @type {string} + * @memberof Log + */ + 'blockHash': string; + /** + * The index + * @type {number} + * @memberof Log + */ + 'index': number; + /** + * + * @type {Array} + * @memberof Log + */ + 'topics': Array; + /** + * The data of the log + * @type {string} + * @memberof Log + */ + 'data': string; + /** + * The decoded log, if available + * @type {{ [key: string]: string | undefined; }} + * @memberof Log + */ + 'decoded'?: { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=log.d.ts.map \ No newline at end of file diff --git a/dist/service/model/log.d.ts.map b/dist/service/model/log.d.ts.map new file mode 100644 index 0000000..ac3662f --- /dev/null +++ b/dist/service/model/log.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/service/model/log.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACtD"} \ No newline at end of file diff --git a/dist/service/model/log.js b/dist/service/model/log.js new file mode 100644 index 0000000..a9e8505 --- /dev/null +++ b/dist/service/model/log.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=log.js.map \ No newline at end of file diff --git a/dist/service/model/log.js.map b/dist/service/model/log.js.map new file mode 100644 index 0000000..976f9b7 --- /dev/null +++ b/dist/service/model/log.js.map @@ -0,0 +1 @@ +{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/service/model/log.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/method-parameters.d.ts b/dist/service/model/method-parameters.d.ts new file mode 100644 index 0000000..f3d76da --- /dev/null +++ b/dist/service/model/method-parameters.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MethodParameters + */ +export interface MethodParameters { + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'to': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'calldata': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'value': string; +} +//# sourceMappingURL=method-parameters.d.ts.map \ No newline at end of file diff --git a/dist/service/model/method-parameters.d.ts.map b/dist/service/model/method-parameters.d.ts.map new file mode 100644 index 0000000..f20a0f2 --- /dev/null +++ b/dist/service/model/method-parameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"method-parameters.d.ts","sourceRoot":"","sources":["../../../src/service/model/method-parameters.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/service/model/method-parameters.js b/dist/service/model/method-parameters.js new file mode 100644 index 0000000..78efcca --- /dev/null +++ b/dist/service/model/method-parameters.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=method-parameters.js.map \ No newline at end of file diff --git a/dist/service/model/method-parameters.js.map b/dist/service/model/method-parameters.js.map new file mode 100644 index 0000000..a36c4d2 --- /dev/null +++ b/dist/service/model/method-parameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"method-parameters.js","sourceRoot":"","sources":["../../../src/service/model/method-parameters.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/model-error.d.ts b/dist/service/model/model-error.d.ts new file mode 100644 index 0000000..18cc02e --- /dev/null +++ b/dist/service/model/model-error.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} +//# sourceMappingURL=model-error.d.ts.map \ No newline at end of file diff --git a/dist/service/model/model-error.d.ts.map b/dist/service/model/model-error.d.ts.map new file mode 100644 index 0000000..f0e9316 --- /dev/null +++ b/dist/service/model/model-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.d.ts","sourceRoot":"","sources":["../../../src/service/model/model-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/service/model/model-error.js b/dist/service/model/model-error.js new file mode 100644 index 0000000..50c41d2 --- /dev/null +++ b/dist/service/model/model-error.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=model-error.js.map \ No newline at end of file diff --git a/dist/service/model/model-error.js.map b/dist/service/model/model-error.js.map new file mode 100644 index 0000000..cc97232 --- /dev/null +++ b/dist/service/model/model-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.js","sourceRoot":"","sources":["../../../src/service/model/model-error.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/order-info.d.ts b/dist/service/model/order-info.d.ts new file mode 100644 index 0000000..6b5b85b --- /dev/null +++ b/dist/service/model/order-info.d.ts @@ -0,0 +1,105 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DutchAmount } from './dutch-amount'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface OrderInfo + */ +export interface OrderInfo { + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'permit2Address': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'reactor': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'swapper': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'nonce': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'deadline': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationContract': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationData': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayStartTime': Timestamp; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayEndTime': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'exclusiveFiller': string; + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'exclusivityOverrideBps': number; + /** + * + * @type {DutchAmount} + * @memberof OrderInfo + */ + 'input': DutchAmount; + /** + * + * @type {Array} + * @memberof OrderInfo + */ + 'outputs': Array; +} +//# sourceMappingURL=order-info.d.ts.map \ No newline at end of file diff --git a/dist/service/model/order-info.d.ts.map b/dist/service/model/order-info.d.ts.map new file mode 100644 index 0000000..9888a0a --- /dev/null +++ b/dist/service/model/order-info.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-info.d.ts","sourceRoot":"","sources":["../../../src/service/model/order-info.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACjC"} \ No newline at end of file diff --git a/dist/service/model/order-info.js b/dist/service/model/order-info.js new file mode 100644 index 0000000..702e8b9 --- /dev/null +++ b/dist/service/model/order-info.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=order-info.js.map \ No newline at end of file diff --git a/dist/service/model/order-info.js.map b/dist/service/model/order-info.js.map new file mode 100644 index 0000000..312113f --- /dev/null +++ b/dist/service/model/order-info.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-info.js","sourceRoot":"","sources":["../../../src/service/model/order-info.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/order-response.d.ts b/dist/service/model/order-response.d.ts new file mode 100644 index 0000000..ff4f4e8 --- /dev/null +++ b/dist/service/model/order-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Order } from './order'; +/** + * + * @export + * @interface OrderResponse + */ +export interface OrderResponse { + /** + * + * @type {Array} + * @memberof OrderResponse + */ + 'data': Array; +} +//# sourceMappingURL=order-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/order-response.d.ts.map b/dist/service/model/order-response.d.ts.map new file mode 100644 index 0000000..e639aca --- /dev/null +++ b/dist/service/model/order-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/order-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/order-response.js b/dist/service/model/order-response.js new file mode 100644 index 0000000..e48b5ef --- /dev/null +++ b/dist/service/model/order-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=order-response.js.map \ No newline at end of file diff --git a/dist/service/model/order-response.js.map b/dist/service/model/order-response.js.map new file mode 100644 index 0000000..0623e94 --- /dev/null +++ b/dist/service/model/order-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-response.js","sourceRoot":"","sources":["../../../src/service/model/order-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/order-type.d.ts b/dist/service/model/order-type.d.ts new file mode 100644 index 0000000..12c6778 --- /dev/null +++ b/dist/service/model/order-type.d.ts @@ -0,0 +1,22 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const OrderType: { + readonly CLASSIC: "Classic"; + readonly DUTCH_LIMIT: "DutchLimit"; +}; +export type OrderType = typeof OrderType[keyof typeof OrderType]; +//# sourceMappingURL=order-type.d.ts.map \ No newline at end of file diff --git a/dist/service/model/order-type.d.ts.map b/dist/service/model/order-type.d.ts.map new file mode 100644 index 0000000..22b7c36 --- /dev/null +++ b/dist/service/model/order-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order-type.d.ts","sourceRoot":"","sources":["../../../src/service/model/order-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/order-type.js b/dist/service/model/order-type.js new file mode 100644 index 0000000..bdaf799 --- /dev/null +++ b/dist/service/model/order-type.js @@ -0,0 +1,26 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderType = void 0; +/** + * + * @export + * @enum {string} + */ +exports.OrderType = { + CLASSIC: 'Classic', + DUTCH_LIMIT: 'DutchLimit' +}; +//# sourceMappingURL=order-type.js.map \ No newline at end of file diff --git a/dist/service/model/order-type.js.map b/dist/service/model/order-type.js.map new file mode 100644 index 0000000..44c750a --- /dev/null +++ b/dist/service/model/order-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order-type.js","sourceRoot":"","sources":["../../../src/service/model/order-type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,SAAS,GAAG;IACrB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,YAAY;CACnB,CAAC"} \ No newline at end of file diff --git a/dist/service/model/order.d.ts b/dist/service/model/order.d.ts new file mode 100644 index 0000000..a0503b6 --- /dev/null +++ b/dist/service/model/order.d.ts @@ -0,0 +1,88 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RawDutchAmount } from './raw-dutch-amount'; +/** + * + * @export + * @interface Order + */ +export interface Order { + /** + * + * @type {string} + * @memberof Order + */ + 'quoteId'?: string; + /** + * + * @type {Array} + * @memberof Order + */ + 'outputs': Array; + /** + * + * @type {string} + * @memberof Order + */ + 'encodedOrder': string; + /** + * + * @type {string} + * @memberof Order + */ + 'signature': string; + /** + * + * @type {RawDutchAmount} + * @memberof Order + */ + 'input': RawDutchAmount; + /** + * + * @type {string} + * @memberof Order + */ + 'orderStatus': OrderOrderStatusEnum; + /** + * + * @type {number} + * @memberof Order + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof Order + */ + 'orderHash': string; + /** + * + * @type {string} + * @memberof Order + */ + 'orderType': OrderOrderTypeEnum; +} +export declare const OrderOrderStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; +export declare const OrderOrderTypeEnum: { + readonly DUTCH: "dutch"; + readonly LIMIT: "limit"; +}; +export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; +//# sourceMappingURL=order.d.ts.map \ No newline at end of file diff --git a/dist/service/model/order.d.ts.map b/dist/service/model/order.d.ts.map new file mode 100644 index 0000000..a116bc4 --- /dev/null +++ b/dist/service/model/order.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/service/model/order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACjC;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,oBAAoB,CAAC;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,kBAAkB,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAClG,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/order.js b/dist/service/model/order.js new file mode 100644 index 0000000..17b6ca4 --- /dev/null +++ b/dist/service/model/order.js @@ -0,0 +1,29 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderOrderTypeEnum = exports.OrderOrderStatusEnum = void 0; +exports.OrderOrderStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +exports.OrderOrderTypeEnum = { + DUTCH: 'dutch', + LIMIT: 'limit' +}; +//# sourceMappingURL=order.js.map \ No newline at end of file diff --git a/dist/service/model/order.js.map b/dist/service/model/order.js.map new file mode 100644 index 0000000..2d43e50 --- /dev/null +++ b/dist/service/model/order.js.map @@ -0,0 +1 @@ +{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../src/service/model/order.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqEU,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC;AAGE,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC"} \ No newline at end of file diff --git a/dist/service/model/permit-single.d.ts b/dist/service/model/permit-single.d.ts new file mode 100644 index 0000000..bd573ca --- /dev/null +++ b/dist/service/model/permit-single.d.ts @@ -0,0 +1,32 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface PermitSingle + */ +export interface PermitSingle { + /** + * + * @type {TypedData} + * @memberof PermitSingle + */ + 'typedData': TypedData; + /** + * The hash of the permit that needs to be signed + * @type {string} + * @memberof PermitSingle + */ + 'hash': string; +} +//# sourceMappingURL=permit-single.d.ts.map \ No newline at end of file diff --git a/dist/service/model/permit-single.d.ts.map b/dist/service/model/permit-single.d.ts.map new file mode 100644 index 0000000..6847f40 --- /dev/null +++ b/dist/service/model/permit-single.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-single.d.ts","sourceRoot":"","sources":["../../../src/service/model/permit-single.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/service/model/permit-single.js b/dist/service/model/permit-single.js new file mode 100644 index 0000000..028d97f --- /dev/null +++ b/dist/service/model/permit-single.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=permit-single.js.map \ No newline at end of file diff --git a/dist/service/model/permit-single.js.map b/dist/service/model/permit-single.js.map new file mode 100644 index 0000000..8ae9950 --- /dev/null +++ b/dist/service/model/permit-single.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permit-single.js","sourceRoot":"","sources":["../../../src/service/model/permit-single.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/personal-sign-request.d.ts b/dist/service/model/personal-sign-request.d.ts new file mode 100644 index 0000000..5c5a35d --- /dev/null +++ b/dist/service/model/personal-sign-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PersonalSignRequest + */ +export interface PersonalSignRequest { + /** + * The message that needs to be signed + * @type {string} + * @memberof PersonalSignRequest + */ + 'message': string; +} +//# sourceMappingURL=personal-sign-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/personal-sign-request.d.ts.map b/dist/service/model/personal-sign-request.d.ts.map new file mode 100644 index 0000000..ddedbb0 --- /dev/null +++ b/dist/service/model/personal-sign-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"personal-sign-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/personal-sign-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/personal-sign-request.js b/dist/service/model/personal-sign-request.js new file mode 100644 index 0000000..38393f1 --- /dev/null +++ b/dist/service/model/personal-sign-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=personal-sign-request.js.map \ No newline at end of file diff --git a/dist/service/model/personal-sign-request.js.map b/dist/service/model/personal-sign-request.js.map new file mode 100644 index 0000000..20f68e0 --- /dev/null +++ b/dist/service/model/personal-sign-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"personal-sign-request.js","sourceRoot":"","sources":["../../../src/service/model/personal-sign-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/prepared-tx.d.ts b/dist/service/model/prepared-tx.d.ts new file mode 100644 index 0000000..bd83252 --- /dev/null +++ b/dist/service/model/prepared-tx.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MethodParameters } from './method-parameters'; +/** + * + * @export + * @interface PreparedTx + */ +export interface PreparedTx { + /** + * + * @type {string} + * @memberof PreparedTx + */ + 'type': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'label': { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof PreparedTx + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'gasFeeEstimate': { + [key: string]: string | undefined; + }; + /** + * + * @type {MethodParameters} + * @memberof PreparedTx + */ + 'methodParameters': MethodParameters; +} +//# sourceMappingURL=prepared-tx.d.ts.map \ No newline at end of file diff --git a/dist/service/model/prepared-tx.d.ts.map b/dist/service/model/prepared-tx.d.ts.map new file mode 100644 index 0000000..3705868 --- /dev/null +++ b/dist/service/model/prepared-tx.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prepared-tx.d.ts","sourceRoot":"","sources":["../../../src/service/model/prepared-tx.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,kBAAkB,EAAE,gBAAgB,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/service/model/prepared-tx.js b/dist/service/model/prepared-tx.js new file mode 100644 index 0000000..69e736e --- /dev/null +++ b/dist/service/model/prepared-tx.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=prepared-tx.js.map \ No newline at end of file diff --git a/dist/service/model/prepared-tx.js.map b/dist/service/model/prepared-tx.js.map new file mode 100644 index 0000000..ad5f0bc --- /dev/null +++ b/dist/service/model/prepared-tx.js.map @@ -0,0 +1 @@ +{"version":3,"file":"prepared-tx.js","sourceRoot":"","sources":["../../../src/service/model/prepared-tx.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/price-list-response.d.ts b/dist/service/model/price-list-response.d.ts new file mode 100644 index 0000000..6df2f56 --- /dev/null +++ b/dist/service/model/price-list-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Price } from './price'; +/** + * + * @export + * @interface PriceListResponse + */ +export interface PriceListResponse { + /** + * + * @type {Array} + * @memberof PriceListResponse + */ + 'data': Array; +} +//# sourceMappingURL=price-list-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/price-list-response.d.ts.map b/dist/service/model/price-list-response.d.ts.map new file mode 100644 index 0000000..bd99f59 --- /dev/null +++ b/dist/service/model/price-list-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"price-list-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/price-list-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/price-list-response.js b/dist/service/model/price-list-response.js new file mode 100644 index 0000000..044946d --- /dev/null +++ b/dist/service/model/price-list-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=price-list-response.js.map \ No newline at end of file diff --git a/dist/service/model/price-list-response.js.map b/dist/service/model/price-list-response.js.map new file mode 100644 index 0000000..e3810d9 --- /dev/null +++ b/dist/service/model/price-list-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"price-list-response.js","sourceRoot":"","sources":["../../../src/service/model/price-list-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/price.d.ts b/dist/service/model/price.d.ts new file mode 100644 index 0000000..1a37922 --- /dev/null +++ b/dist/service/model/price.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Price + */ +export interface Price { + /** + * + * @type {Symbol} + * @memberof Price + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Price + */ + 'value': { + [key: string]: string | undefined; + }; + /** + * + * @type {Timestamp} + * @memberof Price + */ + 'timestamp': Timestamp; +} +//# sourceMappingURL=price.d.ts.map \ No newline at end of file diff --git a/dist/service/model/price.d.ts.map b/dist/service/model/price.d.ts.map new file mode 100644 index 0000000..ad217f6 --- /dev/null +++ b/dist/service/model/price.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/service/model/price.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/service/model/price.js b/dist/service/model/price.js new file mode 100644 index 0000000..4d953b0 --- /dev/null +++ b/dist/service/model/price.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=price.js.map \ No newline at end of file diff --git a/dist/service/model/price.js.map b/dist/service/model/price.js.map new file mode 100644 index 0000000..6e58f80 --- /dev/null +++ b/dist/service/model/price.js.map @@ -0,0 +1 @@ +{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/service/model/price.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/quote-request-options.d.ts b/dist/service/model/quote-request-options.d.ts new file mode 100644 index 0000000..c51848c --- /dev/null +++ b/dist/service/model/quote-request-options.d.ts @@ -0,0 +1,79 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface QuoteRequestOptions + */ +export interface QuoteRequestOptions { + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'dryRun'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'slippageTolerance'?: string; + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'useSyntheticQuotes'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitSignature'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitNonce'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitExpiration'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitAmount'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitSigDeadline'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'quoteId'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'encodedOrder'?: string; +} +//# sourceMappingURL=quote-request-options.d.ts.map \ No newline at end of file diff --git a/dist/service/model/quote-request-options.d.ts.map b/dist/service/model/quote-request-options.d.ts.map new file mode 100644 index 0000000..6d80d3b --- /dev/null +++ b/dist/service/model/quote-request-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request-options.d.ts","sourceRoot":"","sources":["../../../src/service/model/quote-request-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/service/model/quote-request-options.js b/dist/service/model/quote-request-options.js new file mode 100644 index 0000000..45cbfe5 --- /dev/null +++ b/dist/service/model/quote-request-options.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=quote-request-options.js.map \ No newline at end of file diff --git a/dist/service/model/quote-request-options.js.map b/dist/service/model/quote-request-options.js.map new file mode 100644 index 0000000..334a103 --- /dev/null +++ b/dist/service/model/quote-request-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request-options.js","sourceRoot":"","sources":["../../../src/service/model/quote-request-options.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/quote-request.d.ts b/dist/service/model/quote-request.d.ts new file mode 100644 index 0000000..9b2c45b --- /dev/null +++ b/dist/service/model/quote-request.d.ts @@ -0,0 +1,70 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderType } from './order-type'; +import type { QuoteRequestOptions } from './quote-request-options'; +import type { TradeType } from './trade-type'; +/** + * + * @export + * @interface QuoteRequest + */ +export interface QuoteRequest { + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'requestId'?: string; + /** + * + * @type {OrderType} + * @memberof QuoteRequest + */ + 'type'?: OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteRequest + */ + 'tradeType': TradeType; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'inputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'outputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'recipient': string; + /** + * + * @type {QuoteRequestOptions} + * @memberof QuoteRequest + */ + 'options'?: QuoteRequestOptions; +} +//# sourceMappingURL=quote-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/quote-request.d.ts.map b/dist/service/model/quote-request.d.ts.map new file mode 100644 index 0000000..e7ff86c --- /dev/null +++ b/dist/service/model/quote-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/quote-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/service/model/quote-request.js b/dist/service/model/quote-request.js new file mode 100644 index 0000000..4cbb7e3 --- /dev/null +++ b/dist/service/model/quote-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=quote-request.js.map \ No newline at end of file diff --git a/dist/service/model/quote-request.js.map b/dist/service/model/quote-request.js.map new file mode 100644 index 0000000..71168bd --- /dev/null +++ b/dist/service/model/quote-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-request.js","sourceRoot":"","sources":["../../../src/service/model/quote-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/quote-response.d.ts b/dist/service/model/quote-response.d.ts new file mode 100644 index 0000000..b83623b --- /dev/null +++ b/dist/service/model/quote-response.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MethodParameters } from './method-parameters'; +import type { OrderInfo } from './order-info'; +import type { OrderType } from './order-type'; +import type { RouteItem } from './route-item'; +import type { Timestamp } from './timestamp'; +import type { TradeType } from './trade-type'; +import type { TypedData } from './typed-data'; +/** + * + * @export + * @interface QuoteResponse + */ +export interface QuoteResponse { + /** + * + * @type {OrderType} + * @memberof QuoteResponse + */ + 'type': OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteResponse + */ + 'tradeType': TradeType; + /** + * + * @type {Timestamp} + * @memberof QuoteResponse + */ + 'time': Timestamp; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'amount': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'quote': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'quoteId': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasPrice': { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof QuoteResponse + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasFeeEstimate': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'routeString': string; + /** + * + * @type {MethodParameters} + * @memberof QuoteResponse + */ + 'methodParameters'?: MethodParameters; + /** + * + * @type {Array} + * @memberof QuoteResponse + */ + 'route': Array; + /** + * + * @type {OrderInfo} + * @memberof QuoteResponse + */ + 'orderInfo'?: OrderInfo; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'encodedOrder'?: string; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'orderHash'?: string; + /** + * + * @type {TypedData} + * @memberof QuoteResponse + */ + 'permitData'?: TypedData; +} +//# sourceMappingURL=quote-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/quote-response.d.ts.map b/dist/service/model/quote-response.d.ts.map new file mode 100644 index 0000000..3151b12 --- /dev/null +++ b/dist/service/model/quote-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/quote-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,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/model/quote-response.js new file mode 100644 index 0000000..3af4f2f --- /dev/null +++ b/dist/service/model/quote-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=quote-response.js.map \ No newline at end of file diff --git a/dist/service/model/quote-response.js.map b/dist/service/model/quote-response.js.map new file mode 100644 index 0000000..3fdfb0f --- /dev/null +++ b/dist/service/model/quote-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"quote-response.js","sourceRoot":"","sources":["../../../src/service/model/quote-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/raw-dutch-amount.d.ts b/dist/service/model/raw-dutch-amount.d.ts new file mode 100644 index 0000000..c0f8ca6 --- /dev/null +++ b/dist/service/model/raw-dutch-amount.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RawDutchAmount + */ +export interface RawDutchAmount { + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'token': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'startAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'endAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'recipient'?: string; +} +//# sourceMappingURL=raw-dutch-amount.d.ts.map \ No newline at end of file diff --git a/dist/service/model/raw-dutch-amount.d.ts.map b/dist/service/model/raw-dutch-amount.d.ts.map new file mode 100644 index 0000000..7ddd598 --- /dev/null +++ b/dist/service/model/raw-dutch-amount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"raw-dutch-amount.d.ts","sourceRoot":"","sources":["../../../src/service/model/raw-dutch-amount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/raw-dutch-amount.js b/dist/service/model/raw-dutch-amount.js new file mode 100644 index 0000000..5bc1128 --- /dev/null +++ b/dist/service/model/raw-dutch-amount.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=raw-dutch-amount.js.map \ No newline at end of file diff --git a/dist/service/model/raw-dutch-amount.js.map b/dist/service/model/raw-dutch-amount.js.map new file mode 100644 index 0000000..8761e03 --- /dev/null +++ b/dist/service/model/raw-dutch-amount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"raw-dutch-amount.js","sourceRoot":"","sources":["../../../src/service/model/raw-dutch-amount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/route-item.d.ts b/dist/service/model/route-item.d.ts new file mode 100644 index 0000000..8eb96fa --- /dev/null +++ b/dist/service/model/route-item.d.ts @@ -0,0 +1,18 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { V3PoolInRoute } from './v3-pool-in-route'; +/** + * @type RouteItem + * @export + */ +export type RouteItem = V3PoolInRoute; +//# sourceMappingURL=route-item.d.ts.map \ No newline at end of file diff --git a/dist/service/model/route-item.d.ts.map b/dist/service/model/route-item.d.ts.map new file mode 100644 index 0000000..4748705 --- /dev/null +++ b/dist/service/model/route-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"route-item.d.ts","sourceRoot":"","sources":["../../../src/service/model/route-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAQH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/service/model/route-item.js b/dist/service/model/route-item.js new file mode 100644 index 0000000..50a9217 --- /dev/null +++ b/dist/service/model/route-item.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=route-item.js.map \ No newline at end of file diff --git a/dist/service/model/route-item.js.map b/dist/service/model/route-item.js.map new file mode 100644 index 0000000..e3b449b --- /dev/null +++ b/dist/service/model/route-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"route-item.js","sourceRoot":"","sources":["../../../src/service/model/route-item.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/scoreboard-item.d.ts b/dist/service/model/scoreboard-item.d.ts new file mode 100644 index 0000000..df7b528 --- /dev/null +++ b/dist/service/model/scoreboard-item.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ScoreboardItem + */ +export interface ScoreboardItem { + /** + * + * @type {string} + * @memberof ScoreboardItem + */ + 'address': string; + /** + * + * @type {number} + * @memberof ScoreboardItem + */ + 'points': number; +} +//# sourceMappingURL=scoreboard-item.d.ts.map \ No newline at end of file diff --git a/dist/service/model/scoreboard-item.d.ts.map b/dist/service/model/scoreboard-item.d.ts.map new file mode 100644 index 0000000..bd22810 --- /dev/null +++ b/dist/service/model/scoreboard-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard-item.d.ts","sourceRoot":"","sources":["../../../src/service/model/scoreboard-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/service/model/scoreboard-item.js b/dist/service/model/scoreboard-item.js new file mode 100644 index 0000000..5be51b4 --- /dev/null +++ b/dist/service/model/scoreboard-item.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=scoreboard-item.js.map \ No newline at end of file diff --git a/dist/service/model/scoreboard-item.js.map b/dist/service/model/scoreboard-item.js.map new file mode 100644 index 0000000..37c8c23 --- /dev/null +++ b/dist/service/model/scoreboard-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard-item.js","sourceRoot":"","sources":["../../../src/service/model/scoreboard-item.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/scoreboard.d.ts b/dist/service/model/scoreboard.d.ts new file mode 100644 index 0000000..0efe178 --- /dev/null +++ b/dist/service/model/scoreboard.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ScoreboardItem } from './scoreboard-item'; +/** + * + * @export + * @interface Scoreboard + */ +export interface Scoreboard { + /** + * + * @type {Array} + * @memberof Scoreboard + */ + 'items': Array; +} +//# sourceMappingURL=scoreboard.d.ts.map \ No newline at end of file diff --git a/dist/service/model/scoreboard.d.ts.map b/dist/service/model/scoreboard.d.ts.map new file mode 100644 index 0000000..0524697 --- /dev/null +++ b/dist/service/model/scoreboard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard.d.ts","sourceRoot":"","sources":["../../../src/service/model/scoreboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAClC"} \ No newline at end of file diff --git a/dist/service/model/scoreboard.js b/dist/service/model/scoreboard.js new file mode 100644 index 0000000..f988f56 --- /dev/null +++ b/dist/service/model/scoreboard.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=scoreboard.js.map \ No newline at end of file diff --git a/dist/service/model/scoreboard.js.map b/dist/service/model/scoreboard.js.map new file mode 100644 index 0000000..74fc429 --- /dev/null +++ b/dist/service/model/scoreboard.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scoreboard.js","sourceRoot":"","sources":["../../../src/service/model/scoreboard.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-bark-tx-request.d.ts b/dist/service/model/stablecoin-system-bark-tx-request.d.ts new file mode 100644 index 0000000..a3fa04d --- /dev/null +++ b/dist/service/model/stablecoin-system-bark-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemBarkTxRequest + */ +export interface StablecoinSystemBarkTxRequest { + /** + * Ethereum address of the user who is liquidating the vault and receiving incentives. + * @type {string} + * @memberof StablecoinSystemBarkTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemBarkTxRequest + */ + 'vaultId': number; +} +//# sourceMappingURL=stablecoin-system-bark-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-bark-tx-request.d.ts.map b/dist/service/model/stablecoin-system-bark-tx-request.d.ts.map new file mode 100644 index 0000000..3d3061a --- /dev/null +++ b/dist/service/model/stablecoin-system-bark-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-bark-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-bark-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-bark-tx-request.js b/dist/service/model/stablecoin-system-bark-tx-request.js new file mode 100644 index 0000000..180324e --- /dev/null +++ b/dist/service/model/stablecoin-system-bark-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-bark-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-bark-tx-request.js.map b/dist/service/model/stablecoin-system-bark-tx-request.js.map new file mode 100644 index 0000000..320ab41 --- /dev/null +++ b/dist/service/model/stablecoin-system-bark-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-bark-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-bark-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts b/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts new file mode 100644 index 0000000..590ae1b --- /dev/null +++ b/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemCreateVaultTxRequest + */ +export interface StablecoinSystemCreateVaultTxRequest { + /** + * The name of the ilk + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'ilkName': string; + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'user': string; + /** + * The amount of collateral to deposit in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'collateralAmount'?: string; + /** + * The amount of stablecoin to mint in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'mintAmount': string; +} +//# sourceMappingURL=stablecoin-system-create-vault-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts.map b/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts.map new file mode 100644 index 0000000..3992169 --- /dev/null +++ b/dist/service/model/stablecoin-system-create-vault-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-create-vault-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-create-vault-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-create-vault-tx-request.js b/dist/service/model/stablecoin-system-create-vault-tx-request.js new file mode 100644 index 0000000..aa8886d --- /dev/null +++ b/dist/service/model/stablecoin-system-create-vault-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-create-vault-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-create-vault-tx-request.js.map b/dist/service/model/stablecoin-system-create-vault-tx-request.js.map new file mode 100644 index 0000000..7f15e87 --- /dev/null +++ b/dist/service/model/stablecoin-system-create-vault-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-create-vault-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-create-vault-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts new file mode 100644 index 0000000..8eb789f --- /dev/null +++ b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemDepositCollateralTxRequest + */ +export interface StablecoinSystemDepositCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-deposit-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..919dfdd --- /dev/null +++ b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-deposit-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-deposit-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0CAA0C;IACvD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js new file mode 100644 index 0000000..718e769 --- /dev/null +++ b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-deposit-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js.map b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js.map new file mode 100644 index 0000000..a9ec4b2 --- /dev/null +++ b/dist/service/model/stablecoin-system-deposit-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-deposit-collateral-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-deposit-collateral-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts b/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts new file mode 100644 index 0000000..678f2a4 --- /dev/null +++ b/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemGemexitTxRequest + */ +export interface StablecoinSystemGemexitTxRequest { + /** + * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'user': string; + /** + * The amount of Gem token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'amount': string; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'ilk': string; +} +//# sourceMappingURL=stablecoin-system-gemexit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts.map b/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts.map new file mode 100644 index 0000000..73bbceb --- /dev/null +++ b/dist/service/model/stablecoin-system-gemexit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-gemexit-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-gemexit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-gemexit-tx-request.js b/dist/service/model/stablecoin-system-gemexit-tx-request.js new file mode 100644 index 0000000..075fe7c --- /dev/null +++ b/dist/service/model/stablecoin-system-gemexit-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-gemexit-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-gemexit-tx-request.js.map b/dist/service/model/stablecoin-system-gemexit-tx-request.js.map new file mode 100644 index 0000000..234975e --- /dev/null +++ b/dist/service/model/stablecoin-system-gemexit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-gemexit-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-gemexit-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts b/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts new file mode 100644 index 0000000..079fcab --- /dev/null +++ b/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemMintZarTxRequest + */ +export interface StablecoinSystemMintZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-mint-zar-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map b/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map new file mode 100644 index 0000000..c4f307f --- /dev/null +++ b/dist/service/model/stablecoin-system-mint-zar-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-mint-zar-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-mint-zar-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-mint-zar-tx-request.js b/dist/service/model/stablecoin-system-mint-zar-tx-request.js new file mode 100644 index 0000000..41b5e53 --- /dev/null +++ b/dist/service/model/stablecoin-system-mint-zar-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-mint-zar-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-mint-zar-tx-request.js.map b/dist/service/model/stablecoin-system-mint-zar-tx-request.js.map new file mode 100644 index 0000000..6bf32f4 --- /dev/null +++ b/dist/service/model/stablecoin-system-mint-zar-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-mint-zar-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-mint-zar-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-redo-tx-request.d.ts b/dist/service/model/stablecoin-system-redo-tx-request.d.ts new file mode 100644 index 0000000..b6e4de0 --- /dev/null +++ b/dist/service/model/stablecoin-system-redo-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRedoTxRequest + */ +export interface StablecoinSystemRedoTxRequest { + /** + * Ethereum address of the user resetting the auction and receiving incentives. + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemRedoTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'ilk': string; +} +//# sourceMappingURL=stablecoin-system-redo-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-redo-tx-request.d.ts.map b/dist/service/model/stablecoin-system-redo-tx-request.d.ts.map new file mode 100644 index 0000000..0d17bb0 --- /dev/null +++ b/dist/service/model/stablecoin-system-redo-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-redo-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-redo-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-redo-tx-request.js b/dist/service/model/stablecoin-system-redo-tx-request.js new file mode 100644 index 0000000..f075582 --- /dev/null +++ b/dist/service/model/stablecoin-system-redo-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-redo-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-redo-tx-request.js.map b/dist/service/model/stablecoin-system-redo-tx-request.js.map new file mode 100644 index 0000000..373451d --- /dev/null +++ b/dist/service/model/stablecoin-system-redo-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-redo-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-redo-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts b/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts new file mode 100644 index 0000000..a601e9a --- /dev/null +++ b/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRepayZarTxRequest + */ +export interface StablecoinSystemRepayZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-repay-zar-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map b/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map new file mode 100644 index 0000000..58c1584 --- /dev/null +++ b/dist/service/model/stablecoin-system-repay-zar-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-repay-zar-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-repay-zar-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-repay-zar-tx-request.js b/dist/service/model/stablecoin-system-repay-zar-tx-request.js new file mode 100644 index 0000000..218c5d2 --- /dev/null +++ b/dist/service/model/stablecoin-system-repay-zar-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-repay-zar-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-repay-zar-tx-request.js.map b/dist/service/model/stablecoin-system-repay-zar-tx-request.js.map new file mode 100644 index 0000000..577d27c --- /dev/null +++ b/dist/service/model/stablecoin-system-repay-zar-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-repay-zar-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-repay-zar-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-stats.d.ts b/dist/service/model/stablecoin-system-stats.d.ts new file mode 100644 index 0000000..068d879 --- /dev/null +++ b/dist/service/model/stablecoin-system-stats.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemStats + */ +export interface StablecoinSystemStats { + /** + * System surplus + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplus': { + [key: string]: string | undefined; + }; + /** + * System debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebt': { + [key: string]: string | undefined; + }; + /** + * System debt ceiling + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebtCeiling': { + [key: string]: string | undefined; + }; + /** + * System surplus buffer + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusBuffer': { + [key: string]: string | undefined; + }; + /** + * System bad debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemBadDebt': { + [key: string]: string | undefined; + }; + /** + * System surplus lot size + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusLotSize': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=stablecoin-system-stats.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-stats.d.ts.map b/dist/service/model/stablecoin-system-stats.d.ts.map new file mode 100644 index 0000000..0410c7c --- /dev/null +++ b/dist/service/model/stablecoin-system-stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-stats.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,qBAAqB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9D;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,sBAAsB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAClE"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-stats.js b/dist/service/model/stablecoin-system-stats.js new file mode 100644 index 0000000..9f9b228 --- /dev/null +++ b/dist/service/model/stablecoin-system-stats.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-stats.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-stats.js.map b/dist/service/model/stablecoin-system-stats.js.map new file mode 100644 index 0000000..d9dce0f --- /dev/null +++ b/dist/service/model/stablecoin-system-stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-stats.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-stats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-take-tx-request.d.ts b/dist/service/model/stablecoin-system-take-tx-request.d.ts new file mode 100644 index 0000000..63cc7ff --- /dev/null +++ b/dist/service/model/stablecoin-system-take-tx-request.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemTakeTxRequest + */ +export interface StablecoinSystemTakeTxRequest { + /** + * Ethereum address of the user taking the auction. + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemTakeTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'ilk': string; + /** + * upper limit on the amount of collateral to buy [wad] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'collateralAmountUpperLimit': string; + /** + * Maximum acceptable price (ZAR / collateral) [ray] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'maxAcceptablePrice': string; +} +//# sourceMappingURL=stablecoin-system-take-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-take-tx-request.d.ts.map b/dist/service/model/stablecoin-system-take-tx-request.d.ts.map new file mode 100644 index 0000000..79ec08c --- /dev/null +++ b/dist/service/model/stablecoin-system-take-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-take-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-take-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-take-tx-request.js b/dist/service/model/stablecoin-system-take-tx-request.js new file mode 100644 index 0000000..ca83e69 --- /dev/null +++ b/dist/service/model/stablecoin-system-take-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-take-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-take-tx-request.js.map b/dist/service/model/stablecoin-system-take-tx-request.js.map new file mode 100644 index 0000000..54ba500 --- /dev/null +++ b/dist/service/model/stablecoin-system-take-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-take-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-take-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts new file mode 100644 index 0000000..029f5db --- /dev/null +++ b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemWithdrawCollateralTxRequest + */ +export interface StablecoinSystemWithdrawCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=stablecoin-system-withdraw-collateral-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map new file mode 100644 index 0000000..48699b2 --- /dev/null +++ b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-withdraw-collateral-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,2CAA2C;IACxD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js new file mode 100644 index 0000000..2ef64a7 --- /dev/null +++ b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-withdraw-collateral-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map new file mode 100644 index 0000000..5d5f248 --- /dev/null +++ b/dist/service/model/stablecoin-system-withdraw-collateral-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-withdraw-collateral-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts b/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts new file mode 100644 index 0000000..0ee458c --- /dev/null +++ b/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarexitTxRequest + */ +export interface StablecoinSystemZarexitTxRequest { + /** + * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'user': string; + /** + * The amount of Zar token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'amount': string; +} +//# sourceMappingURL=stablecoin-system-zarexit-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts.map b/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts.map new file mode 100644 index 0000000..13002cb --- /dev/null +++ b/dist/service/model/stablecoin-system-zarexit-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarexit-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-zarexit-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarexit-tx-request.js b/dist/service/model/stablecoin-system-zarexit-tx-request.js new file mode 100644 index 0000000..a1ff3cc --- /dev/null +++ b/dist/service/model/stablecoin-system-zarexit-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-zarexit-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarexit-tx-request.js.map b/dist/service/model/stablecoin-system-zarexit-tx-request.js.map new file mode 100644 index 0000000..ccc2839 --- /dev/null +++ b/dist/service/model/stablecoin-system-zarexit-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarexit-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-zarexit-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts b/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts new file mode 100644 index 0000000..5b7f260 --- /dev/null +++ b/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarjoinTxRequest + */ +export interface StablecoinSystemZarjoinTxRequest { + /** + * Ethereum address of the user intends to join zar tokens into the Vat contract. + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'user': string; + /** + * The amount of ZAR to approve and join into Vat contract + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'amount': string; +} +//# sourceMappingURL=stablecoin-system-zarjoin-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map b/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map new file mode 100644 index 0000000..23fc14e --- /dev/null +++ b/dist/service/model/stablecoin-system-zarjoin-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarjoin-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-zarjoin-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarjoin-tx-request.js b/dist/service/model/stablecoin-system-zarjoin-tx-request.js new file mode 100644 index 0000000..0947a25 --- /dev/null +++ b/dist/service/model/stablecoin-system-zarjoin-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stablecoin-system-zarjoin-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/stablecoin-system-zarjoin-tx-request.js.map b/dist/service/model/stablecoin-system-zarjoin-tx-request.js.map new file mode 100644 index 0000000..39d22dc --- /dev/null +++ b/dist/service/model/stablecoin-system-zarjoin-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stablecoin-system-zarjoin-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/stablecoin-system-zarjoin-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stake-balance.d.ts b/dist/service/model/stake-balance.d.ts new file mode 100644 index 0000000..dfa9cc6 --- /dev/null +++ b/dist/service/model/stake-balance.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of asset staked in native token units + * @export + * @interface StakeBalance + */ +export interface StakeBalance { +} +//# sourceMappingURL=stake-balance.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stake-balance.d.ts.map b/dist/service/model/stake-balance.d.ts.map new file mode 100644 index 0000000..7015ae0 --- /dev/null +++ b/dist/service/model/stake-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-balance.d.ts","sourceRoot":"","sources":["../../../src/service/model/stake-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;CAC5B"} \ No newline at end of file diff --git a/dist/service/model/stake-balance.js b/dist/service/model/stake-balance.js new file mode 100644 index 0000000..ed01d8e --- /dev/null +++ b/dist/service/model/stake-balance.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stake-balance.js.map \ No newline at end of file diff --git a/dist/service/model/stake-balance.js.map b/dist/service/model/stake-balance.js.map new file mode 100644 index 0000000..7ff12cb --- /dev/null +++ b/dist/service/model/stake-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-balance.js","sourceRoot":"","sources":["../../../src/service/model/stake-balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stake-plan.d.ts b/dist/service/model/stake-plan.d.ts new file mode 100644 index 0000000..774daf4 --- /dev/null +++ b/dist/service/model/stake-plan.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +import type { Token } from './token'; +/** + * + * @export + * @interface StakePlan + */ +export interface StakePlan { + /** + * Name of staking plan + * @type {string} + * @memberof StakePlan + */ + 'planName': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakePlan + */ + 'contractAddress': string; + /** + * Annual percentage yield of the staking plan + * @type {string} + * @memberof StakePlan + */ + 'apy': string; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'stakeToken': Token; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'rewardToken': Token; + /** + * + * @type {Timestamp} + * @memberof StakePlan + */ + 'finishAt': Timestamp; +} +//# sourceMappingURL=stake-plan.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stake-plan.d.ts.map b/dist/service/model/stake-plan.d.ts.map new file mode 100644 index 0000000..45b48fc --- /dev/null +++ b/dist/service/model/stake-plan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plan.d.ts","sourceRoot":"","sources":["../../../src/service/model/stake-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,YAAY,EAAE,KAAK,CAAC;IACpB;;;;OAIG;IACH,aAAa,EAAE,KAAK,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/service/model/stake-plan.js b/dist/service/model/stake-plan.js new file mode 100644 index 0000000..37cc7dd --- /dev/null +++ b/dist/service/model/stake-plan.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stake-plan.js.map \ No newline at end of file diff --git a/dist/service/model/stake-plan.js.map b/dist/service/model/stake-plan.js.map new file mode 100644 index 0000000..4784137 --- /dev/null +++ b/dist/service/model/stake-plan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plan.js","sourceRoot":"","sources":["../../../src/service/model/stake-plan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stake-plans-response.d.ts b/dist/service/model/stake-plans-response.d.ts new file mode 100644 index 0000000..2bcfd8f --- /dev/null +++ b/dist/service/model/stake-plans-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StakePlan } from './stake-plan'; +/** + * + * @export + * @interface StakePlansResponse + */ +export interface StakePlansResponse { + /** + * + * @type {Array} + * @memberof StakePlansResponse + */ + 'data': Array; +} +//# sourceMappingURL=stake-plans-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stake-plans-response.d.ts.map b/dist/service/model/stake-plans-response.d.ts.map new file mode 100644 index 0000000..7f945c2 --- /dev/null +++ b/dist/service/model/stake-plans-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plans-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/stake-plans-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/service/model/stake-plans-response.js b/dist/service/model/stake-plans-response.js new file mode 100644 index 0000000..30150f9 --- /dev/null +++ b/dist/service/model/stake-plans-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stake-plans-response.js.map \ No newline at end of file diff --git a/dist/service/model/stake-plans-response.js.map b/dist/service/model/stake-plans-response.js.map new file mode 100644 index 0000000..3cf3e90 --- /dev/null +++ b/dist/service/model/stake-plans-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stake-plans-response.js","sourceRoot":"","sources":["../../../src/service/model/stake-plans-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-request.d.ts b/dist/service/model/staking-collect-reward-tx-request.d.ts new file mode 100644 index 0000000..e352c31 --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingCollectRewardTxRequest + */ +export interface StakingCollectRewardTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'contractAddress': string; +} +//# sourceMappingURL=staking-collect-reward-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-request.d.ts.map b/dist/service/model/staking-collect-reward-tx-request.d.ts.map new file mode 100644 index 0000000..9842f2c --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-collect-reward-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-request.js b/dist/service/model/staking-collect-reward-tx-request.js new file mode 100644 index 0000000..c992253 --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-collect-reward-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-request.js.map b/dist/service/model/staking-collect-reward-tx-request.js.map new file mode 100644 index 0000000..8d92202 --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/staking-collect-reward-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-response.d.ts b/dist/service/model/staking-collect-reward-tx-response.d.ts new file mode 100644 index 0000000..18fed66 --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingCollectRewardTxResponse + */ +export interface StakingCollectRewardTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingCollectRewardTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-collect-reward-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-response.d.ts.map b/dist/service/model/staking-collect-reward-tx-response.d.ts.map new file mode 100644 index 0000000..4a3ad7c --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-collect-reward-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-response.js b/dist/service/model/staking-collect-reward-tx-response.js new file mode 100644 index 0000000..e9cd241 --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-collect-reward-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/staking-collect-reward-tx-response.js.map b/dist/service/model/staking-collect-reward-tx-response.js.map new file mode 100644 index 0000000..e055a2e --- /dev/null +++ b/dist/service/model/staking-collect-reward-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-collect-reward-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/staking-collect-reward-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-request.d.ts b/dist/service/model/staking-stake-tx-request.d.ts new file mode 100644 index 0000000..22ccd49 --- /dev/null +++ b/dist/service/model/staking-stake-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingStakeTxRequest + */ +export interface StakingStakeTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to stake in native token units + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=staking-stake-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-request.d.ts.map b/dist/service/model/staking-stake-tx-request.d.ts.map new file mode 100644 index 0000000..6fc9589 --- /dev/null +++ b/dist/service/model/staking-stake-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-stake-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-request.js b/dist/service/model/staking-stake-tx-request.js new file mode 100644 index 0000000..8ffca35 --- /dev/null +++ b/dist/service/model/staking-stake-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-stake-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-request.js.map b/dist/service/model/staking-stake-tx-request.js.map new file mode 100644 index 0000000..583f685 --- /dev/null +++ b/dist/service/model/staking-stake-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/staking-stake-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-response.d.ts b/dist/service/model/staking-stake-tx-response.d.ts new file mode 100644 index 0000000..b4efaf6 --- /dev/null +++ b/dist/service/model/staking-stake-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingStakeTxResponse + */ +export interface StakingStakeTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingStakeTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-stake-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-response.d.ts.map b/dist/service/model/staking-stake-tx-response.d.ts.map new file mode 100644 index 0000000..08b475a --- /dev/null +++ b/dist/service/model/staking-stake-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-stake-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-response.js b/dist/service/model/staking-stake-tx-response.js new file mode 100644 index 0000000..b5e9044 --- /dev/null +++ b/dist/service/model/staking-stake-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-stake-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/staking-stake-tx-response.js.map b/dist/service/model/staking-stake-tx-response.js.map new file mode 100644 index 0000000..bb4f648 --- /dev/null +++ b/dist/service/model/staking-stake-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-stake-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/staking-stake-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-request.d.ts b/dist/service/model/staking-withdraw-tx-request.d.ts new file mode 100644 index 0000000..739be71 --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingWithdrawTxRequest + */ +export interface StakingWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to withdraw in native token units + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'amount'?: string; +} +//# sourceMappingURL=staking-withdraw-tx-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-request.d.ts.map b/dist/service/model/staking-withdraw-tx-request.d.ts.map new file mode 100644 index 0000000..579878f --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-withdraw-tx-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-request.js b/dist/service/model/staking-withdraw-tx-request.js new file mode 100644 index 0000000..c380442 --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-withdraw-tx-request.js.map \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-request.js.map b/dist/service/model/staking-withdraw-tx-request.js.map new file mode 100644 index 0000000..ca73324 --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-request.js","sourceRoot":"","sources":["../../../src/service/model/staking-withdraw-tx-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-response.d.ts b/dist/service/model/staking-withdraw-tx-response.d.ts new file mode 100644 index 0000000..6805fa9 --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './chain-activity'; +/** + * + * @export + * @interface StakingWithdrawTxResponse + */ +export interface StakingWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; +} +//# sourceMappingURL=staking-withdraw-tx-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-response.d.ts.map b/dist/service/model/staking-withdraw-tx-response.d.ts.map new file mode 100644 index 0000000..73a52d1 --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/staking-withdraw-tx-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-response.js b/dist/service/model/staking-withdraw-tx-response.js new file mode 100644 index 0000000..11a8dad --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=staking-withdraw-tx-response.js.map \ No newline at end of file diff --git a/dist/service/model/staking-withdraw-tx-response.js.map b/dist/service/model/staking-withdraw-tx-response.js.map new file mode 100644 index 0000000..0e0734f --- /dev/null +++ b/dist/service/model/staking-withdraw-tx-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"staking-withdraw-tx-response.js","sourceRoot":"","sources":["../../../src/service/model/staking-withdraw-tx-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/stats.d.ts b/dist/service/model/stats.d.ts new file mode 100644 index 0000000..04f6bef --- /dev/null +++ b/dist/service/model/stats.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolStats } from './lendingpool-stats'; +import type { StablecoinSystemStats } from './stablecoin-system-stats'; +/** + * + * @export + * @interface Stats + */ +export interface Stats { + /** + * + * @type {StablecoinSystemStats} + * @memberof Stats + */ + 'stablecoinSystem': StablecoinSystemStats; + /** + * + * @type {LendingpoolStats} + * @memberof Stats + */ + 'lendingpool': LendingpoolStats; +} +//# sourceMappingURL=stats.d.ts.map \ No newline at end of file diff --git a/dist/service/model/stats.d.ts.map b/dist/service/model/stats.d.ts.map new file mode 100644 index 0000000..33af545 --- /dev/null +++ b/dist/service/model/stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/service/model/stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C;;;;OAIG;IACH,aAAa,EAAE,gBAAgB,CAAC;CACnC"} \ No newline at end of file diff --git a/dist/service/model/stats.js b/dist/service/model/stats.js new file mode 100644 index 0000000..48dda5e --- /dev/null +++ b/dist/service/model/stats.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=stats.js.map \ No newline at end of file diff --git a/dist/service/model/stats.js.map b/dist/service/model/stats.js.map new file mode 100644 index 0000000..2b0888d --- /dev/null +++ b/dist/service/model/stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stats.js","sourceRoot":"","sources":["../../../src/service/model/stats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/symbol.d.ts b/dist/service/model/symbol.d.ts new file mode 100644 index 0000000..440820e --- /dev/null +++ b/dist/service/model/symbol.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/dist/service/model/symbol.d.ts.map b/dist/service/model/symbol.d.ts.map new file mode 100644 index 0000000..470c389 --- /dev/null +++ b/dist/service/model/symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/service/model/symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/symbol.js b/dist/service/model/symbol.js new file mode 100644 index 0000000..35ff8b4 --- /dev/null +++ b/dist/service/model/symbol.js @@ -0,0 +1,33 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Symbol = void 0; +/** + * Symbol representation + * @export + * @enum {string} + */ +exports.Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +//# sourceMappingURL=symbol.js.map \ No newline at end of file diff --git a/dist/service/model/symbol.js.map b/dist/service/model/symbol.js.map new file mode 100644 index 0000000..e91245b --- /dev/null +++ b/dist/service/model/symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../src/service/model/symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC"} \ No newline at end of file diff --git a/dist/service/model/system-bad-debt.d.ts b/dist/service/model/system-bad-debt.d.ts new file mode 100644 index 0000000..41bc670 --- /dev/null +++ b/dist/service/model/system-bad-debt.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System bad debt + * @export + * @interface SystemBadDebt + */ +export interface SystemBadDebt { +} +//# sourceMappingURL=system-bad-debt.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-bad-debt.d.ts.map b/dist/service/model/system-bad-debt.d.ts.map new file mode 100644 index 0000000..3c39ff6 --- /dev/null +++ b/dist/service/model/system-bad-debt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-bad-debt.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-bad-debt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B"} \ No newline at end of file diff --git a/dist/service/model/system-bad-debt.js b/dist/service/model/system-bad-debt.js new file mode 100644 index 0000000..ee91260 --- /dev/null +++ b/dist/service/model/system-bad-debt.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-bad-debt.js.map \ No newline at end of file diff --git a/dist/service/model/system-bad-debt.js.map b/dist/service/model/system-bad-debt.js.map new file mode 100644 index 0000000..0938722 --- /dev/null +++ b/dist/service/model/system-bad-debt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-bad-debt.js","sourceRoot":"","sources":["../../../src/service/model/system-bad-debt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/system-debt-ceiling.d.ts b/dist/service/model/system-debt-ceiling.d.ts new file mode 100644 index 0000000..49984f1 --- /dev/null +++ b/dist/service/model/system-debt-ceiling.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt ceiling + * @export + * @interface SystemDebtCeiling + */ +export interface SystemDebtCeiling { +} +//# sourceMappingURL=system-debt-ceiling.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-debt-ceiling.d.ts.map b/dist/service/model/system-debt-ceiling.d.ts.map new file mode 100644 index 0000000..8a94e6f --- /dev/null +++ b/dist/service/model/system-debt-ceiling.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt-ceiling.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-debt-ceiling.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;CACjC"} \ No newline at end of file diff --git a/dist/service/model/system-debt-ceiling.js b/dist/service/model/system-debt-ceiling.js new file mode 100644 index 0000000..fbea850 --- /dev/null +++ b/dist/service/model/system-debt-ceiling.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-debt-ceiling.js.map \ No newline at end of file diff --git a/dist/service/model/system-debt-ceiling.js.map b/dist/service/model/system-debt-ceiling.js.map new file mode 100644 index 0000000..479b2da --- /dev/null +++ b/dist/service/model/system-debt-ceiling.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt-ceiling.js","sourceRoot":"","sources":["../../../src/service/model/system-debt-ceiling.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/system-debt.d.ts b/dist/service/model/system-debt.d.ts new file mode 100644 index 0000000..5e8c477 --- /dev/null +++ b/dist/service/model/system-debt.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt + * @export + * @interface SystemDebt + */ +export interface SystemDebt { +} +//# sourceMappingURL=system-debt.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-debt.d.ts.map b/dist/service/model/system-debt.d.ts.map new file mode 100644 index 0000000..31f43bc --- /dev/null +++ b/dist/service/model/system-debt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-debt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;CAC1B"} \ No newline at end of file diff --git a/dist/service/model/system-debt.js b/dist/service/model/system-debt.js new file mode 100644 index 0000000..288c145 --- /dev/null +++ b/dist/service/model/system-debt.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-debt.js.map \ No newline at end of file diff --git a/dist/service/model/system-debt.js.map b/dist/service/model/system-debt.js.map new file mode 100644 index 0000000..7fec993 --- /dev/null +++ b/dist/service/model/system-debt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-debt.js","sourceRoot":"","sources":["../../../src/service/model/system-debt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/system-surplus-buffer.d.ts b/dist/service/model/system-surplus-buffer.d.ts new file mode 100644 index 0000000..8085f18 --- /dev/null +++ b/dist/service/model/system-surplus-buffer.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus buffer + * @export + * @interface SystemSurplusBuffer + */ +export interface SystemSurplusBuffer { +} +//# sourceMappingURL=system-surplus-buffer.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-surplus-buffer.d.ts.map b/dist/service/model/system-surplus-buffer.d.ts.map new file mode 100644 index 0000000..c49f2d1 --- /dev/null +++ b/dist/service/model/system-surplus-buffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-buffer.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-surplus-buffer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;CACnC"} \ No newline at end of file diff --git a/dist/service/model/system-surplus-buffer.js b/dist/service/model/system-surplus-buffer.js new file mode 100644 index 0000000..1050081 --- /dev/null +++ b/dist/service/model/system-surplus-buffer.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-surplus-buffer.js.map \ No newline at end of file diff --git a/dist/service/model/system-surplus-buffer.js.map b/dist/service/model/system-surplus-buffer.js.map new file mode 100644 index 0000000..f57e44a --- /dev/null +++ b/dist/service/model/system-surplus-buffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-buffer.js","sourceRoot":"","sources":["../../../src/service/model/system-surplus-buffer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/system-surplus-lot-size.d.ts b/dist/service/model/system-surplus-lot-size.d.ts new file mode 100644 index 0000000..222d9a1 --- /dev/null +++ b/dist/service/model/system-surplus-lot-size.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus lot size + * @export + * @interface SystemSurplusLotSize + */ +export interface SystemSurplusLotSize { +} +//# sourceMappingURL=system-surplus-lot-size.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-surplus-lot-size.d.ts.map b/dist/service/model/system-surplus-lot-size.d.ts.map new file mode 100644 index 0000000..0cf5f7c --- /dev/null +++ b/dist/service/model/system-surplus-lot-size.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-lot-size.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-surplus-lot-size.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;CACpC"} \ No newline at end of file diff --git a/dist/service/model/system-surplus-lot-size.js b/dist/service/model/system-surplus-lot-size.js new file mode 100644 index 0000000..1198034 --- /dev/null +++ b/dist/service/model/system-surplus-lot-size.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-surplus-lot-size.js.map \ No newline at end of file diff --git a/dist/service/model/system-surplus-lot-size.js.map b/dist/service/model/system-surplus-lot-size.js.map new file mode 100644 index 0000000..c45fd6d --- /dev/null +++ b/dist/service/model/system-surplus-lot-size.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus-lot-size.js","sourceRoot":"","sources":["../../../src/service/model/system-surplus-lot-size.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/system-surplus.d.ts b/dist/service/model/system-surplus.d.ts new file mode 100644 index 0000000..6703e19 --- /dev/null +++ b/dist/service/model/system-surplus.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus + * @export + * @interface SystemSurplus + */ +export interface SystemSurplus { +} +//# sourceMappingURL=system-surplus.d.ts.map \ No newline at end of file diff --git a/dist/service/model/system-surplus.d.ts.map b/dist/service/model/system-surplus.d.ts.map new file mode 100644 index 0000000..ceb4385 --- /dev/null +++ b/dist/service/model/system-surplus.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus.d.ts","sourceRoot":"","sources":["../../../src/service/model/system-surplus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B"} \ No newline at end of file diff --git a/dist/service/model/system-surplus.js b/dist/service/model/system-surplus.js new file mode 100644 index 0000000..6d5f778 --- /dev/null +++ b/dist/service/model/system-surplus.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=system-surplus.js.map \ No newline at end of file diff --git a/dist/service/model/system-surplus.js.map b/dist/service/model/system-surplus.js.map new file mode 100644 index 0000000..73a4e88 --- /dev/null +++ b/dist/service/model/system-surplus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"system-surplus.js","sourceRoot":"","sources":["../../../src/service/model/system-surplus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/time-range.d.ts b/dist/service/model/time-range.d.ts new file mode 100644 index 0000000..e3d5f94 --- /dev/null +++ b/dist/service/model/time-range.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TimeRange + */ +export interface TimeRange { + /** + * + * @type {string} + * @memberof TimeRange + */ + 'from'?: string; + /** + * + * @type {string} + * @memberof TimeRange + */ + 'to'?: string; +} +//# sourceMappingURL=time-range.d.ts.map \ No newline at end of file diff --git a/dist/service/model/time-range.d.ts.map b/dist/service/model/time-range.d.ts.map new file mode 100644 index 0000000..71b1e6a --- /dev/null +++ b/dist/service/model/time-range.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"time-range.d.ts","sourceRoot":"","sources":["../../../src/service/model/time-range.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/service/model/time-range.js b/dist/service/model/time-range.js new file mode 100644 index 0000000..0582b37 --- /dev/null +++ b/dist/service/model/time-range.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=time-range.js.map \ No newline at end of file diff --git a/dist/service/model/time-range.js.map b/dist/service/model/time-range.js.map new file mode 100644 index 0000000..ab4125a --- /dev/null +++ b/dist/service/model/time-range.js.map @@ -0,0 +1 @@ +{"version":3,"file":"time-range.js","sourceRoot":"","sources":["../../../src/service/model/time-range.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/timestamp.d.ts b/dist/service/model/timestamp.d.ts new file mode 100644 index 0000000..a441b24 --- /dev/null +++ b/dist/service/model/timestamp.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} +//# sourceMappingURL=timestamp.d.ts.map \ No newline at end of file diff --git a/dist/service/model/timestamp.d.ts.map b/dist/service/model/timestamp.d.ts.map new file mode 100644 index 0000000..55740d3 --- /dev/null +++ b/dist/service/model/timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/service/model/timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/service/model/timestamp.js b/dist/service/model/timestamp.js new file mode 100644 index 0000000..f940ad1 --- /dev/null +++ b/dist/service/model/timestamp.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/dist/service/model/timestamp.js.map b/dist/service/model/timestamp.js.map new file mode 100644 index 0000000..1bcc32d --- /dev/null +++ b/dist/service/model/timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../src/service/model/timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/token.d.ts b/dist/service/model/token.d.ts new file mode 100644 index 0000000..8f711e8 --- /dev/null +++ b/dist/service/model/token.d.ts @@ -0,0 +1,62 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Token + */ +export interface Token { + /** + * The name of the token. + * @type {string} + * @memberof Token + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Token + */ + 'symbol': Symbol; + /** + * The number of decimals for the token. + * @type {number} + * @memberof Token + */ + 'decimals': number; + /** + * The Ethereum address of the token. + * @type {string} + * @memberof Token + */ + 'address': string; + /** + * The URI of the token\'s logo. + * @type {string} + * @memberof Token + */ + 'logoUri': string; + /** + * The chain ID of the token. + * @type {number} + * @memberof Token + */ + 'chainId': number; + /** + * The Persian name of the token. + * @type {string} + * @memberof Token + */ + 'persianName': string; +} +//# sourceMappingURL=token.d.ts.map \ No newline at end of file diff --git a/dist/service/model/token.d.ts.map b/dist/service/model/token.d.ts.map new file mode 100644 index 0000000..4e7728e --- /dev/null +++ b/dist/service/model/token.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/service/model/token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/service/model/token.js b/dist/service/model/token.js new file mode 100644 index 0000000..1344285 --- /dev/null +++ b/dist/service/model/token.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/dist/service/model/token.js.map b/dist/service/model/token.js.map new file mode 100644 index 0000000..651b2f0 --- /dev/null +++ b/dist/service/model/token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/service/model/token.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/trade-type.d.ts b/dist/service/model/trade-type.d.ts new file mode 100644 index 0000000..aa41cdb --- /dev/null +++ b/dist/service/model/trade-type.d.ts @@ -0,0 +1,22 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TradeType: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type TradeType = typeof TradeType[keyof typeof TradeType]; +//# sourceMappingURL=trade-type.d.ts.map \ No newline at end of file diff --git a/dist/service/model/trade-type.d.ts.map b/dist/service/model/trade-type.d.ts.map new file mode 100644 index 0000000..c183ec6 --- /dev/null +++ b/dist/service/model/trade-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"trade-type.d.ts","sourceRoot":"","sources":["../../../src/service/model/trade-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/model/trade-type.js b/dist/service/model/trade-type.js new file mode 100644 index 0000000..0670975 --- /dev/null +++ b/dist/service/model/trade-type.js @@ -0,0 +1,26 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TradeType = void 0; +/** + * + * @export + * @enum {string} + */ +exports.TradeType = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=trade-type.js.map \ No newline at end of file diff --git a/dist/service/model/trade-type.js.map b/dist/service/model/trade-type.js.map new file mode 100644 index 0000000..7746cec --- /dev/null +++ b/dist/service/model/trade-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"trade-type.js","sourceRoot":"","sources":["../../../src/service/model/trade-type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,SAAS,GAAG;IACrB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/service/model/type.d.ts b/dist/service/model/type.d.ts new file mode 100644 index 0000000..3111e55 --- /dev/null +++ b/dist/service/model/type.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Type + */ +export interface Type { + /** + * + * @type {string} + * @memberof Type + */ + 'name': string; + /** + * + * @type {string} + * @memberof Type + */ + 'type': string; +} +//# sourceMappingURL=type.d.ts.map \ No newline at end of file diff --git a/dist/service/model/type.d.ts.map b/dist/service/model/type.d.ts.map new file mode 100644 index 0000000..14720ca --- /dev/null +++ b/dist/service/model/type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/service/model/type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/service/model/type.js b/dist/service/model/type.js new file mode 100644 index 0000000..181ce31 --- /dev/null +++ b/dist/service/model/type.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=type.js.map \ No newline at end of file diff --git a/dist/service/model/type.js.map b/dist/service/model/type.js.map new file mode 100644 index 0000000..e03c441 --- /dev/null +++ b/dist/service/model/type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/service/model/type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/typed-data-domain.d.ts b/dist/service/model/typed-data-domain.d.ts new file mode 100644 index 0000000..ea3b0cb --- /dev/null +++ b/dist/service/model/typed-data-domain.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TypedDataDomain + */ +export interface TypedDataDomain { + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'name': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'version'?: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'chainId': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'verifyingContract': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'salt'?: string; +} +//# sourceMappingURL=typed-data-domain.d.ts.map \ No newline at end of file diff --git a/dist/service/model/typed-data-domain.d.ts.map b/dist/service/model/typed-data-domain.d.ts.map new file mode 100644 index 0000000..0628c92 --- /dev/null +++ b/dist/service/model/typed-data-domain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data-domain.d.ts","sourceRoot":"","sources":["../../../src/service/model/typed-data-domain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/service/model/typed-data-domain.js b/dist/service/model/typed-data-domain.js new file mode 100644 index 0000000..8b3a689 --- /dev/null +++ b/dist/service/model/typed-data-domain.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=typed-data-domain.js.map \ No newline at end of file diff --git a/dist/service/model/typed-data-domain.js.map b/dist/service/model/typed-data-domain.js.map new file mode 100644 index 0000000..fd36c6f --- /dev/null +++ b/dist/service/model/typed-data-domain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data-domain.js","sourceRoot":"","sources":["../../../src/service/model/typed-data-domain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/typed-data.d.ts b/dist/service/model/typed-data.d.ts new file mode 100644 index 0000000..dca45cb --- /dev/null +++ b/dist/service/model/typed-data.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Type } from './type'; +import type { TypedDataDomain } from './typed-data-domain'; +/** + * + * @export + * @interface TypedData + */ +export interface TypedData { + /** + * A map where each key is a string and each value is a list of Type + * @type {{ [key: string]: Array | undefined; }} + * @memberof TypedData + */ + 'types': { + [key: string]: Array | undefined; + }; + /** + * + * @type {string} + * @memberof TypedData + */ + 'primaryType': string; + /** + * + * @type {TypedDataDomain} + * @memberof TypedData + */ + 'domain': TypedDataDomain; + /** + * + * @type {{ [key: string]: any | undefined; }} + * @memberof TypedData + */ + 'message': { + [key: string]: any | undefined; + }; +} +//# sourceMappingURL=typed-data.d.ts.map \ No newline at end of file diff --git a/dist/service/model/typed-data.d.ts.map b/dist/service/model/typed-data.d.ts.map new file mode 100644 index 0000000..a364840 --- /dev/null +++ b/dist/service/model/typed-data.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data.d.ts","sourceRoot":"","sources":["../../../src/service/model/typed-data.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAClD"} \ No newline at end of file diff --git a/dist/service/model/typed-data.js b/dist/service/model/typed-data.js new file mode 100644 index 0000000..7738fa9 --- /dev/null +++ b/dist/service/model/typed-data.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=typed-data.js.map \ No newline at end of file diff --git a/dist/service/model/typed-data.js.map b/dist/service/model/typed-data.js.map new file mode 100644 index 0000000..3cd00ce --- /dev/null +++ b/dist/service/model/typed-data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typed-data.js","sourceRoot":"","sources":["../../../src/service/model/typed-data.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/unclaimed-reward.d.ts b/dist/service/model/unclaimed-reward.d.ts new file mode 100644 index 0000000..7ad00a0 --- /dev/null +++ b/dist/service/model/unclaimed-reward.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of unclaimed reward in native token units + * @export + * @interface UnclaimedReward + */ +export interface UnclaimedReward { +} +//# sourceMappingURL=unclaimed-reward.d.ts.map \ No newline at end of file diff --git a/dist/service/model/unclaimed-reward.d.ts.map b/dist/service/model/unclaimed-reward.d.ts.map new file mode 100644 index 0000000..4ca6212 --- /dev/null +++ b/dist/service/model/unclaimed-reward.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"unclaimed-reward.d.ts","sourceRoot":"","sources":["../../../src/service/model/unclaimed-reward.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;CAC/B"} \ No newline at end of file diff --git a/dist/service/model/unclaimed-reward.js b/dist/service/model/unclaimed-reward.js new file mode 100644 index 0000000..5d22e83 --- /dev/null +++ b/dist/service/model/unclaimed-reward.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=unclaimed-reward.js.map \ No newline at end of file diff --git a/dist/service/model/unclaimed-reward.js.map b/dist/service/model/unclaimed-reward.js.map new file mode 100644 index 0000000..814a0ba --- /dev/null +++ b/dist/service/model/unclaimed-reward.js.map @@ -0,0 +1 @@ +{"version":3,"file":"unclaimed-reward.js","sourceRoot":"","sources":["../../../src/service/model/unclaimed-reward.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/update-order-request.d.ts b/dist/service/model/update-order-request.d.ts new file mode 100644 index 0000000..18b90c0 --- /dev/null +++ b/dist/service/model/update-order-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateOrderRequest + */ +export interface UpdateOrderRequest { + /** + * + * @type {string} + * @memberof UpdateOrderRequest + */ + 'orderHash': string; +} +//# sourceMappingURL=update-order-request.d.ts.map \ No newline at end of file diff --git a/dist/service/model/update-order-request.d.ts.map b/dist/service/model/update-order-request.d.ts.map new file mode 100644 index 0000000..0bf9d4a --- /dev/null +++ b/dist/service/model/update-order-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-order-request.d.ts","sourceRoot":"","sources":["../../../src/service/model/update-order-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/service/model/update-order-request.js b/dist/service/model/update-order-request.js new file mode 100644 index 0000000..16045e2 --- /dev/null +++ b/dist/service/model/update-order-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=update-order-request.js.map \ No newline at end of file diff --git a/dist/service/model/update-order-request.js.map b/dist/service/model/update-order-request.js.map new file mode 100644 index 0000000..faa71a3 --- /dev/null +++ b/dist/service/model/update-order-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-order-request.js","sourceRoot":"","sources":["../../../src/service/model/update-order-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/user-borrows-response.d.ts b/dist/service/model/user-borrows-response.d.ts new file mode 100644 index 0000000..fbe1f1f --- /dev/null +++ b/dist/service/model/user-borrows-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolBorrow } from './lendingpool-borrow'; +/** + * + * @export + * @interface UserBorrowsResponse + */ +export interface UserBorrowsResponse { + /** + * + * @type {Array} + * @memberof UserBorrowsResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-borrows-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/user-borrows-response.d.ts.map b/dist/service/model/user-borrows-response.d.ts.map new file mode 100644 index 0000000..57df113 --- /dev/null +++ b/dist/service/model/user-borrows-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-borrows-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/user-borrows-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACpC"} \ No newline at end of file diff --git a/dist/service/model/user-borrows-response.js b/dist/service/model/user-borrows-response.js new file mode 100644 index 0000000..e9c8e7b --- /dev/null +++ b/dist/service/model/user-borrows-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-borrows-response.js.map \ No newline at end of file diff --git a/dist/service/model/user-borrows-response.js.map b/dist/service/model/user-borrows-response.js.map new file mode 100644 index 0000000..93ccfdb --- /dev/null +++ b/dist/service/model/user-borrows-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-borrows-response.js","sourceRoot":"","sources":["../../../src/service/model/user-borrows-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/user-deposits-response.d.ts b/dist/service/model/user-deposits-response.d.ts new file mode 100644 index 0000000..6d640a6 --- /dev/null +++ b/dist/service/model/user-deposits-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolDeposit } from './lendingpool-deposit'; +/** + * + * @export + * @interface UserDepositsResponse + */ +export interface UserDepositsResponse { + /** + * + * @type {Array} + * @memberof UserDepositsResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-deposits-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/user-deposits-response.d.ts.map b/dist/service/model/user-deposits-response.d.ts.map new file mode 100644 index 0000000..ba9aea4 --- /dev/null +++ b/dist/service/model/user-deposits-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-deposits-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/user-deposits-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACrC"} \ No newline at end of file diff --git a/dist/service/model/user-deposits-response.js b/dist/service/model/user-deposits-response.js new file mode 100644 index 0000000..b090e78 --- /dev/null +++ b/dist/service/model/user-deposits-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-deposits-response.js.map \ No newline at end of file diff --git a/dist/service/model/user-deposits-response.js.map b/dist/service/model/user-deposits-response.js.map new file mode 100644 index 0000000..a5b6c7b --- /dev/null +++ b/dist/service/model/user-deposits-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-deposits-response.js","sourceRoot":"","sources":["../../../src/service/model/user-deposits-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/user-error.d.ts b/dist/service/model/user-error.d.ts new file mode 100644 index 0000000..c580f3d --- /dev/null +++ b/dist/service/model/user-error.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorMessage } from './error-message'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorMessage | undefined; }} + * @memberof UserError + */ + 'messages': { + [key: string]: ErrorMessage | undefined; + }; + /** + * + * @type {Array} + * @memberof UserError + */ + 'reasons': Array; +} +//# sourceMappingURL=user-error.d.ts.map \ No newline at end of file diff --git a/dist/service/model/user-error.d.ts.map b/dist/service/model/user-error.d.ts.map new file mode 100644 index 0000000..416200f --- /dev/null +++ b/dist/service/model/user-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.d.ts","sourceRoot":"","sources":["../../../src/service/model/user-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/service/model/user-error.js b/dist/service/model/user-error.js new file mode 100644 index 0000000..f83a1b6 --- /dev/null +++ b/dist/service/model/user-error.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-error.js.map \ No newline at end of file diff --git a/dist/service/model/user-error.js.map b/dist/service/model/user-error.js.map new file mode 100644 index 0000000..9ced973 --- /dev/null +++ b/dist/service/model/user-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.js","sourceRoot":"","sources":["../../../src/service/model/user-error.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/user-stake.d.ts b/dist/service/model/user-stake.d.ts new file mode 100644 index 0000000..50a0157 --- /dev/null +++ b/dist/service/model/user-stake.d.ts @@ -0,0 +1,53 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UserStake + */ +export interface UserStake { + /** + * Ethereum address of the user + * @type {string} + * @memberof UserStake + */ + 'user': string; + /** + * The amount of asset staked in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'balance': { + [key: string]: string | undefined; + }; + /** + * The amount of unclaimed reward in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'unclaimedReward': { + [key: string]: string | undefined; + }; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof UserStake + */ + 'contractAddress': string; + /** + * Name of staking plan + * @type {string} + * @memberof UserStake + */ + 'planName': string; +} +//# sourceMappingURL=user-stake.d.ts.map \ No newline at end of file diff --git a/dist/service/model/user-stake.d.ts.map b/dist/service/model/user-stake.d.ts.map new file mode 100644 index 0000000..39b221e --- /dev/null +++ b/dist/service/model/user-stake.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stake.d.ts","sourceRoot":"","sources":["../../../src/service/model/user-stake.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/service/model/user-stake.js b/dist/service/model/user-stake.js new file mode 100644 index 0000000..e559692 --- /dev/null +++ b/dist/service/model/user-stake.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-stake.js.map \ No newline at end of file diff --git a/dist/service/model/user-stake.js.map b/dist/service/model/user-stake.js.map new file mode 100644 index 0000000..759f43c --- /dev/null +++ b/dist/service/model/user-stake.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stake.js","sourceRoot":"","sources":["../../../src/service/model/user-stake.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/user-stakes-response.d.ts b/dist/service/model/user-stakes-response.d.ts new file mode 100644 index 0000000..0e23281 --- /dev/null +++ b/dist/service/model/user-stakes-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UserStake } from './user-stake'; +/** + * + * @export + * @interface UserStakesResponse + */ +export interface UserStakesResponse { + /** + * + * @type {Array} + * @memberof UserStakesResponse + */ + 'data': Array; +} +//# sourceMappingURL=user-stakes-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/user-stakes-response.d.ts.map b/dist/service/model/user-stakes-response.d.ts.map new file mode 100644 index 0000000..9b5f0c7 --- /dev/null +++ b/dist/service/model/user-stakes-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stakes-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/user-stakes-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/service/model/user-stakes-response.js b/dist/service/model/user-stakes-response.js new file mode 100644 index 0000000..c52067b --- /dev/null +++ b/dist/service/model/user-stakes-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-stakes-response.js.map \ No newline at end of file diff --git a/dist/service/model/user-stakes-response.js.map b/dist/service/model/user-stakes-response.js.map new file mode 100644 index 0000000..7871c34 --- /dev/null +++ b/dist/service/model/user-stakes-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-stakes-response.js","sourceRoot":"","sources":["../../../src/service/model/user-stakes-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/v3-pool-in-route.d.ts b/dist/service/model/v3-pool-in-route.d.ts new file mode 100644 index 0000000..3e436d8 --- /dev/null +++ b/dist/service/model/v3-pool-in-route.d.ts @@ -0,0 +1,44 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './token'; +/** + * + * @export + * @interface V3PoolInRoute + */ +export interface V3PoolInRoute { + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'address': string; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenIn': Token; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenOut': Token; + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'fee': string; +} +//# sourceMappingURL=v3-pool-in-route.d.ts.map \ No newline at end of file diff --git a/dist/service/model/v3-pool-in-route.d.ts.map b/dist/service/model/v3-pool-in-route.d.ts.map new file mode 100644 index 0000000..0b04f7b --- /dev/null +++ b/dist/service/model/v3-pool-in-route.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"v3-pool-in-route.d.ts","sourceRoot":"","sources":["../../../src/service/model/v3-pool-in-route.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"} \ No newline at end of file diff --git a/dist/service/model/v3-pool-in-route.js b/dist/service/model/v3-pool-in-route.js new file mode 100644 index 0000000..3af840b --- /dev/null +++ b/dist/service/model/v3-pool-in-route.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=v3-pool-in-route.js.map \ No newline at end of file diff --git a/dist/service/model/v3-pool-in-route.js.map b/dist/service/model/v3-pool-in-route.js.map new file mode 100644 index 0000000..46e4e17 --- /dev/null +++ b/dist/service/model/v3-pool-in-route.js.map @@ -0,0 +1 @@ +{"version":3,"file":"v3-pool-in-route.js","sourceRoot":"","sources":["../../../src/service/model/v3-pool-in-route.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vault-event-extension.d.ts b/dist/service/model/vault-event-extension.d.ts new file mode 100644 index 0000000..0f87770 --- /dev/null +++ b/dist/service/model/vault-event-extension.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VaultEvent } from './vault-event'; +/** + * + * @export + * @interface VaultEventExtension + */ +export interface VaultEventExtension { + /** + * + * @type {VaultEvent} + * @memberof VaultEventExtension + */ + 'payload'?: VaultEvent; +} +//# sourceMappingURL=vault-event-extension.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vault-event-extension.d.ts.map b/dist/service/model/vault-event-extension.d.ts.map new file mode 100644 index 0000000..40114fb --- /dev/null +++ b/dist/service/model/vault-event-extension.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-extension.d.ts","sourceRoot":"","sources":["../../../src/service/model/vault-event-extension.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/service/model/vault-event-extension.js b/dist/service/model/vault-event-extension.js new file mode 100644 index 0000000..e9ecfaa --- /dev/null +++ b/dist/service/model/vault-event-extension.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vault-event-extension.js.map \ No newline at end of file diff --git a/dist/service/model/vault-event-extension.js.map b/dist/service/model/vault-event-extension.js.map new file mode 100644 index 0000000..7857134 --- /dev/null +++ b/dist/service/model/vault-event-extension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-extension.js","sourceRoot":"","sources":["../../../src/service/model/vault-event-extension.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vault-event-item.d.ts b/dist/service/model/vault-event-item.d.ts new file mode 100644 index 0000000..873dc34 --- /dev/null +++ b/dist/service/model/vault-event-item.d.ts @@ -0,0 +1,19 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BasicEvent } from './basic-event'; +import type { VaultEventExtension } from './vault-event-extension'; +/** + * @type VaultEventItem + * @export + */ +export type VaultEventItem = BasicEvent & VaultEventExtension; +//# sourceMappingURL=vault-event-item.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vault-event-item.d.ts.map b/dist/service/model/vault-event-item.d.ts.map new file mode 100644 index 0000000..4c816d2 --- /dev/null +++ b/dist/service/model/vault-event-item.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-item.d.ts","sourceRoot":"","sources":["../../../src/service/model/vault-event-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAkBhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/service/model/vault-event-item.js b/dist/service/model/vault-event-item.js new file mode 100644 index 0000000..c8bddc8 --- /dev/null +++ b/dist/service/model/vault-event-item.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vault-event-item.js.map \ No newline at end of file diff --git a/dist/service/model/vault-event-item.js.map b/dist/service/model/vault-event-item.js.map new file mode 100644 index 0000000..5a74816 --- /dev/null +++ b/dist/service/model/vault-event-item.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event-item.js","sourceRoot":"","sources":["../../../src/service/model/vault-event-item.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vault-event.d.ts b/dist/service/model/vault-event.d.ts new file mode 100644 index 0000000..388ae5d --- /dev/null +++ b/dist/service/model/vault-event.d.ts @@ -0,0 +1,42 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface VaultEvent + */ +export interface VaultEvent { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaCollateral': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaDebt': { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof VaultEvent + */ + 'ilk': Ilk; +} +//# sourceMappingURL=vault-event.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vault-event.d.ts.map b/dist/service/model/vault-event.d.ts.map new file mode 100644 index 0000000..6c6d6cd --- /dev/null +++ b/dist/service/model/vault-event.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event.d.ts","sourceRoot":"","sources":["../../../src/service/model/vault-event.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/service/model/vault-event.js b/dist/service/model/vault-event.js new file mode 100644 index 0000000..7b99dcb --- /dev/null +++ b/dist/service/model/vault-event.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vault-event.js.map \ No newline at end of file diff --git a/dist/service/model/vault-event.js.map b/dist/service/model/vault-event.js.map new file mode 100644 index 0000000..4d0bed0 --- /dev/null +++ b/dist/service/model/vault-event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-event.js","sourceRoot":"","sources":["../../../src/service/model/vault-event.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vault-events-response.d.ts b/dist/service/model/vault-events-response.d.ts new file mode 100644 index 0000000..7512989 --- /dev/null +++ b/dist/service/model/vault-events-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExtendedEvent } from './extended-event'; +/** + * + * @export + * @interface VaultEventsResponse + */ +export interface VaultEventsResponse { + /** + * + * @type {Array} + * @memberof VaultEventsResponse + */ + 'data': Array; +} +//# sourceMappingURL=vault-events-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vault-events-response.d.ts.map b/dist/service/model/vault-events-response.d.ts.map new file mode 100644 index 0000000..e7fed1d --- /dev/null +++ b/dist/service/model/vault-events-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-events-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/vault-events-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/service/model/vault-events-response.js b/dist/service/model/vault-events-response.js new file mode 100644 index 0000000..79439d0 --- /dev/null +++ b/dist/service/model/vault-events-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vault-events-response.js.map \ No newline at end of file diff --git a/dist/service/model/vault-events-response.js.map b/dist/service/model/vault-events-response.js.map new file mode 100644 index 0000000..40966f5 --- /dev/null +++ b/dist/service/model/vault-events-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault-events-response.js","sourceRoot":"","sources":["../../../src/service/model/vault-events-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vault.d.ts b/dist/service/model/vault.d.ts new file mode 100644 index 0000000..5aa3295 --- /dev/null +++ b/dist/service/model/vault.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './ilk'; +/** + * + * @export + * @interface Vault + */ +export interface Vault { + /** + * Identifier for the vault. + * @type {number} + * @memberof Vault + */ + 'id': number; + /** + * Ethereum address of the vault owner. + * @type {string} + * @memberof Vault + */ + 'owner': string; + /** + * Ethereum address of the vault urn. + * @type {string} + * @memberof Vault + */ + 'urn': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'liquidationPrice': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'collateralLocked': { + [key: string]: string | undefined; + }; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof Vault + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof Vault + */ + 'loanToValue': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'debt': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToWithdraw': { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToMint': { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof Vault + */ + 'ilk': Ilk; +} +//# sourceMappingURL=vault.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vault.d.ts.map b/dist/service/model/vault.d.ts.map new file mode 100644 index 0000000..e2d300f --- /dev/null +++ b/dist/service/model/vault.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/service/model/vault.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC3D;;;;OAIG;IACH,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC3D;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,qBAAqB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9D;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC;CACd"} \ No newline at end of file diff --git a/dist/service/model/vault.js b/dist/service/model/vault.js new file mode 100644 index 0000000..a6aeffb --- /dev/null +++ b/dist/service/model/vault.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vault.js.map \ No newline at end of file diff --git a/dist/service/model/vault.js.map b/dist/service/model/vault.js.map new file mode 100644 index 0000000..91016f1 --- /dev/null +++ b/dist/service/model/vault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vault.js","sourceRoot":"","sources":["../../../src/service/model/vault.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/vaults-response.d.ts b/dist/service/model/vaults-response.d.ts new file mode 100644 index 0000000..c9d570f --- /dev/null +++ b/dist/service/model/vaults-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Vault } from './vault'; +/** + * + * @export + * @interface VaultsResponse + */ +export interface VaultsResponse { + /** + * + * @type {Array} + * @memberof VaultsResponse + */ + 'data': Array; +} +//# sourceMappingURL=vaults-response.d.ts.map \ No newline at end of file diff --git a/dist/service/model/vaults-response.d.ts.map b/dist/service/model/vaults-response.d.ts.map new file mode 100644 index 0000000..d7f26ea --- /dev/null +++ b/dist/service/model/vaults-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-response.d.ts","sourceRoot":"","sources":["../../../src/service/model/vaults-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/service/model/vaults-response.js b/dist/service/model/vaults-response.js new file mode 100644 index 0000000..28ad01f --- /dev/null +++ b/dist/service/model/vaults-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=vaults-response.js.map \ No newline at end of file diff --git a/dist/service/model/vaults-response.js.map b/dist/service/model/vaults-response.js.map new file mode 100644 index 0000000..434bdfa --- /dev/null +++ b/dist/service/model/vaults-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vaults-response.js","sourceRoot":"","sources":["../../../src/service/model/vaults-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/model/wallet-balance.d.ts b/dist/service/model/wallet-balance.d.ts new file mode 100644 index 0000000..ba1e798 --- /dev/null +++ b/dist/service/model/wallet-balance.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Balance } from './balance'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} +//# sourceMappingURL=wallet-balance.d.ts.map \ No newline at end of file diff --git a/dist/service/model/wallet-balance.d.ts.map b/dist/service/model/wallet-balance.d.ts.map new file mode 100644 index 0000000..5be629e --- /dev/null +++ b/dist/service/model/wallet-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.d.ts","sourceRoot":"","sources":["../../../src/service/model/wallet-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/service/model/wallet-balance.js b/dist/service/model/wallet-balance.js new file mode 100644 index 0000000..3c8f5f4 --- /dev/null +++ b/dist/service/model/wallet-balance.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=wallet-balance.js.map \ No newline at end of file diff --git a/dist/service/model/wallet-balance.js.map b/dist/service/model/wallet-balance.js.map new file mode 100644 index 0000000..ec97e77 --- /dev/null +++ b/dist/service/model/wallet-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.js","sourceRoot":"","sources":["../../../src/service/model/wallet-balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/service/src/apis/AccountsApi.d.ts b/dist/service/src/apis/AccountsApi.d.ts deleted file mode 100644 index 7791cc2..0000000 --- a/dist/service/src/apis/AccountsApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Account } from '../models/index'; -export interface GetAccountByAddressRequest { - address: string; -} -/** - * AccountsApi - interface - * - * @export - * @interface AccountsApiInterface - */ -export interface AccountsApiInterface { - /** - * Get account by address - * @summary Get account by address - * @param {string} address Ethereum address of the account - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AccountsApiInterface - */ - getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get account by address - * Get account by address - */ - getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface { - /** - * Get account by address - * Get account by address - */ - getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get account by address - * Get account by address - */ - getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=AccountsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/AccountsApi.d.ts.map b/dist/service/src/apis/AccountsApi.d.ts.map deleted file mode 100644 index 576850c..0000000 --- a/dist/service/src/apis/AccountsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/AccountsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,OAAO,EACR,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;OAOG;IACH,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzK;;;OAGG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAEpJ;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAQ,YAAW,oBAAoB;IAE5E;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAsB9K;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;CAKzJ"} \ No newline at end of file diff --git a/dist/service/src/apis/AccountsApi.js b/dist/service/src/apis/AccountsApi.js deleted file mode 100644 index d824156..0000000 --- a/dist/service/src/apis/AccountsApi.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AccountsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class AccountsApi extends runtime.BaseAPI { - /** - * Get account by address - * Get account by address - */ - async getAccountByAddressRaw(requestParameters, initOverrides) { - if (requestParameters['address'] == null) { - throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountByAddress().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/accounts/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountFromJSON)(jsonValue)); - } - /** - * Get account by address - * Get account by address - */ - async getAccountByAddress(requestParameters, initOverrides) { - const response = await this.getAccountByAddressRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.AccountsApi = AccountsApi; -//# sourceMappingURL=AccountsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/AccountsApi.js.map b/dist/service/src/apis/AccountsApi.js.map deleted file mode 100644 index 23aabdc..0000000 --- a/dist/service/src/apis/AccountsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/AccountsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAA6C,EAAE,aAA0D;QAClI,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,SAAS,EACT,wFAAwF,CAC3F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,IAAI,SAAS,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAClH,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA6C,EAAE,aAA0D;QAC/H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AArCD,kCAqCC"} \ No newline at end of file diff --git a/dist/service/src/apis/AddressesApi.d.ts b/dist/service/src/apis/AddressesApi.d.ts deleted file mode 100644 index ddf30b1..0000000 --- a/dist/service/src/apis/AddressesApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { AddressResponse } from '../models/index'; -export interface GetAllAddressesRequest { - format?: string; -} -/** - * AddressesApi - interface - * - * @export - * @interface AddressesApiInterface - */ -export interface AddressesApiInterface { - /** - * All addresses knows to Zarban. - * @summary Get all addresses - * @param {string} [format] The type of addresses to return - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AddressesApiInterface - */ - getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * All addresses knows to Zarban. - * Get all addresses - */ - getAllAddresses(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class AddressesApi extends runtime.BaseAPI implements AddressesApiInterface { - /** - * All addresses knows to Zarban. - * Get all addresses - */ - getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * All addresses knows to Zarban. - * Get all addresses - */ - getAllAddresses(requestParameters?: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=AddressesApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/AddressesApi.d.ts.map b/dist/service/src/apis/AddressesApi.d.ts.map deleted file mode 100644 index 90d980c..0000000 --- a/dist/service/src/apis/AddressesApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressesApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/AddressesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;OAOG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;IAEzK;;;OAGG;IACH,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAEpJ;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAmB9K;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;CAK9J"} \ No newline at end of file diff --git a/dist/service/src/apis/AddressesApi.js b/dist/service/src/apis/AddressesApi.js deleted file mode 100644 index 3de6dde..0000000 --- a/dist/service/src/apis/AddressesApi.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AddressesApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class AddressesApi extends runtime.BaseAPI { - /** - * All addresses knows to Zarban. - * Get all addresses - */ - async getAllAddressesRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/addresses`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddressResponseFromJSON)(jsonValue)); - } - /** - * All addresses knows to Zarban. - * Get all addresses - */ - async getAllAddresses(requestParameters = {}, initOverrides) { - const response = await this.getAllAddressesRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.AddressesApi = AddressesApi; -//# sourceMappingURL=AddressesApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/AddressesApi.js.map b/dist/service/src/apis/AddressesApi.js.map deleted file mode 100644 index 0edf660..0000000 --- a/dist/service/src/apis/AddressesApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressesApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/AddressesApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,oBAA4C,EAAE,EAAE,aAA0D;QAC5H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlCD,oCAkCC"} \ No newline at end of file diff --git a/dist/service/src/apis/BorrowsApi.d.ts b/dist/service/src/apis/BorrowsApi.d.ts deleted file mode 100644 index 9cc9819..0000000 --- a/dist/service/src/apis/BorrowsApi.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { UserBorrowsResponse } from '../models/index'; -export interface GetUserBorrowsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} -/** - * BorrowsApi - interface - * - * @export - * @interface BorrowsApiInterface - */ -export interface BorrowsApiInterface { - /** - * Get user borrows of lendingpool - * @summary Get user borrows of lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BorrowsApiInterface - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class BorrowsApi extends runtime.BaseAPI implements BorrowsApiInterface { - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters?: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=BorrowsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/BorrowsApi.d.ts.map b/dist/service/src/apis/BorrowsApi.d.ts.map deleted file mode 100644 index b765b97..0000000 --- a/dist/service/src/apis/BorrowsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BorrowsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/BorrowsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,qBAAqB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAE3K;;;OAGG;IACH,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAEtJ;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IA+BhL;;;OAGG;IACG,cAAc,CAAC,iBAAiB,GAAE,qBAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAKhK"} \ No newline at end of file diff --git a/dist/service/src/apis/BorrowsApi.js b/dist/service/src/apis/BorrowsApi.js deleted file mode 100644 index e15365b..0000000 --- a/dist/service/src/apis/BorrowsApi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BorrowsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class BorrowsApi extends runtime.BaseAPI { - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrowsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/lendingpool/borrows`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserBorrowsResponseFromJSON)(jsonValue)); - } - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrows(requestParameters = {}, initOverrides) { - const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.BorrowsApi = BorrowsApi; -//# sourceMappingURL=BorrowsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/BorrowsApi.js.map b/dist/service/src/apis/BorrowsApi.js.map deleted file mode 100644 index c831c1a..0000000 --- a/dist/service/src/apis/BorrowsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BorrowsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/BorrowsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAqCzB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,iBAAwC,EAAE,aAA0D;QACxH,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,eAAe,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,yBAAyB;YAC/B,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,mCAA2B,EAAC,SAAS,CAAC,CAAC,CAAC;IACxG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,cAAc,CAAC,oBAA2C,EAAE,EAAE,aAA0D;QAC1H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAChF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,gCA8CC"} \ No newline at end of file diff --git a/dist/service/src/apis/CollectorApi.d.ts b/dist/service/src/apis/CollectorApi.d.ts deleted file mode 100644 index 21522cd..0000000 --- a/dist/service/src/apis/CollectorApi.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Stats } from '../models/index'; -/** - * CollectorApi - interface - * - * @export - * @interface CollectorApiInterface - */ -export interface CollectorApiInterface { - /** - * Get collector data - * @summary Get collector data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CollectorApiInterface - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class CollectorApi extends runtime.BaseAPI implements CollectorApiInterface { - /** - * Get collector data - * Get collector data - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=CollectorApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/CollectorApi.d.ts.map b/dist/service/src/apis/CollectorApi.d.ts.map deleted file mode 100644 index 86346f9..0000000 --- a/dist/service/src/apis/CollectorApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollectorApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/CollectorApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,KAAK,EACN,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAErH;;;OAGG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAEhG;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAe1H;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;CAKrG"} \ No newline at end of file diff --git a/dist/service/src/apis/CollectorApi.js b/dist/service/src/apis/CollectorApi.js deleted file mode 100644 index 10f4a80..0000000 --- a/dist/service/src/apis/CollectorApi.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CollectorApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class CollectorApi extends runtime.BaseAPI { - /** - * Get collector data - * Get collector data - */ - async getCollectorDataRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StatsFromJSON)(jsonValue)); - } - /** - * Get collector data - * Get collector data - */ - async getCollectorData(initOverrides) { - const response = await this.getCollectorDataRaw(initOverrides); - return await response.value(); - } -} -exports.CollectorApi = CollectorApi; -//# sourceMappingURL=CollectorApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/CollectorApi.js.map b/dist/service/src/apis/CollectorApi.js.map deleted file mode 100644 index cef9c88..0000000 --- a/dist/service/src/apis/CollectorApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CollectorApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/CollectorApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,aAA0D;QAChF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,oCA8BC"} \ No newline at end of file diff --git a/dist/service/src/apis/DepositsApi.d.ts b/dist/service/src/apis/DepositsApi.d.ts deleted file mode 100644 index 466a112..0000000 --- a/dist/service/src/apis/DepositsApi.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { UserDepositsResponse } from '../models/index'; -export interface GetUserDepositsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} -/** - * DepositsApi - interface - * - * @export - * @interface DepositsApiInterface - */ -export interface DepositsApiInterface { - /** - * Get user deposits of Lendingpool - * @summary Get user deposits of Lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DepositsApiInterface - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class DepositsApi extends runtime.BaseAPI implements DepositsApiInterface { - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters?: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=DepositsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/DepositsApi.d.ts.map b/dist/service/src/apis/DepositsApi.d.ts.map deleted file mode 100644 index c4a2870..0000000 --- a/dist/service/src/apis/DepositsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/DepositsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,sBAAsB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAE9K;;;OAGG;IACH,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAEzJ;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAQ,YAAW,oBAAoB;IAE5E;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA+BnL;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKnK"} \ No newline at end of file diff --git a/dist/service/src/apis/DepositsApi.js b/dist/service/src/apis/DepositsApi.js deleted file mode 100644 index ef794a3..0000000 --- a/dist/service/src/apis/DepositsApi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DepositsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class DepositsApi extends runtime.BaseAPI { - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDepositsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/lendingpool/deposits`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDepositsResponseFromJSON)(jsonValue)); - } - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDeposits(requestParameters = {}, initOverrides) { - const response = await this.getUserDepositsRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.DepositsApi = DepositsApi; -//# sourceMappingURL=DepositsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/DepositsApi.js.map b/dist/service/src/apis/DepositsApi.js.map deleted file mode 100644 index 5e42930..0000000 --- a/dist/service/src/apis/DepositsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/DepositsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAqCzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,eAAe,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,oBAA4C,EAAE,EAAE,aAA0D;QAC5H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,kCA8CC"} \ No newline at end of file diff --git a/dist/service/src/apis/IlksApi.d.ts b/dist/service/src/apis/IlksApi.d.ts deleted file mode 100644 index 8fbd261..0000000 --- a/dist/service/src/apis/IlksApi.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Ilk, IlksResponse } from '../models/index'; -export interface GetIlkByNameRequest { - name: string; -} -/** - * IlksApi - interface - * - * @export - * @interface IlksApiInterface - */ -export interface IlksApiInterface { - /** - * Retrieve a list of all available ilks. - * @summary Get all Ilks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IlksApiInterface - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve an Ilk by providing its name. - * @summary Get Ilk by name - * @param {string} name Name of the ILK - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IlksApiInterface - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class IlksApi extends runtime.BaseAPI implements IlksApiInterface { - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=IlksApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/IlksApi.d.ts.map b/dist/service/src/apis/IlksApi.d.ts.map deleted file mode 100644 index fb28a93..0000000 --- a/dist/service/src/apis/Ilks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AAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IAKnG;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAsB5J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAKvI"} \ No newline at end of file diff --git a/dist/service/src/apis/IlksApi.js b/dist/service/src/apis/IlksApi.js deleted file mode 100644 index f3497fa..0000000 --- a/dist/service/src/apis/IlksApi.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IlksApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class IlksApi extends runtime.BaseAPI { - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlksRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/ilks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlksResponseFromJSON)(jsonValue)); - } - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlks(initOverrides) { - const response = await this.getAllIlksRaw(initOverrides); - return await response.value(); - } - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByNameRaw(requestParameters, initOverrides) { - if (requestParameters['name'] == null) { - throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getIlkByName().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlkFromJSON)(jsonValue)); - } - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByName(requestParameters, initOverrides) { - const response = await this.getIlkByNameRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.IlksApi = IlksApi; -//# sourceMappingURL=IlksApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/IlksApi.js.map b/dist/service/src/apis/IlksApi.js.map deleted file mode 100644 index ff8dae4..0000000 --- a/dist/service/src/apis/IlksApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IlksApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/IlksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA8CzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IA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is/LendingPoolApi.d.ts b/dist/service/src/apis/LendingPoolApi.d.ts deleted file mode 100644 index 39331d2..0000000 --- a/dist/service/src/apis/LendingPoolApi.d.ts +++ /dev/null @@ -1,255 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { FormattedReserveData, LendingpoolBorrowTxRequest, LendingpoolBorrowTxResponse, LendingpoolDepositTxRequest, LendingpoolDepositTxResponse, LendingpoolRepayTxRequest, LendingpoolRepayTxResponse, LendingpoolUseAssetAsCollateralTxRequest, LendingpoolUseAssetAsCollateralTxResponse, LendingpoolWithdrawTxRequest, LendingpoolWithdrawTxResponse, UserBorrowsResponse, UserDepositsResponse } from '../models/index'; -export interface CreateLendingPoolBorrowRequest { - lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest; -} -export interface CreateLendingPoolDepositRequest { - lendingpoolDepositTxRequest: LendingpoolDepositTxRequest; -} -export interface CreateLendingPoolRepayRequest { - lendingpoolRepayTxRequest: LendingpoolRepayTxRequest; -} -export interface CreateLendingPoolWithdrawRequest { - lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest; -} -export interface FetchReserveDataByAssetRequest { - asset?: string; -} -export interface GetUserBorrowsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} -export interface GetUserDepositsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} -export interface SetLendingPoolAssetCollateralRequest { - lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest; -} -/** - * LendingPoolApi - interface - * - * @export - * @interface LendingPoolApiInterface - */ -export interface LendingPoolApiInterface { - /** - * Borrow from lending pool - * @summary Borrow from lending pool - * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Borrow from lending pool - * Borrow from lending pool - */ - createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Deposit to lending pool - * @summary Deposit to lending pool - * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit to lending pool - * Deposit to lending pool - */ - createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay to lending pool - * @summary Repay to lending pool - * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay to lending pool - * Repay to lending pool - */ - createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw from lending pool - * @summary Withdraw from lending pool - * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve data of reserves - * @summary Fetch Reserve Data By Asset - * @param {string} [asset] The asset address in hexadecimal format. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - fetchReserveDataByAsset(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user borrows of lendingpool - * @summary Get user borrows of lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user deposits of Lendingpool - * @summary Get user deposits of Lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Allows to enable/disable a specific asset as collateral - * @summary Enable/Disable asset as collateral - * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class LendingPoolApi extends runtime.BaseAPI implements LendingPoolApiInterface { - /** - * Borrow from lending pool - * Borrow from lending pool - */ - createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Borrow from lending pool - * Borrow from lending pool - */ - createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Deposit to lending pool - * Deposit to lending pool - */ - createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit to lending pool - * Deposit to lending pool - */ - createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay to lending pool - * Repay to lending pool - */ - createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay to lending pool - * Repay to lending pool - */ - createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - fetchReserveDataByAsset(requestParameters?: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters?: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters?: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=LendingPoolApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/LendingPoolApi.d.ts.map b/dist/service/src/apis/LendingPoolApi.d.ts.map deleted file mode 100644 index 40ffc81..0000000 --- a/dist/service/src/apis/LendingPoolApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingPoolApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/LendingPoolApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,wCAAwC,EACxC,yCAAyC,EACzC,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,iBAAiB,CAAC;AAgCzB,MAAM,WAAW,8BAA8B;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;CAC1D;AAED,MAAM,WAAW,+BAA+B;IAC5C,2BAA2B,EAAE,2BAA2B,CAAC;CAC5D;AAED,MAAM,WAAW,6BAA6B;IAC1C,yBAAyB,EAAE,yBAAyB,CAAC;CACxD;AAED,MAAM,WAAW,gCAAgC;IAC7C,4BAA4B,EAAE,4BAA4B,CAAC;CAC9D;AAED,MAAM,WAAW,8BAA8B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,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B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA+BnL;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKhK;;;OAGG;IACG,gCAAgC,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yCAAyC,CAAC,CAAC;IAyBpO;;;OAGG;IACG,6BAA6B,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yCAAyC,CAAC;CAK/M"} \ No newline at end of file diff --git a/dist/service/src/apis/LendingPoolApi.js b/dist/service/src/apis/LendingPoolApi.js deleted file mode 100644 index 2334080..0000000 --- a/dist/service/src/apis/LendingPoolApi.js +++ /dev/null @@ -1,262 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LendingPoolApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class LendingPoolApi extends runtime.BaseAPI { - /** - * Borrow from lending pool - * Borrow from lending pool - */ - async createLendingPoolBorrowRaw(requestParameters, initOverrides) { - if (requestParameters['lendingpoolBorrowTxRequest'] == null) { - throw new runtime.RequiredError('lendingpoolBorrowTxRequest', 'Required parameter "lendingpoolBorrowTxRequest" was null or undefined when calling createLendingPoolBorrow().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/lendingpool/tx/borrow`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LendingpoolBorrowTxRequestToJSON)(requestParameters['lendingpoolBorrowTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolBorrowTxResponseFromJSON)(jsonValue)); - } - /** - * Borrow from lending pool - * Borrow from lending pool - */ - async createLendingPoolBorrow(requestParameters, initOverrides) { - const response = await this.createLendingPoolBorrowRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Deposit to lending pool - * Deposit to lending pool - */ - async createLendingPoolDepositRaw(requestParameters, initOverrides) { - if (requestParameters['lendingpoolDepositTxRequest'] == null) { - throw new runtime.RequiredError('lendingpoolDepositTxRequest', 'Required parameter "lendingpoolDepositTxRequest" was null or undefined when calling createLendingPoolDeposit().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/lendingpool/tx/deposit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LendingpoolDepositTxRequestToJSON)(requestParameters['lendingpoolDepositTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolDepositTxResponseFromJSON)(jsonValue)); - } - /** - * Deposit to lending pool - * Deposit to lending pool - */ - async createLendingPoolDeposit(requestParameters, initOverrides) { - const response = await this.createLendingPoolDepositRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Repay to lending pool - * Repay to lending pool - */ - async createLendingPoolRepayRaw(requestParameters, initOverrides) { - if (requestParameters['lendingpoolRepayTxRequest'] == null) { - throw new runtime.RequiredError('lendingpoolRepayTxRequest', 'Required parameter "lendingpoolRepayTxRequest" was null or undefined when calling createLendingPoolRepay().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/lendingpool/tx/repay`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LendingpoolRepayTxRequestToJSON)(requestParameters['lendingpoolRepayTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolRepayTxResponseFromJSON)(jsonValue)); - } - /** - * Repay to lending pool - * Repay to lending pool - */ - async createLendingPoolRepay(requestParameters, initOverrides) { - const response = await this.createLendingPoolRepayRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - async createLendingPoolWithdrawRaw(requestParameters, initOverrides) { - if (requestParameters['lendingpoolWithdrawTxRequest'] == null) { - throw new runtime.RequiredError('lendingpoolWithdrawTxRequest', 'Required parameter "lendingpoolWithdrawTxRequest" was null or undefined when calling createLendingPoolWithdraw().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/lendingpool/tx/withdraw`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LendingpoolWithdrawTxRequestToJSON)(requestParameters['lendingpoolWithdrawTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolWithdrawTxResponseFromJSON)(jsonValue)); - } - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - async createLendingPoolWithdraw(requestParameters, initOverrides) { - const response = await this.createLendingPoolWithdrawRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - async fetchReserveDataByAssetRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['asset'] != null) { - queryParameters['asset'] = requestParameters['asset']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/lendingpool/reserves`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FormattedReserveDataFromJSON)(jsonValue)); - } - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - async fetchReserveDataByAsset(requestParameters = {}, initOverrides) { - const response = await this.fetchReserveDataByAssetRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrowsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/lendingpool/borrows`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserBorrowsResponseFromJSON)(jsonValue)); - } - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrows(requestParameters = {}, initOverrides) { - const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDepositsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/lendingpool/deposits`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDepositsResponseFromJSON)(jsonValue)); - } - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDeposits(requestParameters = {}, initOverrides) { - const response = await this.getUserDepositsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - async setLendingPoolAssetCollateralRaw(requestParameters, initOverrides) { - if (requestParameters['lendingpoolUseAssetAsCollateralTxRequest'] == null) { - throw new runtime.RequiredError('lendingpoolUseAssetAsCollateralTxRequest', 'Required parameter "lendingpoolUseAssetAsCollateralTxRequest" was null or undefined when calling setLendingPoolAssetCollateral().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/lendingpool/tx/useassetascollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LendingpoolUseAssetAsCollateralTxRequestToJSON)(requestParameters['lendingpoolUseAssetAsCollateralTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolUseAssetAsCollateralTxResponseFromJSON)(jsonValue)); - } - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - async setLendingPoolAssetCollateral(requestParameters, initOverrides) { - const response = await this.setLendingPoolAssetCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.LendingPoolApi = LendingPoolApi; -//# sourceMappingURL=LendingPoolApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/LendingPoolApi.js.map b/dist/service/src/apis/LendingPoolApi.js.map deleted file mode 100644 index 592bcaf..0000000 --- a/dist/service/src/apis/LendingPoolApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingPoolApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/LendingPoolApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAiBtC,2CA6ByB;AAuLzB;;GAEG;AACH,MAAa,c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J,IAAI,iBAAiB,CAAC,0CAA0C,CAAC,IAAI,IAAI,EAAE,CAAC;YACxE,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,0CAA0C,EAC1C,mIAAmI,CACtI,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,yCAAyC;YAC/C,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,sDAA8C,EAAC,iBAAiB,CAAC,0CAA0C,CAAC,CAAC;SACtH,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,yDAAiD,EAAC,SAAS,CAAC,CAAC,CAAC;IAC9H,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CAAC,iBAAuD,EAAE,aAA0D;QACnJ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/F,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxTD,wCAwTC"} \ No newline at end of file diff --git a/dist/service/src/apis/LogsApi.d.ts b/dist/service/src/apis/LogsApi.d.ts deleted file mode 100644 index 739c57a..0000000 --- a/dist/service/src/apis/LogsApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { EventDetailsResponse } from '../models/index'; -export interface GetLogsByTransactionHashRequest { - txHash: string; -} -/** - * LogsApi - interface - * - * @export - * @interface LogsApiInterface - */ -export interface LogsApiInterface { - /** - * Get raw and decoded logs by transaction hash - * @summary Get raw and decoded logs by transaction hash - * @param {string} txHash Transaction hash - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LogsApiInterface - */ - getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class LogsApi extends runtime.BaseAPI implements LogsApiInterface { - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=LogsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/LogsApi.d.ts.map b/dist/service/src/apis/LogsApi.d.ts.map deleted file mode 100644 index 25582b0..0000000 --- a/dist/service/src/apis/LogsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LogsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/LogsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,+BAA+B;IAC5C,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,2BAA2B,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAEhM;;;OAGG;IACH,wBAAwB,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAE3K;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,2BAA2B,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAsBrM;;;OAGG;IACG,wBAAwB,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKhL"} \ No newline at end of file diff --git a/dist/service/src/apis/LogsApi.js b/dist/service/src/apis/LogsApi.js deleted file mode 100644 index d42b621..0000000 --- a/dist/service/src/apis/LogsApi.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class LogsApi extends runtime.BaseAPI { - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - async getLogsByTransactionHashRaw(requestParameters, initOverrides) { - if (requestParameters['txHash'] == null) { - throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getLogsByTransactionHash().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/logs/{txHash}`.replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EventDetailsResponseFromJSON)(jsonValue)); - } - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - async getLogsByTransactionHash(requestParameters, initOverrides) { - const response = await this.getLogsByTransactionHashRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.LogsApi = LogsApi; -//# sourceMappingURL=LogsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/LogsApi.js.map b/dist/service/src/apis/LogsApi.js.map deleted file mode 100644 index f5420ce..0000000 --- a/dist/service/src/apis/LogsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LogsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/LogsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,2BAA2B,CAAC,iBAAkD,EAAE,aAA0D;QAC5I,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,QAAQ,EACR,4FAA4F,CAC/F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI,QAAQ,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC3G,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,wBAAwB,CAAC,iBAAkD,EAAE,aAA0D;QACzI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC1F,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AArCD,0BAqCC"} \ No newline at end of file diff --git a/dist/service/src/apis/OrdersApi.d.ts b/dist/service/src/apis/OrdersApi.d.ts deleted file mode 100644 index bea950f..0000000 --- a/dist/service/src/apis/OrdersApi.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { OrderResponse, TimeRange, UpdateOrderRequest } from '../models/index'; -export interface GetUnfilledOrdersRequest { - type?: GetUnfilledOrdersTypeEnum; - hash?: string; - status?: GetUnfilledOrdersStatusEnum; - offerer?: string; - filler?: string; - decayStartTime?: TimeRange; - decayEndTime?: TimeRange; - deadline?: TimeRange; - cursor?: number; - limit?: number; -} -export interface SyncOrderRequest { - updateOrderRequest: UpdateOrderRequest; -} -/** - * OrdersApi - interface - * - * @export - * @interface OrdersApiInterface - */ -export interface OrdersApiInterface { - /** - * Get a list of unfilled orders filtered by different parameters. - * @summary Fetch Unfilled Orders - * @param {'limit' | 'dutch'} [type] Type of the order - * @param {string} [hash] order hash - * @param {'open' | 'expired' | 'error' | 'cancelled' | 'filled' | 'insufficient-funds'} [status] Status of the order - * @param {string} [offerer] Ethereum address of the offerer - * @param {string} [filler] Ethereum address of the filler - * @param {TimeRange} [decayStartTime] Decay start time - * @param {TimeRange} [decayEndTime] Decay end time - * @param {TimeRange} [deadline] Order deadline - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of orders returned (default is 10) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof OrdersApiInterface - */ - getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - getUnfilledOrders(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * updates an order entity in database - * @summary Updates Order Entity - * @param {UpdateOrderRequest} updateOrderRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof OrdersApiInterface - */ - syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * updates an order entity in database - * Updates Order Entity - */ - syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class OrdersApi extends runtime.BaseAPI implements OrdersApiInterface { - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - getUnfilledOrders(requestParameters?: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * updates an order entity in database - * Updates Order Entity - */ - syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * updates an order entity in database - * Updates Order Entity - */ - syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const GetUnfilledOrdersTypeEnum: { - readonly LIMIT: "limit"; - readonly DUTCH: "dutch"; -}; -export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; -/** - * @export - */ -export declare const GetUnfilledOrdersStatusEnum: { - readonly OPEN: "open"; - readonly EXPIRED: "expired"; - readonly ERROR: "error"; - readonly CANCELLED: "cancelled"; - readonly FILLED: "filled"; - readonly INSUFFICIENT_FUNDS: "insufficient-funds"; -}; -export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; -//# sourceMappingURL=OrdersApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/OrdersApi.d.ts.map b/dist/service/src/apis/OrdersApi.d.ts.map deleted file mode 100644 index 6315c11..0000000 --- a/dist/service/src/apis/OrdersApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrdersApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/OrdersApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,yBAAyB,C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oB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAuDhL;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,GAAE,wBAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK7J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IA6BxJ;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;CAKnI;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/src/apis/OrdersApi.js b/dist/service/src/apis/OrdersApi.js deleted file mode 100644 index a8a3b24..0000000 --- a/dist/service/src/apis/OrdersApi.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetUnfilledOrdersStatusEnum = exports.GetUnfilledOrdersTypeEnum = exports.OrdersApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class OrdersApi extends runtime.BaseAPI { - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - async getUnfilledOrdersRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - if (requestParameters['hash'] != null) { - queryParameters['hash'] = requestParameters['hash']; - } - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; - } - if (requestParameters['offerer'] != null) { - queryParameters['offerer'] = requestParameters['offerer']; - } - if (requestParameters['filler'] != null) { - queryParameters['filler'] = requestParameters['filler']; - } - if (requestParameters['decayStartTime'] != null) { - queryParameters['decayStartTime'] = requestParameters['decayStartTime']; - } - if (requestParameters['decayEndTime'] != null) { - queryParameters['decayEndTime'] = requestParameters['decayEndTime']; - } - if (requestParameters['deadline'] != null) { - queryParameters['deadline'] = requestParameters['deadline']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/orders`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrderResponseFromJSON)(jsonValue)); - } - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - async getUnfilledOrders(requestParameters = {}, initOverrides) { - const response = await this.getUnfilledOrdersRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * updates an order entity in database - * Updates Order Entity - */ - async syncOrderRaw(requestParameters, initOverrides) { - if (requestParameters['updateOrderRequest'] == null) { - throw new runtime.RequiredError('updateOrderRequest', 'Required parameter "updateOrderRequest" was null or undefined when calling syncOrder().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/orders/sync`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.UpdateOrderRequestToJSON)(requestParameters['updateOrderRequest']), - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } - else { - return new runtime.TextApiResponse(response); - } - } - /** - * updates an order entity in database - * Updates Order Entity - */ - async syncOrder(requestParameters, initOverrides) { - const response = await this.syncOrderRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.OrdersApi = OrdersApi; -/** - * @export - */ -exports.GetUnfilledOrdersTypeEnum = { - LIMIT: 'limit', - DUTCH: 'dutch' -}; -/** - * @export - */ -exports.GetUnfilledOrdersStatusEnum = { - OPEN: 'open', - EXPIRED: 'expired', - ERROR: 'error', - CANCELLED: 'cancelled', - FILLED: 'filled', - INSUFFICIENT_FUNDS: 'insufficient-funds' -}; -//# sourceMappingURL=OrdersApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/OrdersApi.js.map b/dist/service/src/apis/OrdersApi.js.map deleted file mode 100644 index 57e91ff..0000000 --- a/dist/service/src/apis/OrdersApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrdersApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/OrdersApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AAqEzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA2C,EAAE,aAA0D;QAC9H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,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YACtB,IAAI,EAAE,IAAA,gCAAwB,EAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;SAC1E,EAAE,aAAa,CAAC,CAAC;QAElB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACxD,OAAO,IAAI,OAAO,CAAC,eAAe,CAAQ,QAAQ,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAQ,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,iBAAmC,EAAE,aAA0D;QAC3G,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhHD,8BAgHC;AAED;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAEX;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC"} \ No newline at end of file diff --git a/dist/service/src/apis/PermitApi.d.ts b/dist/service/src/apis/PermitApi.d.ts deleted file mode 100644 index 1e855a9..0000000 --- a/dist/service/src/apis/PermitApi.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { PermitSingle } from '../models/index'; -export interface GetSingleTokenPermitRequest { - token: string; - user: string; -} -/** - * PermitApi - interface - * - * @export - * @interface PermitApiInterface - */ -export interface PermitApiInterface { - /** - * Get permit for single token - * @summary Get permit for single token - * @param {string} token Ethereum address of the token - * @param {string} user Ethereum address of the user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PermitApiInterface - */ - getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get permit for single token - * Get permit for single token - */ - getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class PermitApi extends runtime.BaseAPI implements PermitApiInterface { - /** - * Get permit for single token - * Get permit for single token - */ - getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get permit for single token - * Get permit for single token - */ - getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=PermitApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/PermitApi.d.ts.map b/dist/service/src/apis/PermitApi.d.ts.map deleted file mode 100644 index 2a59f4b..0000000 --- a/dist/service/src/apis/PermitApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermitApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/PermitApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;OAQG;IACH,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAEhL;;;OAGG;IACH,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAE3J;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAqCrL;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAKhK"} \ No newline at end of file diff --git a/dist/service/src/apis/PermitApi.js b/dist/service/src/apis/PermitApi.js deleted file mode 100644 index c226ade..0000000 --- a/dist/service/src/apis/PermitApi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PermitApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class PermitApi extends runtime.BaseAPI { - /** - * Get permit for single token - * Get permit for single token - */ - async getSingleTokenPermitRaw(requestParameters, initOverrides) { - if (requestParameters['token'] == null) { - throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling getSingleTokenPermit().'); - } - if (requestParameters['user'] == null) { - throw new runtime.RequiredError('user', 'Required parameter "user" was null or undefined when calling getSingleTokenPermit().'); - } - const queryParameters = {}; - if (requestParameters['token'] != null) { - queryParameters['token'] = requestParameters['token']; - } - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/permit/single`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermitSingleFromJSON)(jsonValue)); - } - /** - * Get permit for single token - * Get permit for single token - */ - async getSingleTokenPermit(requestParameters, initOverrides) { - const response = await this.getSingleTokenPermitRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.PermitApi = PermitApi; -//# sourceMappingURL=PermitApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/PermitApi.js.map b/dist/service/src/apis/PermitApi.js.map deleted file mode 100644 index 3132614..0000000 --- a/dist/service/src/apis/PermitApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermitApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/PermitApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAiCzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,iBAA8C,EAAE,aAA0D;QACpI,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,OAAO,EACP,uFAAuF,CAC1F,CAAC;QACN,CAAC;QAED,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,MAAM,EACN,sFAAsF,CACzF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA8C,EAAE,aAA0D;QACjI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACtF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AApDD,8BAoDC"} \ No newline at end of file diff --git a/dist/service/src/apis/PointsApi.d.ts b/dist/service/src/apis/PointsApi.d.ts deleted file mode 100644 index 47b006b..0000000 --- a/dist/service/src/apis/PointsApi.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Scoreboard } from '../models/index'; -/** - * PointsApi - interface - * - * @export - * @interface PointsApiInterface - */ -export interface PointsApiInterface { - /** - * Get scoreboard - * @summary Get scoreboard - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PointsApiInterface - */ - getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get scoreboard - * Get scoreboard - */ - getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class PointsApi extends runtime.BaseAPI implements PointsApiInterface { - /** - * Get scoreboard - * Get scoreboard - */ - getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get scoreboard - * Get scoreboard - */ - getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=PointsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/PointsApi.d.ts.map b/dist/service/src/apis/PointsApi.d.ts.map deleted file mode 100644 index 7e1aca0..0000000 --- a/dist/service/src/apis/PointsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PointsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/PointsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,UAAU,EACX,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;IAEvH;;;OAGG;IACH,aAAa,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAElG;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAe5H;;;OAGG;IACG,aAAa,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAKvG"} \ No newline at end of file diff --git a/dist/service/src/apis/PointsApi.js b/dist/service/src/apis/PointsApi.js deleted file mode 100644 index 91e40f7..0000000 --- a/dist/service/src/apis/PointsApi.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PointsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class PointsApi extends runtime.BaseAPI { - /** - * Get scoreboard - * Get scoreboard - */ - async getScoreboardRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/points/scoreboard`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScoreboardFromJSON)(jsonValue)); - } - /** - * Get scoreboard - * Get scoreboard - */ - async getScoreboard(initOverrides) { - const response = await this.getScoreboardRaw(initOverrides); - return await response.value(); - } -} -exports.PointsApi = PointsApi; -//# sourceMappingURL=PointsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/PointsApi.js.map b/dist/service/src/apis/PointsApi.js.map deleted file mode 100644 index 2599453..0000000 --- a/dist/service/src/apis/PointsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PointsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/PointsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,0BAAkB,EAAC,SAAS,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC5D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,8BA8BC"} \ No newline at end of file diff --git a/dist/service/src/apis/PricesApi.d.ts b/dist/service/src/apis/PricesApi.d.ts deleted file mode 100644 index 71957ce..0000000 --- a/dist/service/src/apis/PricesApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { PriceListResponse } from '../models/index'; -export interface ListPricesRequest { - symbol?: string; -} -/** - * PricesApi - interface - * - * @export - * @interface PricesApiInterface - */ -export interface PricesApiInterface { - /** - * Retrieve a list of price details based on specified query parameters - * @summary List prices based on query parameters - * @param {string} [symbol] Symbol of the price - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PricesApiInterface - */ - listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - listPrices(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class PricesApi extends runtime.BaseAPI implements PricesApiInterface { - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - listPrices(requestParameters?: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=PricesApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/PricesApi.d.ts.map b/dist/service/src/apis/PricesApi.d.ts.map deleted file mode 100644 index e76cd51..0000000 --- a/dist/service/src/apis/PricesApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PricesApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/PricesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;OAOG;IACH,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAEjK;;;OAGG;IACH,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAE5I;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAmBtK;;;OAGG;IACG,UAAU,CAAC,iBAAiB,GAAE,iBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAKtJ"} \ No newline at end of file diff --git a/dist/service/src/apis/PricesApi.js b/dist/service/src/apis/PricesApi.js deleted file mode 100644 index f90d501..0000000 --- a/dist/service/src/apis/PricesApi.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PricesApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class PricesApi extends runtime.BaseAPI { - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - async listPricesRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['symbol'] != null) { - queryParameters['symbol'] = requestParameters['symbol']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/prices`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PriceListResponseFromJSON)(jsonValue)); - } - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - async listPrices(requestParameters = {}, initOverrides) { - const response = await this.listPricesRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.PricesApi = PricesApi; -//# sourceMappingURL=PricesApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/PricesApi.js.map b/dist/service/src/apis/PricesApi.js.map deleted file mode 100644 index 2c86035..0000000 --- a/dist/service/src/apis/PricesApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PricesApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/PricesApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAoC,EAAE,aAA0D;QAChH,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,iCAAyB,EAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,oBAAuC,EAAE,EAAE,aAA0D;QAClH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC5E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlCD,8BAkCC"} \ No newline at end of file diff --git a/dist/service/src/apis/StableCoinSystemApi.d.ts b/dist/service/src/apis/StableCoinSystemApi.d.ts deleted file mode 100644 index ecf865e..0000000 --- a/dist/service/src/apis/StableCoinSystemApi.d.ts +++ /dev/null @@ -1,481 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { ChainActivity, Ilk, IlksResponse, StablecoinSystemBarkTxRequest, StablecoinSystemCreateVaultTxRequest, StablecoinSystemDepositCollateralTxRequest, StablecoinSystemGemexitTxRequest, StablecoinSystemMintZarTxRequest, StablecoinSystemRedoTxRequest, StablecoinSystemRepayZarTxRequest, StablecoinSystemTakeTxRequest, StablecoinSystemWithdrawCollateralTxRequest, StablecoinSystemZarexitTxRequest, StablecoinSystemZarjoinTxRequest, Stats, Vault, VaultEventsResponse, VaultsResponse } from '../models/index'; -export interface ApproveAndJoinZarTransactionRequest { - stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest; -} -export interface CreateStableCoinVaultRequest { - stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest; -} -export interface DepositStableCoinCollateralRequest { - stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest; -} -export interface ExitGemTransactionRequest { - stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest; -} -export interface ExitZarTransactionRequest { - stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest; -} -export interface GetIlkByNameRequest { - name: string; -} -export interface GetVaultByIdRequest { - id: number; -} -export interface GetVaultEventsByIdRequest { - id: number; - type?: GetVaultEventsByIdTypeEnum; -} -export interface GetVaultsByOwnerRequest { - owner?: string; -} -export interface LiquidateVaultTransactionRequest { - stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest; -} -export interface MintZarTransactionRequest { - stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest; -} -export interface RepayZarTransactionRequest { - stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest; -} -export interface ResetAuctionTransactionRequest { - stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest; -} -export interface TakeAuctionTransactionRequest { - stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest; -} -export interface WithdrawCollateralTransactionRequest { - stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest; -} -/** - * StableCoinSystemApi - interface - * - * @export - * @interface StableCoinSystemApiInterface - */ -export interface StableCoinSystemApiInterface { - /** - * approve and join ZAR token into Vat contract - * @summary approve and join ZAR token into Vat contract - * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Create vault - * @summary Create vault - * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create vault - * Create vault - */ - createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Deposit collateral - * @summary Deposit collateral - * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit collateral - * Deposit collateral - */ - depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * exit Gem token (which can be used as collateral) from Vat contract - * @summary exit Gem token (which can be used as collateral) from Vat contract - * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * exit ZAR token from Vat contract - * @summary exit ZAR token from Vat contract - * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve a list of all available ilks. - * @summary Get all Ilks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get collector data - * @summary Get collector data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve an Ilk by providing its name. - * @summary Get Ilk by name - * @param {string} name Name of the ILK - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * - * @summary Get a vault by ID - * @param {number} id Vault ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * - * @summary Get vault events by ID - * @param {number} id Vault ID - * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * - * @summary Get vaults by owner query - * @param {string} [owner] Ethereum address of the owner - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * liquidate a vault - * @summary liquidate a vault - * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * liquidate a vault - * liquidate a vault - */ - liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Mint ZAR - * @summary Mint ZAR - * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Mint ZAR - * Mint ZAR - */ - mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay ZAR - * @summary Repay ZAR - * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay ZAR - * Repay ZAR - */ - repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * reset a auction - * @summary reset a auction - * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * reset a auction - * reset a auction - */ - resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * take a auction - * @summary take a auction - * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * take a auction - * take a auction - */ - takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw collateral - * @summary Withdraw collateral - * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw collateral - * Withdraw collateral - */ - withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class StableCoinSystemApi extends runtime.BaseAPI implements StableCoinSystemApiInterface { - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Create vault - * Create vault - */ - createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create vault - * Create vault - */ - createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Deposit collateral - * Deposit collateral - */ - depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit collateral - * Deposit collateral - */ - depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get collector data - * Get collector data - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get a vault by ID - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get vault events by ID - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get vaults by owner query - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters?: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * liquidate a vault - * liquidate a vault - */ - liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * liquidate a vault - * liquidate a vault - */ - liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Mint ZAR - * Mint ZAR - */ - mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Mint ZAR - * Mint ZAR - */ - mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay ZAR - * Repay ZAR - */ - repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay ZAR - * Repay ZAR - */ - repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * reset a auction - * reset a auction - */ - resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * reset a auction - * reset a auction - */ - resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * take a auction - * take a auction - */ - takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * take a auction - * take a auction - */ - takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw collateral - * Withdraw collateral - */ - withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw collateral - * Withdraw collateral - */ - withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const GetVaultEventsByIdTypeEnum: { - readonly REPAY: "repay"; - readonly DEPOSIT: "deposit"; - readonly WITHDRAW: "withdraw"; - readonly MINT: "mint"; -}; -export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; -//# sourceMappingURL=StableCoinSystemApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/StableCoinSystemApi.d.ts.map b/dist/service/src/apis/StableCoinSystemApi.d.ts.map deleted file mode 100644 index 6999a1a..0000000 --- a/dist/service/src/apis/StableCoinSystemApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StableCoinSystemApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/StableCoinSystemApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,aAAa,EACb,GAAG,EACH,YAAY,EACZ,6BAA6B,EAC7B,oCAAoC,EACpC,0CAA0C,EAC1C,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,2CAA2C,EAC3C,gCAAgC,EAChC,gCAAgC,EAChC,KAAK,EACL,KAAK,EACL,mBAAmB,EACnB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAwCzB,MAAM,WAAW,mCAAmC;IAChD,gCAAgC,EAAE,gCAAgC,CAAC;CACtE;AAED,MAAM,WAAW,4BAA4B;IACzC,oCAAoC,E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AAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyB5L;;;OAGG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,8BAA8B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKpK;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyB1L;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKlK;;;OAGG;IACG,gCAAgC,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyBxM;;;OAGG;IACG,6BAA6B,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKnL;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/service/src/apis/StableCoinSystemApi.js b/dist/service/src/apis/StableCoinSystemApi.js deleted file mode 100644 index 8513292..0000000 --- a/dist/service/src/apis/StableCoinSystemApi.js +++ /dev/null @@ -1,490 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetVaultEventsByIdTypeEnum = exports.StableCoinSystemApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class StableCoinSystemApi extends runtime.BaseAPI { - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - async approveAndJoinZarTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemZarjoinTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemZarjoinTxRequest', 'Required parameter "stablecoinSystemZarjoinTxRequest" was null or undefined when calling approveAndJoinZarTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/zarjoin`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemZarjoinTxRequestToJSON)(requestParameters['stablecoinSystemZarjoinTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - async approveAndJoinZarTransaction(requestParameters, initOverrides) { - const response = await this.approveAndJoinZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Create vault - * Create vault - */ - async createStableCoinVaultRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemCreateVaultTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemCreateVaultTxRequest', 'Required parameter "stablecoinSystemCreateVaultTxRequest" was null or undefined when calling createStableCoinVault().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/createvault`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemCreateVaultTxRequestToJSON)(requestParameters['stablecoinSystemCreateVaultTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * Create vault - * Create vault - */ - async createStableCoinVault(requestParameters, initOverrides) { - const response = await this.createStableCoinVaultRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Deposit collateral - * Deposit collateral - */ - async depositStableCoinCollateralRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemDepositCollateralTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemDepositCollateralTxRequest', 'Required parameter "stablecoinSystemDepositCollateralTxRequest" was null or undefined when calling depositStableCoinCollateral().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/depositcollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemDepositCollateralTxRequestToJSON)(requestParameters['stablecoinSystemDepositCollateralTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * Deposit collateral - * Deposit collateral - */ - async depositStableCoinCollateral(requestParameters, initOverrides) { - const response = await this.depositStableCoinCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - async exitGemTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemGemexitTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemGemexitTxRequest', 'Required parameter "stablecoinSystemGemexitTxRequest" was null or undefined when calling exitGemTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/gemexit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemGemexitTxRequestToJSON)(requestParameters['stablecoinSystemGemexitTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - async exitGemTransaction(requestParameters, initOverrides) { - const response = await this.exitGemTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - async exitZarTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemZarexitTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemZarexitTxRequest', 'Required parameter "stablecoinSystemZarexitTxRequest" was null or undefined when calling exitZarTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/zarexit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemZarexitTxRequestToJSON)(requestParameters['stablecoinSystemZarexitTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - async exitZarTransaction(requestParameters, initOverrides) { - const response = await this.exitZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlksRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/ilks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlksResponseFromJSON)(jsonValue)); - } - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlks(initOverrides) { - const response = await this.getAllIlksRaw(initOverrides); - return await response.value(); - } - /** - * Get collector data - * Get collector data - */ - async getCollectorDataRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StatsFromJSON)(jsonValue)); - } - /** - * Get collector data - * Get collector data - */ - async getCollectorData(initOverrides) { - const response = await this.getCollectorDataRaw(initOverrides); - return await response.value(); - } - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByNameRaw(requestParameters, initOverrides) { - if (requestParameters['name'] == null) { - throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getIlkByName().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlkFromJSON)(jsonValue)); - } - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByName(requestParameters, initOverrides) { - const response = await this.getIlkByNameRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a vault by ID - */ - async getVaultByIdRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultById().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultFromJSON)(jsonValue)); - } - /** - * Get a vault by ID - */ - async getVaultById(requestParameters, initOverrides) { - const response = await this.getVaultByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get vault events by ID - */ - async getVaultEventsByIdRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultEventsById().'); - } - const queryParameters = {}; - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultEventsResponseFromJSON)(jsonValue)); - } - /** - * Get vault events by ID - */ - async getVaultEventsById(requestParameters, initOverrides) { - const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get vaults by owner query - */ - async getVaultsByOwnerRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['owner'] != null) { - queryParameters['owner'] = requestParameters['owner']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultsResponseFromJSON)(jsonValue)); - } - /** - * Get vaults by owner query - */ - async getVaultsByOwner(requestParameters = {}, initOverrides) { - const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * liquidate a vault - * liquidate a vault - */ - async liquidateVaultTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemBarkTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemBarkTxRequest', 'Required parameter "stablecoinSystemBarkTxRequest" was null or undefined when calling liquidateVaultTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/bark`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemBarkTxRequestToJSON)(requestParameters['stablecoinSystemBarkTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * liquidate a vault - * liquidate a vault - */ - async liquidateVaultTransaction(requestParameters, initOverrides) { - const response = await this.liquidateVaultTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Mint ZAR - * Mint ZAR - */ - async mintZarTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemMintZarTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemMintZarTxRequest', 'Required parameter "stablecoinSystemMintZarTxRequest" was null or undefined when calling mintZarTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/mintzar`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemMintZarTxRequestToJSON)(requestParameters['stablecoinSystemMintZarTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * Mint ZAR - * Mint ZAR - */ - async mintZarTransaction(requestParameters, initOverrides) { - const response = await this.mintZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Repay ZAR - * Repay ZAR - */ - async repayZarTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemRepayZarTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemRepayZarTxRequest', 'Required parameter "stablecoinSystemRepayZarTxRequest" was null or undefined when calling repayZarTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/repayzar`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemRepayZarTxRequestToJSON)(requestParameters['stablecoinSystemRepayZarTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * Repay ZAR - * Repay ZAR - */ - async repayZarTransaction(requestParameters, initOverrides) { - const response = await this.repayZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * reset a auction - * reset a auction - */ - async resetAuctionTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemRedoTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemRedoTxRequest', 'Required parameter "stablecoinSystemRedoTxRequest" was null or undefined when calling resetAuctionTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/redo`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemRedoTxRequestToJSON)(requestParameters['stablecoinSystemRedoTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * reset a auction - * reset a auction - */ - async resetAuctionTransaction(requestParameters, initOverrides) { - const response = await this.resetAuctionTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * take a auction - * take a auction - */ - async takeAuctionTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemTakeTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemTakeTxRequest', 'Required parameter "stablecoinSystemTakeTxRequest" was null or undefined when calling takeAuctionTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/take`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemTakeTxRequestToJSON)(requestParameters['stablecoinSystemTakeTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * take a auction - * take a auction - */ - async takeAuctionTransaction(requestParameters, initOverrides) { - const response = await this.takeAuctionTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Withdraw collateral - * Withdraw collateral - */ - async withdrawCollateralTransactionRaw(requestParameters, initOverrides) { - if (requestParameters['stablecoinSystemWithdrawCollateralTxRequest'] == null) { - throw new runtime.RequiredError('stablecoinSystemWithdrawCollateralTxRequest', 'Required parameter "stablecoinSystemWithdrawCollateralTxRequest" was null or undefined when calling withdrawCollateralTransaction().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/withdrawcollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StablecoinSystemWithdrawCollateralTxRequestToJSON)(requestParameters['stablecoinSystemWithdrawCollateralTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); - } - /** - * Withdraw collateral - * Withdraw collateral - */ - async withdrawCollateralTransaction(requestParameters, initOverrides) { - const response = await this.withdrawCollateralTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.StableCoinSystemApi = StableCoinSystemApi; -/** - * @export - */ -exports.GetVaultEventsByIdTypeEnum = { - REPAY: 'repay', - DEPOSIT: 'deposit', - WITHDRAW: 'withdraw', - MINT: 'mint' -}; -//# sourceMappingURL=StableCoinSystemApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/StableCoinSystemApi.js.map b/dist/service/src/apis/StableCoinSystemApi.js.map deleted file mode 100644 index bd5354c..0000000 --- a/dist/service/src/apis/StableCoinSystemApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StableCoinSystemApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/StableCoinSystemApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAqBtC,2CAqCyB;AAoVzB;;GAEG;AACH,MAAa,mBAAoB,SAAQ,OAAO,CAAC,OA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--git a/dist/service/src/apis/StakingApi.d.ts b/dist/service/src/apis/StakingApi.d.ts deleted file mode 100644 index 71ff103..0000000 --- a/dist/service/src/apis/StakingApi.d.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { StakePlansResponse, StakingCollectRewardTxRequest, StakingCollectRewardTxResponse, StakingStakeTxRequest, StakingStakeTxResponse, StakingWithdrawTxRequest, StakingWithdrawTxResponse, UserStakesResponse } from '../models/index'; -export interface CollectStakingRewardRequest { - stakingCollectRewardTxRequest: StakingCollectRewardTxRequest; -} -export interface GetUserStakingStatsRequest { - user?: string; - address?: string; - active?: boolean; - cursor?: number; - limit?: number; -} -export interface StakeToStakingContractRequest { - stakingStakeTxRequest: StakingStakeTxRequest; -} -export interface WithdrawStakedAssetRequest { - stakingWithdrawTxRequest: StakingWithdrawTxRequest; -} -/** - * StakingApi - interface - * - * @export - * @interface StakingApiInterface - */ -export interface StakingApiInterface { - /** - * Collect staking reward - * @summary Collect staking reward - * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Collect staking reward - * Collect staking reward - */ - collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get staking plans - * @summary Get staking plans - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get staking plans - * Get staking plans - */ - getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user staking stats - * @summary Get user staking stats - * @param {string} [user] Ethereum address of the user - * @param {string} [address] Ethereum address of the staking contract - * @param {boolean} [active] Filter by active stakes - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of stakes returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user staking stats - * Get user staking stats - */ - getUserStakingStats(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Stake to staking contract - * @summary Stake to staking contract - * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Stake to staking contract - * Stake to staking contract - */ - stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw staked asset - * @summary Withdraw staked asset - * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw staked asset - * Withdraw staked asset - */ - withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class StakingApi extends runtime.BaseAPI implements StakingApiInterface { - /** - * Collect staking reward - * Collect staking reward - */ - collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Collect staking reward - * Collect staking reward - */ - collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get staking plans - * Get staking plans - */ - getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get staking plans - * Get staking plans - */ - getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get user staking stats - * Get user staking stats - */ - getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user staking stats - * Get user staking stats - */ - getUserStakingStats(requestParameters?: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Stake to staking contract - * Stake to staking contract - */ - stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Stake to staking contract - * Stake to staking contract - */ - stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Withdraw staked asset - * Withdraw staked asset - */ - withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Withdraw staked asset - * Withdraw staked asset - */ - withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=StakingApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/StakingApi.d.ts.map b/dist/service/src/apis/StakingApi.d.ts.map deleted file mode 100644 index daea249..0000000 --- a/dist/service/src/apis/StakingApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/StakingApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;G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C,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAyBhM;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAK3K"} \ No newline at end of file diff --git a/dist/service/src/apis/StakingApi.js b/dist/service/src/apis/StakingApi.js deleted file mode 100644 index b4f20d6..0000000 --- a/dist/service/src/apis/StakingApi.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StakingApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class StakingApi extends runtime.BaseAPI { - /** - * Collect staking reward - * Collect staking reward - */ - async collectStakingRewardRaw(requestParameters, initOverrides) { - if (requestParameters['stakingCollectRewardTxRequest'] == null) { - throw new runtime.RequiredError('stakingCollectRewardTxRequest', 'Required parameter "stakingCollectRewardTxRequest" was null or undefined when calling collectStakingReward().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/staking/tx/collectreward`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StakingCollectRewardTxRequestToJSON)(requestParameters['stakingCollectRewardTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingCollectRewardTxResponseFromJSON)(jsonValue)); - } - /** - * Collect staking reward - * Collect staking reward - */ - async collectStakingReward(requestParameters, initOverrides) { - const response = await this.collectStakingRewardRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get staking plans - * Get staking plans - */ - async getStakingPlansRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/staking/plans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakePlansResponseFromJSON)(jsonValue)); - } - /** - * Get staking plans - * Get staking plans - */ - async getStakingPlans(initOverrides) { - const response = await this.getStakingPlansRaw(initOverrides); - return await response.value(); - } - /** - * Get user staking stats - * Get user staking stats - */ - async getUserStakingStatsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - if (requestParameters['address'] != null) { - queryParameters['address'] = requestParameters['address']; - } - if (requestParameters['active'] != null) { - queryParameters['active'] = requestParameters['active']; - } - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/staking/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserStakesResponseFromJSON)(jsonValue)); - } - /** - * Get user staking stats - * Get user staking stats - */ - async getUserStakingStats(requestParameters = {}, initOverrides) { - const response = await this.getUserStakingStatsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Stake to staking contract - * Stake to staking contract - */ - async stakeToStakingContractRaw(requestParameters, initOverrides) { - if (requestParameters['stakingStakeTxRequest'] == null) { - throw new runtime.RequiredError('stakingStakeTxRequest', 'Required parameter "stakingStakeTxRequest" was null or undefined when calling stakeToStakingContract().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/staking/tx/stake`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StakingStakeTxRequestToJSON)(requestParameters['stakingStakeTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingStakeTxResponseFromJSON)(jsonValue)); - } - /** - * Stake to staking contract - * Stake to staking contract - */ - async stakeToStakingContract(requestParameters, initOverrides) { - const response = await this.stakeToStakingContractRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Withdraw staked asset - * Withdraw staked asset - */ - async withdrawStakedAssetRaw(requestParameters, initOverrides) { - if (requestParameters['stakingWithdrawTxRequest'] == null) { - throw new runtime.RequiredError('stakingWithdrawTxRequest', 'Required parameter "stakingWithdrawTxRequest" was null or undefined when calling withdrawStakedAsset().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/staking/tx/withdraw`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.StakingWithdrawTxRequestToJSON)(requestParameters['stakingWithdrawTxRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingWithdrawTxResponseFromJSON)(jsonValue)); - } - /** - * Withdraw staked asset - * Withdraw staked asset - */ - async withdrawStakedAsset(requestParameters, initOverrides) { - const response = await this.withdrawStakedAssetRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.StakingApi = StakingApi; -//# sourceMappingURL=StakingApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/StakingApi.js.map b/dist/service/src/apis/StakingApi.js.map deleted file mode 100644 index a2d6bcb..0000000 --- a/dist/service/src/apis/StakingApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/StakingApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAYtC,2CAmByB;AAkHzB;;GAEG;AACH,MAAa,UAA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iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhMD,gCAgMC"} \ No newline at end of file diff --git a/dist/service/src/apis/SwapApi.d.ts b/dist/service/src/apis/SwapApi.d.ts deleted file mode 100644 index c276fdb..0000000 --- a/dist/service/src/apis/SwapApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { QuoteRequest, QuoteResponse } from '../models/index'; -export interface GetSwapQuoteRequest { - quoteRequest: QuoteRequest; -} -/** - * SwapApi - interface - * - * @export - * @interface SwapApiInterface - */ -export interface SwapApiInterface { - /** - * Get a quote for a swap - * @summary Get a quote for a swap - * @param {QuoteRequest} quoteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SwapApiInterface - */ - getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a quote for a swap - * Get a quote for a swap - */ - getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class SwapApi extends runtime.BaseAPI implements SwapApiInterface { - /** - * Get a quote for a swap - * Get a quote for a swap - */ - getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a quote for a swap - * Get a quote for a swap - */ - getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=SwapApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/SwapApi.d.ts.map b/dist/service/src/apis/SwapApi.d.ts.map deleted file mode 100644 index 65591c6..0000000 --- a/dist/service/src/apis/SwapApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/SwapApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,mBAAmB;IAChC,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;IAEjK;;;OAGG;IACH,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAE5I;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyBtK;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKjJ"} \ No newline at end of file diff --git a/dist/service/src/apis/SwapApi.js b/dist/service/src/apis/SwapApi.js deleted file mode 100644 index 59465bf..0000000 --- a/dist/service/src/apis/SwapApi.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwapApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class SwapApi extends runtime.BaseAPI { - /** - * Get a quote for a swap - * Get a quote for a swap - */ - async getSwapQuoteRaw(requestParameters, initOverrides) { - if (requestParameters['quoteRequest'] == null) { - throw new runtime.RequiredError('quoteRequest', 'Required parameter "quoteRequest" was null or undefined when calling getSwapQuote().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/v2/swap/quote`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.QuoteRequestToJSON)(requestParameters['quoteRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.QuoteResponseFromJSON)(jsonValue)); - } - /** - * Get a quote for a swap - * Get a quote for a swap - */ - async getSwapQuote(requestParameters, initOverrides) { - const response = await this.getSwapQuoteRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.SwapApi = SwapApi; -//# sourceMappingURL=SwapApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/SwapApi.js.map b/dist/service/src/apis/SwapApi.js.map deleted file mode 100644 index 29c8edc..0000000 --- a/dist/service/src/apis/SwapApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/SwapApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC;YAC5C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,cAAc,EACd,sFAAsF,CACzF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,0BAAkB,EAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;SAC9D,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,6BAAqB,EAAC,SAAS,CAAC,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxCD,0BAwCC"} \ No newline at end of file diff --git a/dist/service/src/apis/VaultsApi.d.ts b/dist/service/src/apis/VaultsApi.d.ts deleted file mode 100644 index c5164be..0000000 --- a/dist/service/src/apis/VaultsApi.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Vault, VaultEventsResponse, VaultsResponse } from '../models/index'; -export interface GetVaultByIdRequest { - id: number; -} -export interface GetVaultEventsByIdRequest { - id: number; - type?: GetVaultEventsByIdTypeEnum; -} -export interface GetVaultsByOwnerRequest { - owner?: string; -} -/** - * VaultsApi - interface - * - * @export - * @interface VaultsApiInterface - */ -export interface VaultsApiInterface { - /** - * - * @summary Get a vault by ID - * @param {number} id Vault ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * - * @summary Get vault events by ID - * @param {number} id Vault ID - * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * - * @summary Get vaults by owner query - * @param {string} [owner] Ethereum address of the owner - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class VaultsApi extends runtime.BaseAPI implements VaultsApiInterface { - /** - * Get a vault by ID - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get vault events by ID - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get vaults by owner query - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters?: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const GetVaultEventsByIdTypeEnum: { - readonly REPAY: "repay"; - readonly DEPOSIT: "deposit"; - readonly WITHDRAW: "withdraw"; - readonly MINT: "mint"; -}; -export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; -//# sourceMappingURL=VaultsApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/VaultsApi.d.ts.map b/dist/service/src/apis/VaultsApi.d.ts.map deleted file mode 100644 index 39e2a89..0000000 --- a/dist/service/src/apis/VaultsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultsApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/VaultsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,KAAK,EACL,mBAAmB,EACnB,cAAc,EACf,MAAM,iBAAiB,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line at end of file diff --git a/dist/service/src/apis/VaultsApi.js b/dist/service/src/apis/VaultsApi.js deleted file mode 100644 index 1fc5460..0000000 --- a/dist/service/src/apis/VaultsApi.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetVaultEventsByIdTypeEnum = exports.VaultsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class VaultsApi extends runtime.BaseAPI { - /** - * Get a vault by ID - */ - async getVaultByIdRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultById().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultFromJSON)(jsonValue)); - } - /** - * Get a vault by ID - */ - async getVaultById(requestParameters, initOverrides) { - const response = await this.getVaultByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get vault events by ID - */ - async getVaultEventsByIdRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultEventsById().'); - } - const queryParameters = {}; - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultEventsResponseFromJSON)(jsonValue)); - } - /** - * Get vault events by ID - */ - async getVaultEventsById(requestParameters, initOverrides) { - const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get vaults by owner query - */ - async getVaultsByOwnerRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['owner'] != null) { - queryParameters['owner'] = requestParameters['owner']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/v2/vaults`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultsResponseFromJSON)(jsonValue)); - } - /** - * Get vaults by owner query - */ - async getVaultsByOwner(requestParameters = {}, initOverrides) { - const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.VaultsApi = VaultsApi; -/** - * @export - */ -exports.GetVaultEventsByIdTypeEnum = { - REPAY: 'repay', - DEPOSIT: 'deposit', - WITHDRAW: 'withdraw', - MINT: 'mint' -}; -//# sourceMappingURL=VaultsApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/VaultsApi.js.map b/dist/service/src/apis/VaultsApi.js.map deleted file mode 100644 index a7a224c..0000000 --- a/dist/service/src/apis/VaultsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultsApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/VaultsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AAsEzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI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B,EAAC,SAAS,CAAC,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,oBAA6C,EAAE,EAAE,aAA0D;QAC9H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAClF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtGD,8BAsGC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/apis/WebsocketApi.d.ts b/dist/service/src/apis/WebsocketApi.d.ts deleted file mode 100644 index 4fd0ed9..0000000 --- a/dist/service/src/apis/WebsocketApi.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -/** - * WebsocketApi - interface - * - * @export - * @interface WebsocketApiInterface - */ -export interface WebsocketApiInterface { - /** - * Upgrade to websocket connection - * @summary Websocket Upgrade - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WebsocketApiInterface - */ - getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class WebsocketApi extends runtime.BaseAPI implements WebsocketApiInterface { - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=WebsocketApi.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/WebsocketApi.d.ts.map b/dist/service/src/apis/WebsocketApi.d.ts.map deleted file mode 100644 index 9f08092..0000000 --- a/dist/service/src/apis/WebsocketApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebsocketApi.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/WebsocketApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,6BAA6B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAE9H;;;OAGG;IACH,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAEzG;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,6BAA6B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAenI;;;OAGG;IACG,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9G"} \ No newline at end of file diff --git a/dist/service/src/apis/WebsocketApi.js b/dist/service/src/apis/WebsocketApi.js deleted file mode 100644 index a7ab338..0000000 --- a/dist/service/src/apis/WebsocketApi.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebsocketApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -/** - * - */ -class WebsocketApi extends runtime.BaseAPI { - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - async getUnfilledOrdersWebsocketRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/v2/ws`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - } - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - async getUnfilledOrdersWebsocket(initOverrides) { - await this.getUnfilledOrdersWebsocketRaw(initOverrides); - } -} -exports.WebsocketApi = WebsocketApi; -//# sourceMappingURL=WebsocketApi.js.map \ No newline at end of file diff --git a/dist/service/src/apis/WebsocketApi.js.map b/dist/service/src/apis/WebsocketApi.js.map deleted file mode 100644 index 8faa265..0000000 --- a/dist/service/src/apis/WebsocketApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebsocketApi.js","sourceRoot":"","sources":["../../../../src/service/src/apis/WebsocketApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AA0BtC;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CAAC,aAA0D;QAC1F,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA0D;QACvF,MAAM,IAAI,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;CAEJ;AA7BD,oCA6BC"} \ No newline at end of file diff --git a/dist/service/src/apis/index.d.ts b/dist/service/src/apis/index.d.ts deleted file mode 100644 index 807f210..0000000 --- a/dist/service/src/apis/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export * as AccountsApi from "./AccountsApi"; -export * as AddressesApi from "./AddressesApi"; -export * as BorrowsApi from "./BorrowsApi"; -export * as CollectorApi from "./CollectorApi"; -export * as DepositsApi from "./DepositsApi"; -export * as IlksApi from "./IlksApi"; -export * as LendingPoolApi from "./LendingPoolApi"; -export * as LogsApi from "./LogsApi"; -export * as OrdersApi from "./OrdersApi"; -export * as PermitApi from "./PermitApi"; -export * as PointsApi from "./PointsApi"; -export * as PricesApi from "./PricesApi"; -export * as StableCoinSystemApi from "./StableCoinSystemApi"; -export * as StakingApi from "./StakingApi"; -export * as SwapApi from "./SwapApi"; -export * as VaultsApi from "./VaultsApi"; -export * as WebsocketApi from "./WebsocketApi"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/service/src/apis/index.d.ts.map b/dist/service/src/apis/index.d.ts.map deleted file mode 100644 index e67de53..0000000 --- a/dist/service/src/apis/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/src/apis/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/apis/index.js b/dist/service/src/apis/index.js deleted file mode 100644 index 5f1dac4..0000000 --- a/dist/service/src/apis/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebsocketApi = exports.VaultsApi = exports.SwapApi = exports.StakingApi = exports.StableCoinSystemApi = exports.PricesApi = exports.PointsApi = exports.PermitApi = exports.OrdersApi = exports.LogsApi = exports.LendingPoolApi = exports.IlksApi = exports.DepositsApi = exports.CollectorApi = exports.BorrowsApi = exports.AddressesApi = exports.AccountsApi = void 0; -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -exports.AccountsApi = tslib_1.__importStar(require("./AccountsApi")); -exports.AddressesApi = tslib_1.__importStar(require("./AddressesApi")); -exports.BorrowsApi = tslib_1.__importStar(require("./BorrowsApi")); -exports.CollectorApi = tslib_1.__importStar(require("./CollectorApi")); -exports.DepositsApi = tslib_1.__importStar(require("./DepositsApi")); -exports.IlksApi = tslib_1.__importStar(require("./IlksApi")); -exports.LendingPoolApi = tslib_1.__importStar(require("./LendingPoolApi")); -exports.LogsApi = tslib_1.__importStar(require("./LogsApi")); -exports.OrdersApi = tslib_1.__importStar(require("./OrdersApi")); -exports.PermitApi = tslib_1.__importStar(require("./PermitApi")); -exports.PointsApi = tslib_1.__importStar(require("./PointsApi")); -exports.PricesApi = tslib_1.__importStar(require("./PricesApi")); -exports.StableCoinSystemApi = tslib_1.__importStar(require("./StableCoinSystemApi")); -exports.StakingApi = tslib_1.__importStar(require("./StakingApi")); -exports.SwapApi = tslib_1.__importStar(require("./SwapApi")); -exports.VaultsApi = tslib_1.__importStar(require("./VaultsApi")); -exports.WebsocketApi = tslib_1.__importStar(require("./WebsocketApi")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/service/src/apis/index.js.map b/dist/service/src/apis/index.js.map deleted file mode 100644 index 7513b20..0000000 --- a/dist/service/src/apis/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/src/apis/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,qEAA6C;AAC7C,uEAA+C;AAC/C,mEAA2C;AAC3C,uEAA+C;AAC/C,qEAA6C;AAC7C,6DAAqC;AACrC,2EAAmD;AACnD,6DAAqC;AACrC,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,qFAA6D;AAC7D,mEAA2C;AAC3C,6DAAqC;AACrC,iEAAyC;AACzC,uEAA+C"} \ No newline at end of file diff --git a/dist/service/src/index.d.ts b/dist/service/src/index.d.ts deleted file mode 100644 index eb67a70..0000000 --- a/dist/service/src/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/service/src/index.d.ts.map b/dist/service/src/index.d.ts.map deleted file mode 100644 index 2453072..0000000 --- a/dist/service/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/index.js b/dist/service/src/index.js deleted file mode 100644 index a8c073e..0000000 --- a/dist/service/src/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -tslib_1.__exportStar(require("./runtime"), exports); -tslib_1.__exportStar(require("./apis/index"), exports); -tslib_1.__exportStar(require("./models/index"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/service/src/index.js.map b/dist/service/src/index.js.map deleted file mode 100644 index 882aaee..0000000 --- a/dist/service/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/src/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,uDAA6B;AAC7B,yDAA+B"} \ No newline at end of file diff --git a/dist/service/src/models/Account.d.ts b/dist/service/src/models/Account.d.ts deleted file mode 100644 index bf1cf59..0000000 --- a/dist/service/src/models/Account.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { WalletBalance } from './WalletBalance'; -import type { AccountStakingSummary } from './AccountStakingSummary'; -import type { AccountLendingpoolSummary } from './AccountLendingpoolSummary'; -import type { AccountStablecoinSystemSummary } from './AccountStablecoinSystemSummary'; -/** - * - * @export - * @interface Account - */ -export interface Account { - /** - * The number of points the account has. - * @type {number} - * @memberof Account - */ - points: number; - /** - * Ethereum address of the account - * @type {string} - * @memberof Account - */ - address: string; - /** - * - * @type {WalletBalance} - * @memberof Account - */ - walletBalance: WalletBalance; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - netWorth: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - totalDebt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - totalDeposits: { - [key: string]: string | undefined; - }; - /** - * - * @type {AccountLendingpoolSummary} - * @memberof Account - */ - lendingpoolSummary: AccountLendingpoolSummary; - /** - * - * @type {AccountStablecoinSystemSummary} - * @memberof Account - */ - stabelcoinSystemSummary: AccountStablecoinSystemSummary; - /** - * - * @type {AccountStakingSummary} - * @memberof Account - */ - stakingSummary: AccountStakingSummary; -} -/** - * Check if a given object implements the Account interface. - */ -export declare function instanceOfAccount(value: object): value is Account; -export declare function AccountFromJSON(json: any): Account; -export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; -export declare function AccountToJSON(json: any): Account; -export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Account.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Account.d.ts.map b/dist/service/src/models/Account.d.ts.map deleted file mode 100644 index 8eac073..0000000 --- a/dist/service/src/models/Account.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Account.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,C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account.js deleted file mode 100644 index 204f3a6..0000000 --- a/dist/service/src/models/Account.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAccount = instanceOfAccount; -exports.AccountFromJSON = AccountFromJSON; -exports.AccountFromJSONTyped = AccountFromJSONTyped; -exports.AccountToJSON = AccountToJSON; -exports.AccountToJSONTyped = AccountToJSONTyped; -const WalletBalance_1 = require("./WalletBalance"); -const AccountStakingSummary_1 = require("./AccountStakingSummary"); -const AccountLendingpoolSummary_1 = require("./AccountLendingpoolSummary"); -const AccountStablecoinSystemSummary_1 = require("./AccountStablecoinSystemSummary"); -/** - * Check if a given object implements the Account interface. - */ -function instanceOfAccount(value) { - if (!('points' in value) || value['points'] === undefined) - return false; - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('walletBalance' in value) || value['walletBalance'] === undefined) - return false; - if (!('netWorth' in value) || value['netWorth'] === undefined) - return false; - if (!('totalDebt' in value) || value['totalDebt'] === undefined) - return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) - return false; - if (!('lendingpoolSummary' in value) || value['lendingpoolSummary'] === undefined) - return false; - if (!('stabelcoinSystemSummary' in value) || value['stabelcoinSystemSummary'] === undefined) - return false; - if (!('stakingSummary' in value) || value['stakingSummary'] === undefined) - return false; - return true; -} -function AccountFromJSON(json) { - return AccountFromJSONTyped(json, false); -} -function AccountFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'points': json['points'], - 'address': json['address'], - 'walletBalance': (0, WalletBalance_1.WalletBalanceFromJSON)(json['walletBalance']), - 'netWorth': json['netWorth'], - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'lendingpoolSummary': (0, AccountLendingpoolSummary_1.AccountLendingpoolSummaryFromJSON)(json['lendingpoolSummary']), - 'stabelcoinSystemSummary': (0, AccountStablecoinSystemSummary_1.AccountStablecoinSystemSummaryFromJSON)(json['stabelcoinSystemSummary']), - 'stakingSummary': (0, AccountStakingSummary_1.AccountStakingSummaryFromJSON)(json['stakingSummary']), - }; -} -function AccountToJSON(json) { - return AccountToJSONTyped(json, false); -} -function AccountToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'points': value['points'], - 'address': value['address'], - 'walletBalance': (0, WalletBalance_1.WalletBalanceToJSON)(value['walletBalance']), - 'netWorth': value['netWorth'], - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'lendingpoolSummary': (0, AccountLendingpoolSummary_1.AccountLendingpoolSummaryToJSON)(value['lendingpoolSummary']), - 'stabelcoinSystemSummary': (0, AccountStablecoinSystemSummary_1.AccountStablecoinSystemSummaryToJSON)(value['stabelcoinSystemSummary']), - 'stakingSummary': (0, AccountStakingSummary_1.AccountStakingSummaryToJSON)(value['stakingSummary']), - }; -} -//# sourceMappingURL=Account.js.map \ No newline at end of file diff --git a/dist/service/src/models/Account.js.map b/dist/service/src/models/Account.js.map deleted file mode 100644 index ac42c0b..0000000 --- a/dist/service/src/models/Account.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../src/service/src/models/Account.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiGH,8CAWC;AAED,0CAEC;AAED,oDAgBC;AAED,sCAEC;AAED,gDAiBC;AArJD,mDAKyB;AAEzB,mEAKiC;AAEjC,2EAKqC;AAErC,qFAK0C;AAgE1C;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAA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gBAAgB,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/AccountLendingpoolSummary.d.ts b/dist/service/src/models/AccountLendingpoolSummary.d.ts deleted file mode 100644 index a717879..0000000 --- a/dist/service/src/models/AccountLendingpoolSummary.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface AccountLendingpoolSummary - */ -export interface AccountLendingpoolSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalDebt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalDeposits: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalCollateral: { - [key: string]: string | undefined; - }; - /** - * Health factor in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - healthFactor: string; - /** - * Net annual percentage yield in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - netApy: string; - /** - * Total supply rate in lending pool for account - * @type {string} - * @memberof AccountLendingpoolSummary - */ - totalSupplyApy: string; - /** - * Total borrow rate in lending pool for account - * @type {string} - * @memberof AccountLendingpoolSummary - */ - totalBorrowApy: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - availableToBorrow: { - [key: string]: string | undefined; - }; - /** - * Borrow power used in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - borrowPowerUsed: string; - /** - * Current liquidation threshold in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - currentLiquidationThreshold: string; - /** - * Loan to value in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - loanToValue: string; -} -/** - * Check if a given object implements the AccountLendingpoolSummary interface. - */ -export declare function instanceOfAccountLendingpoolSummary(value: object): value is AccountLendingpoolSummary; -export declare function AccountLendingpoolSummaryFromJSON(json: any): AccountLendingpoolSummary; -export declare function AccountLendingpoolSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountLendingpoolSummary; -export declare function AccountLendingpoolSummaryToJSON(json: any): AccountLendingpoolSummary; -export declare function AccountLendingpoolSummaryToJSONTyped(value?: AccountLendingpoolSummary | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AccountLendingpoolSummary.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/AccountLendingpoolSummary.d.ts.map b/dist/service/src/models/AccountLendingpoolSummary.d.ts.map deleted file mode 100644 index a1ec052..0000000 --- a/dist/service/src/models/AccountLendingpoolSummary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountLendingpoolSummary.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/AccountLendingpoolSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAarG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAkBzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBxI"} \ No newline at end of file diff --git a/dist/service/src/models/AccountLendingpoolSummary.js b/dist/service/src/models/AccountLendingpoolSummary.js deleted file mode 100644 index 4850a23..0000000 --- a/dist/service/src/models/AccountLendingpoolSummary.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAccountLendingpoolSummary = instanceOfAccountLendingpoolSummary; -exports.AccountLendingpoolSummaryFromJSON = AccountLendingpoolSummaryFromJSON; -exports.AccountLendingpoolSummaryFromJSONTyped = AccountLendingpoolSummaryFromJSONTyped; -exports.AccountLendingpoolSummaryToJSON = AccountLendingpoolSummaryToJSON; -exports.AccountLendingpoolSummaryToJSONTyped = AccountLendingpoolSummaryToJSONTyped; -/** - * Check if a given object implements the AccountLendingpoolSummary interface. - */ -function instanceOfAccountLendingpoolSummary(value) { - if (!('totalDebt' in value) || value['totalDebt'] === undefined) - return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) - return false; - if (!('totalCollateral' in value) || value['totalCollateral'] === undefined) - return false; - if (!('healthFactor' in value) || value['healthFactor'] === undefined) - return false; - if (!('netApy' in value) || value['netApy'] === undefined) - return false; - if (!('totalSupplyApy' in value) || value['totalSupplyApy'] === undefined) - return false; - if (!('totalBorrowApy' in value) || value['totalBorrowApy'] === undefined) - return false; - if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) - return false; - if (!('borrowPowerUsed' in value) || value['borrowPowerUsed'] === undefined) - return false; - if (!('currentLiquidationThreshold' in value) || value['currentLiquidationThreshold'] === undefined) - return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) - return false; - return true; -} -function AccountLendingpoolSummaryFromJSON(json) { - return AccountLendingpoolSummaryFromJSONTyped(json, false); -} -function AccountLendingpoolSummaryFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'totalCollateral': json['totalCollateral'], - 'healthFactor': json['healthFactor'], - 'netApy': json['netApy'], - 'totalSupplyApy': json['totalSupplyApy'], - 'totalBorrowApy': json['totalBorrowApy'], - 'availableToBorrow': json['availableToBorrow'], - 'borrowPowerUsed': json['borrowPowerUsed'], - 'currentLiquidationThreshold': json['currentLiquidationThreshold'], - 'loanToValue': json['loanToValue'], - }; -} -function AccountLendingpoolSummaryToJSON(json) { - return AccountLendingpoolSummaryToJSONTyped(json, false); -} -function AccountLendingpoolSummaryToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'totalCollateral': value['totalCollateral'], - 'healthFactor': value['healthFactor'], - 'netApy': value['netApy'], - 'totalSupplyApy': value['totalSupplyApy'], - 'totalBorrowApy': value['totalBorrowApy'], - 'availableToBorrow': value['availableToBorrow'], - 'borrowPowerUsed': value['borrowPowerUsed'], - 'currentLiquidationThreshold': value['currentLiquidationThreshold'], - 'loanToValue': value['loanToValue'], - }; -} -//# sourceMappingURL=AccountLendingpoolSummary.js.map \ No newline at end of file diff --git a/dist/service/src/models/AccountLendingpoolSummary.js.map b/dist/service/src/models/AccountLendingpoolSummary.js.map deleted file mode 100644 index 4c5b1ec..0000000 --- a/dist/service/src/models/AccountLendingpoolSummary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountLendingpoolSummary.js","sourceRoot":"","sources":["../../../../src/service/src/models/AccountLendingpoolSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgFH,kFAaC;AAED,8EAEC;AAED,wFAkBC;AAED,0EAEC;AAED,oFAmBC;AAjED;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,IAAI,CAAC,CAAC,QAAQ,IA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,cAAc,CAAC;QACpC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC;QAC9C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,6BAA6B,EAAE,IAAI,CAAC,6BAA6B,CAAC;QAClE,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;KACrC,CAAC;AACN,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,KAAwC,EAAE,sBAA+B,KAAK;IAC/H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,6BAA6B,EAAE,KAAK,CAAC,6BAA6B,CAAC;QACnE,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/AccountStablecoinSystemSummary.d.ts b/dist/service/src/models/AccountStablecoinSystemSummary.d.ts deleted file mode 100644 index e985572..0000000 --- a/dist/service/src/models/AccountStablecoinSystemSummary.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface AccountStablecoinSystemSummary - */ -export interface AccountStablecoinSystemSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStablecoinSystemSummary - */ - totalDebt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStablecoinSystemSummary - */ - totalDeposits: { - [key: string]: string | undefined; - }; - /** - * Net annual percentage yield in stablecoin system - * @type {string} - * @memberof AccountStablecoinSystemSummary - */ - netApy: string; -} -/** - * Check if a given object implements the AccountStablecoinSystemSummary interface. - */ -export declare function instanceOfAccountStablecoinSystemSummary(value: object): value is AccountStablecoinSystemSummary; -export declare function AccountStablecoinSystemSummaryFromJSON(json: any): AccountStablecoinSystemSummary; -export declare function AccountStablecoinSystemSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStablecoinSystemSummary; -export declare function AccountStablecoinSystemSummaryToJSON(json: any): AccountStablecoinSystemSummary; -export declare function AccountStablecoinSystemSummaryToJSONTyped(value?: AccountStablecoinSystemSummary | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AccountStablecoinSystemSummary.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/AccountStablecoinSystemSummary.d.ts.map b/dist/service/src/models/AccountStablecoinSystemSummary.d.ts.map deleted file mode 100644 index cec48c7..0000000 --- a/dist/service/src/models/AccountStablecoinSystemSummary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountStablecoinSystemSummary.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/AccountStablecoinSystemSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAK/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAUnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlJ"} \ No newline at end of file diff --git a/dist/service/src/models/AccountStablecoinSystemSummary.js b/dist/service/src/models/AccountStablecoinSystemSummary.js deleted file mode 100644 index 72ec4cd..0000000 --- a/dist/service/src/models/AccountStablecoinSystemSummary.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAccountStablecoinSystemSummary = instanceOfAccountStablecoinSystemSummary; -exports.AccountStablecoinSystemSummaryFromJSON = AccountStablecoinSystemSummaryFromJSON; -exports.AccountStablecoinSystemSummaryFromJSONTyped = AccountStablecoinSystemSummaryFromJSONTyped; -exports.AccountStablecoinSystemSummaryToJSON = AccountStablecoinSystemSummaryToJSON; -exports.AccountStablecoinSystemSummaryToJSONTyped = AccountStablecoinSystemSummaryToJSONTyped; -/** - * Check if a given object implements the AccountStablecoinSystemSummary interface. - */ -function instanceOfAccountStablecoinSystemSummary(value) { - if (!('totalDebt' in value) || value['totalDebt'] === undefined) - return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) - return false; - if (!('netApy' in value) || value['netApy'] === undefined) - return false; - return true; -} -function AccountStablecoinSystemSummaryFromJSON(json) { - return AccountStablecoinSystemSummaryFromJSONTyped(json, false); -} -function AccountStablecoinSystemSummaryFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'netApy': json['netApy'], - }; -} -function AccountStablecoinSystemSummaryToJSON(json) { - return AccountStablecoinSystemSummaryToJSONTyped(json, false); -} -function AccountStablecoinSystemSummaryToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'netApy': value['netApy'], - }; -} -//# sourceMappingURL=AccountStablecoinSystemSummary.js.map \ No newline at end of file diff --git a/dist/service/src/models/AccountStablecoinSystemSummary.js.map b/dist/service/src/models/AccountStablecoinSystemSummary.js.map deleted file mode 100644 index 6050b98..0000000 --- a/dist/service/src/models/AccountStablecoinSystemSummary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountStablecoinSystemSummary.js","sourceRoot":"","sources":["../../../../src/service/src/models/AccountStablecoinSystemSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,4FAKC;AAED,wFAEC;AAED,kGAUC;AAED,oFAEC;AAED,8FAWC;AAzCD;;GAEG;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src/models/AccountStakingSummary.d.ts b/dist/service/src/models/AccountStakingSummary.d.ts deleted file mode 100644 index d297949..0000000 --- a/dist/service/src/models/AccountStakingSummary.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface AccountStakingSummary - */ -export interface AccountStakingSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStakingSummary - */ - totalStake: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStakingSummary - */ - unclaimedReward: { - [key: string]: string | undefined; - }; - /** - * Net annual percentage yield in staking contract - * @type {string} - * @memberof AccountStakingSummary - */ - netApy: string; -} -/** - * Check if a given object implements the AccountStakingSummary interface. - */ -export declare function instanceOfAccountStakingSummary(value: object): value is AccountStakingSummary; -export declare function AccountStakingSummaryFromJSON(json: any): AccountStakingSummary; -export declare function AccountStakingSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStakingSummary; -export declare function AccountStakingSummaryToJSON(json: any): AccountStakingSummary; -export declare function AccountStakingSummaryToJSONTyped(value?: AccountStakingSummary | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AccountStakingSummary.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/AccountStakingSummary.d.ts.map b/dist/service/src/models/AccountStakingSummary.d.ts.map deleted file mode 100644 index 788fa80..0000000 --- a/dist/service/src/models/AccountStakingSummary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountStakingSummary.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/AccountStakingSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAK7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"} \ No newline at end of file diff --git a/dist/service/src/models/AccountStakingSummary.js b/dist/service/src/models/AccountStakingSummary.js deleted file mode 100644 index 26fd4b1..0000000 --- a/dist/service/src/models/AccountStakingSummary.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAccountStakingSummary = instanceOfAccountStakingSummary; -exports.AccountStakingSummaryFromJSON = AccountStakingSummaryFromJSON; -exports.AccountStakingSummaryFromJSONTyped = AccountStakingSummaryFromJSONTyped; -exports.AccountStakingSummaryToJSON = AccountStakingSummaryToJSON; -exports.AccountStakingSummaryToJSONTyped = AccountStakingSummaryToJSONTyped; -/** - * Check if a given object implements the AccountStakingSummary interface. - */ -function instanceOfAccountStakingSummary(value) { - if (!('totalStake' in value) || value['totalStake'] === undefined) - return false; - if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) - return false; - if (!('netApy' in value) || value['netApy'] === undefined) - return false; - return true; -} -function AccountStakingSummaryFromJSON(json) { - return AccountStakingSummaryFromJSONTyped(json, false); -} -function AccountStakingSummaryFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'totalStake': json['totalStake'], - 'unclaimedReward': json['unclaimedReward'], - 'netApy': json['netApy'], - }; -} -function AccountStakingSummaryToJSON(json) { - return AccountStakingSummaryToJSONTyped(json, false); -} -function AccountStakingSummaryToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'totalStake': value['totalStake'], - 'unclaimedReward': value['unclaimedReward'], - 'netApy': value['netApy'], - }; -} -//# sourceMappingURL=AccountStakingSummary.js.map \ No newline at end of file diff --git a/dist/service/src/models/AccountStakingSummary.js.map b/dist/service/src/models/AccountStakingSummary.js.map deleted file mode 100644 index 186e3a6..0000000 --- a/dist/service/src/models/AccountStakingSummary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AccountStakingSummary.js","sourceRoot":"","sources":["../../../../src/service/src/models/AccountStakingSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0EAKC;AAED,sEAEC;AAED,gFAUC;AAED,kEAEC;AAED,4EAWC;AAzCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Address.d.ts b/dist/service/src/models/Address.d.ts deleted file mode 100644 index bfe348d..0000000 --- a/dist/service/src/models/Address.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Address - */ -export interface Address { - /** - * The label of the address. - * @type {string} - * @memberof Address - */ - label: string; - /** - * The Ethereum address. - * @type {string} - * @memberof Address - */ - address: string; -} -/** - * Check if a given object implements the Address interface. - */ -export declare function instanceOfAddress(value: object): value is Address; -export declare function AddressFromJSON(json: any): Address; -export declare function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address; -export declare function AddressToJSON(json: any): Address; -export declare function AddressToJSONTyped(value?: Address | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Address.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Address.d.ts.map b/dist/service/src/models/Address.d.ts.map deleted file mode 100644 index 988fb51..0000000 --- a/dist/service/src/models/Address.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Address.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/service/src/models/Address.js b/dist/service/src/models/Address.js deleted file mode 100644 index 56510ff..0000000 --- a/dist/service/src/models/Address.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAddress = instanceOfAddress; -exports.AddressFromJSON = AddressFromJSON; -exports.AddressFromJSONTyped = AddressFromJSONTyped; -exports.AddressToJSON = AddressToJSON; -exports.AddressToJSONTyped = AddressToJSONTyped; -/** - * Check if a given object implements the Address interface. - */ -function instanceOfAddress(value) { - if (!('label' in value) || value['label'] === undefined) - return false; - if (!('address' in value) || value['address'] === undefined) - return false; - return true; -} -function AddressFromJSON(json) { - return AddressFromJSONTyped(json, false); -} -function AddressFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'label': json['label'], - 'address': json['address'], - }; -} -function AddressToJSON(json) { - return AddressToJSONTyped(json, false); -} -function AddressToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'label': value['label'], - 'address': value['address'], - }; -} -//# sourceMappingURL=Address.js.map \ No newline at end of file diff --git a/dist/service/src/models/Address.js.map b/dist/service/src/models/Address.js.map deleted file mode 100644 index 5315dd9..0000000 --- a/dist/service/src/models/Address.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../../src/service/src/models/Address.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,8CAIC;AAED,0CAEC;AAED,oDASC;AAED,sCAEC;AAED,gDAUC;AAtCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/AddressResponse.d.ts b/dist/service/src/models/AddressResponse.d.ts deleted file mode 100644 index 624331e..0000000 --- a/dist/service/src/models/AddressResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Address } from './Address'; -/** - * - * @export - * @interface AddressResponse - */ -export interface AddressResponse { - /** - * - * @type {Array
} - * @memberof AddressResponse - */ - data: Array
; -} -/** - * Check if a given object implements the AddressResponse interface. - */ -export declare function instanceOfAddressResponse(value: object): value is AddressResponse; -export declare function AddressResponseFromJSON(json: any): AddressResponse; -export declare function AddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResponse; -export declare function AddressResponseToJSON(json: any): AddressResponse; -export declare function AddressResponseToJSONTyped(value?: AddressResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AddressResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/AddressResponse.d.ts.map b/dist/service/src/models/AddressResponse.d.ts.map deleted file mode 100644 index de6726f..0000000 --- a/dist/service/src/models/AddressResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/AddressResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAQrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpH"} \ No newline at end of file diff --git a/dist/service/src/models/AddressResponse.js b/dist/service/src/models/AddressResponse.js deleted file mode 100644 index 43060f3..0000000 --- a/dist/service/src/models/AddressResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAddressResponse = instanceOfAddressResponse; -exports.AddressResponseFromJSON = AddressResponseFromJSON; -exports.AddressResponseFromJSONTyped = AddressResponseFromJSONTyped; -exports.AddressResponseToJSON = AddressResponseToJSON; -exports.AddressResponseToJSONTyped = AddressResponseToJSONTyped; -const Address_1 = require("./Address"); -/** - * Check if a given object implements the AddressResponse interface. - */ -function instanceOfAddressResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function AddressResponseFromJSON(json) { - return AddressResponseFromJSONTyped(json, false); -} -function AddressResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Address_1.AddressFromJSON)), - }; -} -function AddressResponseToJSON(json) { - return AddressResponseToJSONTyped(json, false); -} -function AddressResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Address_1.AddressToJSON)), - }; -} -//# sourceMappingURL=AddressResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/AddressResponse.js.map b/dist/service/src/models/AddressResponse.js.map deleted file mode 100644 index 7395a42..0000000 --- a/dist/service/src/models/AddressResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/AddressResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,8DAGC;AAED,0DAEC;AAED,oEAQC;AAED,sDAEC;AAED,gEASC;AAxDD,uCAKmB;AAgBnB;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Balance.d.ts b/dist/service/src/models/Balance.d.ts deleted file mode 100644 index 5994b6a..0000000 --- a/dist/service/src/models/Balance.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface Balance - */ -export interface Balance { - /** - * - * @type {Token} - * @memberof Balance - */ - token: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Balance - */ - balance: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the Balance interface. - */ -export declare function instanceOfBalance(value: object): value is Balance; -export declare function BalanceFromJSON(json: any): Balance; -export declare function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance; -export declare function BalanceToJSON(json: any): Balance; -export declare function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Balance.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Balance.d.ts.map b/dist/service/src/models/Balance.d.ts.map deleted file mode 100644 index 60d00b7..0000000 --- a/dist/service/src/models/Balance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Balance.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/service/src/models/Balance.js b/dist/service/src/models/Balance.js deleted file mode 100644 index 832c10d..0000000 --- a/dist/service/src/models/Balance.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfBalance = instanceOfBalance; -exports.BalanceFromJSON = BalanceFromJSON; -exports.BalanceFromJSONTyped = BalanceFromJSONTyped; -exports.BalanceToJSON = BalanceToJSON; -exports.BalanceToJSONTyped = BalanceToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the Balance interface. - */ -function instanceOfBalance(value) { - if (!('token' in value) || value['token'] === undefined) - return false; - if (!('balance' in value) || value['balance'] === undefined) - return false; - return true; -} -function BalanceFromJSON(json) { - return BalanceFromJSONTyped(json, false); -} -function BalanceFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'token': (0, Token_1.TokenFromJSON)(json['token']), - 'balance': json['balance'], - }; -} -function BalanceToJSON(json) { - return BalanceToJSONTyped(json, false); -} -function BalanceToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'token': (0, Token_1.TokenToJSON)(value['token']), - 'balance': value['balance'], - }; -} -//# sourceMappingURL=Balance.js.map \ No newline at end of file diff --git a/dist/service/src/models/Balance.js.map b/dist/service/src/models/Balance.js.map deleted file mode 100644 index 2314d08..0000000 --- a/dist/service/src/models/Balance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Balance.js","sourceRoot":"","sources":["../../../../src/service/src/models/Balance.ts"],"names":[],"mappings":";AAA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dist/service/src/models/BasicEvent.d.ts deleted file mode 100644 index 7e7e216..0000000 --- a/dist/service/src/models/BasicEvent.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { EventDomain } from './EventDomain'; -import type { EventType } from './EventType'; -import type { Log } from './Log'; -import type { EventName } from './EventName'; -/** - * - * @export - * @interface BasicEvent - */ -export interface BasicEvent { - /** - * Identifier for the event. - * @type {number} - * @memberof BasicEvent - */ - id: number; - /** - * - * @type {EventName} - * @memberof BasicEvent - */ - name: EventName; - /** - * - * @type {EventType} - * @memberof BasicEvent - */ - type: EventType; - /** - * - * @type {EventDomain} - * @memberof BasicEvent - */ - domain: EventDomain; - /** - * - * @type {Log} - * @memberof BasicEvent - */ - raw: Log; -} -/** - * Check if a given object implements the BasicEvent interface. - */ -export declare function instanceOfBasicEvent(value: object): value is BasicEvent; -export declare function BasicEventFromJSON(json: any): BasicEvent; -export declare function BasicEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): BasicEvent; -export declare function BasicEventToJSON(json: any): BasicEvent; -export declare function BasicEventToJSONTyped(value?: BasicEvent | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=BasicEvent.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/BasicEvent.d.ts.map b/dist/service/src/models/BasicEvent.d.ts.map deleted file mode 100644 index e5803ef..0000000 --- a/dist/service/src/models/BasicEvent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BasicEvent.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/BasicEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;CACZ;AAID;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAY3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1G"} \ No newline at end of file diff --git a/dist/service/src/models/BasicEvent.js b/dist/service/src/models/BasicEvent.js deleted file mode 100644 index ad41cac..0000000 --- a/dist/service/src/models/BasicEvent.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfBasicEvent = instanceOfBasicEvent; -exports.BasicEventFromJSON = BasicEventFromJSON; -exports.BasicEventFromJSONTyped = BasicEventFromJSONTyped; -exports.BasicEventToJSON = BasicEventToJSON; -exports.BasicEventToJSONTyped = BasicEventToJSONTyped; -const EventDomain_1 = require("./EventDomain"); -const EventType_1 = require("./EventType"); -const Log_1 = require("./Log"); -const EventName_1 = require("./EventName"); -/** - * Check if a given object implements the BasicEvent interface. - */ -function instanceOfBasicEvent(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('domain' in value) || value['domain'] === undefined) - return false; - if (!('raw' in value) || value['raw'] === undefined) - return false; - return true; -} -function BasicEventFromJSON(json) { - return BasicEventFromJSONTyped(json, false); -} -function BasicEventFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'name': (0, EventName_1.EventNameFromJSON)(json['name']), - 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), - 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), - 'raw': (0, Log_1.LogFromJSON)(json['raw']), - }; -} -function BasicEventToJSON(json) { - return BasicEventToJSONTyped(json, false); -} -function BasicEventToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'name': (0, EventName_1.EventNameToJSON)(value['name']), - 'type': (0, EventType_1.EventTypeToJSON)(value['type']), - 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), - 'raw': (0, Log_1.LogToJSON)(value['raw']), - }; -} -//# sourceMappingURL=BasicEvent.js.map \ No newline at end of file diff --git a/dist/service/src/models/BasicEvent.js.map b/dist/service/src/models/BasicEvent.js.map deleted file mode 100644 index c6b33b3..0000000 --- a/dist/service/src/models/BasicEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BasicEvent.js","sourceRoot":"","sources":["../../../../src/service/src/models/BasicEvent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;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A,iCAAmB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,KAAK,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAClC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,QAAQ,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivity.d.ts b/dist/service/src/models/ChainActivity.d.ts deleted file mode 100644 index d04b4f8..0000000 --- a/dist/service/src/models/ChainActivity.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ChainActivityStep } from './ChainActivityStep'; -/** - * - * @export - * @interface ChainActivity - */ -export interface ChainActivity { - /** - * - * @type {number} - * @memberof ChainActivity - */ - stepNumber: number; - /** - * - * @type {number} - * @memberof ChainActivity - */ - numberOfSteps: number; - /** - * - * @type {Array} - * @memberof ChainActivity - */ - steps: Array; -} -/** - * Check if a given object implements the ChainActivity interface. - */ -export declare function instanceOfChainActivity(value: object): value is ChainActivity; -export declare function ChainActivityFromJSON(json: any): ChainActivity; -export declare function ChainActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivity; -export declare function ChainActivityToJSON(json: any): ChainActivity; -export declare function ChainActivityToJSONTyped(value?: ChainActivity | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ChainActivity.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivity.d.ts.map b/dist/service/src/models/ChainActivity.d.ts.map deleted file mode 100644 index c49528d..0000000 --- a/dist/service/src/models/ChainActivity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivity.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAK7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivity.js b/dist/service/src/models/ChainActivity.js deleted file mode 100644 index a86100a..0000000 --- a/dist/service/src/models/ChainActivity.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfChainActivity = instanceOfChainActivity; -exports.ChainActivityFromJSON = ChainActivityFromJSON; -exports.ChainActivityFromJSONTyped = ChainActivityFromJSONTyped; -exports.ChainActivityToJSON = ChainActivityToJSON; -exports.ChainActivityToJSONTyped = ChainActivityToJSONTyped; -const ChainActivityStep_1 = require("./ChainActivityStep"); -/** - * Check if a given object implements the ChainActivity interface. - */ -function instanceOfChainActivity(value) { - if (!('stepNumber' in value) || value['stepNumber'] === undefined) - return false; - if (!('numberOfSteps' in value) || value['numberOfSteps'] === undefined) - return false; - if (!('steps' in value) || value['steps'] === undefined) - return false; - return true; -} -function ChainActivityFromJSON(json) { - return ChainActivityFromJSONTyped(json, false); -} -function ChainActivityFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'stepNumber': json['stepNumber'], - 'numberOfSteps': json['numberOfSteps'], - 'steps': (json['steps'].map(ChainActivityStep_1.ChainActivityStepFromJSON)), - }; -} -function ChainActivityToJSON(json) { - return ChainActivityToJSONTyped(json, false); -} -function ChainActivityToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'stepNumber': value['stepNumber'], - 'numberOfSteps': value['numberOfSteps'], - 'steps': (value['steps'].map(ChainActivityStep_1.ChainActivityStepToJSON)), - }; -} -//# sourceMappingURL=ChainActivity.js.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivity.js.map b/dist/service/src/models/ChainActivity.js.map deleted file mode 100644 index 8666d12..0000000 --- a/dist/service/src/models/ChainActivity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivity.js","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivity.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,0DAKC;AAED,sDAEC;AAED,gEAUC;AAED,kDAEC;AAED,4DAWC;AA1ED,2DAK6B;AA4B7B;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;QACtC,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;KAC1E,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,OAAO,EAAE,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStep.d.ts b/dist/service/src/models/ChainActivityStep.d.ts deleted file mode 100644 index 39b9a2b..0000000 --- a/dist/service/src/models/ChainActivityStep.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ChainActivityStepData } from './ChainActivityStepData'; -/** - * - * @export - * @interface ChainActivityStep - */ -export interface ChainActivityStep { - /** - * - * @type {string} - * @memberof ChainActivityStep - */ - type: ChainActivityStepTypeEnum; - /** - * - * @type {ChainActivityStepData} - * @memberof ChainActivityStep - */ - data: ChainActivityStepData; -} -/** - * @export - */ -export declare const ChainActivityStepTypeEnum: { - readonly PREPARED_TX: "PreparedTx"; - readonly EIP712_SIGN_REQUEST: "EIP712SignRequest"; - readonly PERSONAL_SIGN_REQUEST: "PersonalSignRequest"; -}; -export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; -/** - * Check if a given object implements the ChainActivityStep interface. - */ -export declare function instanceOfChainActivityStep(value: object): value is ChainActivityStep; -export declare function ChainActivityStepFromJSON(json: any): ChainActivityStep; -export declare function ChainActivityStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStep; -export declare function ChainActivityStepToJSON(json: any): ChainActivityStep; -export declare function ChainActivityStepToJSONTyped(value?: ChainActivityStep | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ChainActivityStep.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStep.d.ts.map b/dist/service/src/models/ChainActivityStep.d.ts.map deleted file mode 100644 index f613186..0000000 --- a/dist/service/src/models/ChainActivityStep.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivityStep.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivityStep.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,yBAAyB,CAAC;IAChC;;;;OAIG;IACH,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStep.js b/dist/service/src/models/ChainActivityStep.js deleted file mode 100644 index bac6efd..0000000 --- a/dist/service/src/models/ChainActivityStep.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChainActivityStepTypeEnum = void 0; -exports.instanceOfChainActivityStep = instanceOfChainActivityStep; -exports.ChainActivityStepFromJSON = ChainActivityStepFromJSON; -exports.ChainActivityStepFromJSONTyped = ChainActivityStepFromJSONTyped; -exports.ChainActivityStepToJSON = ChainActivityStepToJSON; -exports.ChainActivityStepToJSONTyped = ChainActivityStepToJSONTyped; -const ChainActivityStepData_1 = require("./ChainActivityStepData"); -/** - * @export - */ -exports.ChainActivityStepTypeEnum = { - PREPARED_TX: 'PreparedTx', - EIP712_SIGN_REQUEST: 'EIP712SignRequest', - PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' -}; -/** - * Check if a given object implements the ChainActivityStep interface. - */ -function instanceOfChainActivityStep(value) { - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function ChainActivityStepFromJSON(json) { - return ChainActivityStepFromJSONTyped(json, false); -} -function ChainActivityStepFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'type': json['type'], - 'data': (0, ChainActivityStepData_1.ChainActivityStepDataFromJSON)(json['data']), - }; -} -function ChainActivityStepToJSON(json) { - return ChainActivityStepToJSONTyped(json, false); -} -function ChainActivityStepToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'type': value['type'], - 'data': (0, ChainActivityStepData_1.ChainActivityStepDataToJSON)(value['data']), - }; -} -//# sourceMappingURL=ChainActivityStep.js.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStep.js.map b/dist/service/src/models/ChainActivityStep.js.map deleted file mode 100644 index 7d0079d..0000000 --- a/dist/service/src/models/ChainActivityStep.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivityStep.js","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivityStep.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA8CH,kEAIC;AAED,8DAEC;AAED,wEASC;AAED,0DAEC;AAED,oEAUC;AA7ED,mEAKiC;AAuBjC;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,mBAAmB,EAAE,mBAAmB;IACxC,qBAAqB,EAAE,qBAAqB;CACtC,CAAC;AAIX;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,IAAA,qDAA6B,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACtD,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStepData.d.ts b/dist/service/src/models/ChainActivityStepData.d.ts deleted file mode 100644 index ebc7b6d..0000000 --- a/dist/service/src/models/ChainActivityStepData.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { EIP712SignRequest } from './EIP712SignRequest'; -import type { PersonalSignRequest } from './PersonalSignRequest'; -import type { PreparedTx } from './PreparedTx'; -/** - * @type ChainActivityStepData - * - * @export - */ -export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; -export declare function ChainActivityStepDataFromJSON(json: any): ChainActivityStepData; -export declare function ChainActivityStepDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStepData; -export declare function ChainActivityStepDataToJSON(json: any): any; -export declare function ChainActivityStepDataToJSONTyped(value?: ChainActivityStepData | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ChainActivityStepData.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStepData.d.ts.map b/dist/service/src/models/ChainActivityStepData.d.ts.map deleted file mode 100644 index d603091..0000000 --- a/dist/service/src/models/ChainActivityStepData.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivityStepData.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivityStepData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,UAAU,CAAC;AAEzF,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAejH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1D;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBhI"} \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStepData.js b/dist/service/src/models/ChainActivityStepData.js deleted file mode 100644 index 815dfa7..0000000 --- a/dist/service/src/models/ChainActivityStepData.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChainActivityStepDataFromJSON = ChainActivityStepDataFromJSON; -exports.ChainActivityStepDataFromJSONTyped = ChainActivityStepDataFromJSONTyped; -exports.ChainActivityStepDataToJSON = ChainActivityStepDataToJSON; -exports.ChainActivityStepDataToJSONTyped = ChainActivityStepDataToJSONTyped; -const EIP712SignRequest_1 = require("./EIP712SignRequest"); -const PersonalSignRequest_1 = require("./PersonalSignRequest"); -const PreparedTx_1 = require("./PreparedTx"); -function ChainActivityStepDataFromJSON(json) { - return ChainActivityStepDataFromJSONTyped(json, false); -} -function ChainActivityStepDataFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - if ((0, EIP712SignRequest_1.instanceOfEIP712SignRequest)(json)) { - return (0, EIP712SignRequest_1.EIP712SignRequestFromJSONTyped)(json, true); - } - if ((0, PersonalSignRequest_1.instanceOfPersonalSignRequest)(json)) { - return (0, PersonalSignRequest_1.PersonalSignRequestFromJSONTyped)(json, true); - } - if ((0, PreparedTx_1.instanceOfPreparedTx)(json)) { - return (0, PreparedTx_1.PreparedTxFromJSONTyped)(json, true); - } - return {}; -} -function ChainActivityStepDataToJSON(json) { - return ChainActivityStepDataToJSONTyped(json, false); -} -function ChainActivityStepDataToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - if ((0, EIP712SignRequest_1.instanceOfEIP712SignRequest)(value)) { - return (0, EIP712SignRequest_1.EIP712SignRequestToJSON)(value); - } - if ((0, PersonalSignRequest_1.instanceOfPersonalSignRequest)(value)) { - return (0, PersonalSignRequest_1.PersonalSignRequestToJSON)(value); - } - if ((0, PreparedTx_1.instanceOfPreparedTx)(value)) { - return (0, PreparedTx_1.PreparedTxToJSON)(value); - } - return {}; -} -//# sourceMappingURL=ChainActivityStepData.js.map \ No newline at end of file diff --git a/dist/service/src/models/ChainActivityStepData.js.map b/dist/service/src/models/ChainActivityStepData.js.map deleted file mode 100644 index c4f11b3..0000000 --- a/dist/service/src/models/ChainActivityStepData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChainActivityStepData.js","sourceRoot":"","sources":["../../../../src/service/src/models/ChainActivityStepData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;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IACD,IAAI,IAAA,iCAAoB,EAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,IAAA,6BAAgB,EAAC,KAAmB,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/DutchAmount.d.ts b/dist/service/src/models/DutchAmount.d.ts deleted file mode 100644 index d10cbf3..0000000 --- a/dist/service/src/models/DutchAmount.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface DutchAmount - */ -export interface DutchAmount { - /** - * - * @type {Token} - * @memberof DutchAmount - */ - token: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DutchAmount - */ - startAmount: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DutchAmount - */ - endAmount: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof DutchAmount - */ - recipient?: string; -} -/** - * Check if a given object implements the DutchAmount interface. - */ -export declare function instanceOfDutchAmount(value: object): value is DutchAmount; -export declare function DutchAmountFromJSON(json: any): DutchAmount; -export declare function DutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): DutchAmount; -export declare function DutchAmountToJSON(json: any): DutchAmount; -export declare function DutchAmountToJSONTyped(value?: DutchAmount | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=DutchAmount.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/DutchAmount.d.ts.map b/dist/service/src/models/DutchAmount.d.ts.map deleted file mode 100644 index 9d9391c..0000000 --- a/dist/service/src/models/DutchAmount.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DutchAmount.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/DutchAmount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAW7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5G"} \ No newline at end of file diff --git a/dist/service/src/models/DutchAmount.js b/dist/service/src/models/DutchAmount.js deleted file mode 100644 index 2a851db..0000000 --- a/dist/service/src/models/DutchAmount.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfDutchAmount = instanceOfDutchAmount; -exports.DutchAmountFromJSON = DutchAmountFromJSON; -exports.DutchAmountFromJSONTyped = DutchAmountFromJSONTyped; -exports.DutchAmountToJSON = DutchAmountToJSON; -exports.DutchAmountToJSONTyped = DutchAmountToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the DutchAmount interface. - */ -function instanceOfDutchAmount(value) { - if (!('token' in value) || value['token'] === undefined) - return false; - if (!('startAmount' in value) || value['startAmount'] === undefined) - return false; - if (!('endAmount' in value) || value['endAmount'] === undefined) - return false; - return true; -} -function DutchAmountFromJSON(json) { - return DutchAmountFromJSONTyped(json, false); -} -function DutchAmountFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'token': (0, Token_1.TokenFromJSON)(json['token']), - 'startAmount': json['startAmount'], - 'endAmount': json['endAmount'], - 'recipient': json['recipient'] == null ? undefined : json['recipient'], - }; -} -function DutchAmountToJSON(json) { - return DutchAmountToJSONTyped(json, false); -} -function DutchAmountToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'token': (0, Token_1.TokenToJSON)(value['token']), - 'startAmount': value['startAmount'], - 'endAmount': value['endAmount'], - 'recipient': value['recipient'], - }; -} -//# sourceMappingURL=DutchAmount.js.map \ No newline at end of file diff --git a/dist/service/src/models/DutchAmount.js.map b/dist/service/src/models/DutchAmount.js.map deleted file mode 100644 index a3e82a9..0000000 --- a/dist/service/src/models/DutchAmount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DutchAmount.js","sourceRoot":"","sources":["../../../../src/service/src/models/DutchAmount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,sDAKC;AAED,kDAEC;AAED,4DAWC;AAED,8CAEC;AAED,wDAYC;AAlFD,mCAKiB;AAkCjB;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,C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AAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/EIP712SignRequest.d.ts b/dist/service/src/models/EIP712SignRequest.d.ts deleted file mode 100644 index aa7fbf9..0000000 --- a/dist/service/src/models/EIP712SignRequest.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { TypedData } from './TypedData'; -/** - * - * @export - * @interface EIP712SignRequest - */ -export interface EIP712SignRequest { - /** - * The name of the EIP712 signature - * @type {string} - * @memberof EIP712SignRequest - */ - name: string; - /** - * - * @type {TypedData} - * @memberof EIP712SignRequest - */ - typedData: TypedData; - /** - * The hash of the EIP712 signature that needs to be signed - * @type {string} - * @memberof EIP712SignRequest - */ - hash: string; -} -/** - * Check if a given object implements the EIP712SignRequest interface. - */ -export declare function instanceOfEIP712SignRequest(value: object): value is EIP712SignRequest; -export declare function EIP712SignRequestFromJSON(json: any): EIP712SignRequest; -export declare function EIP712SignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EIP712SignRequest; -export declare function EIP712SignRequestToJSON(json: any): EIP712SignRequest; -export declare function EIP712SignRequestToJSONTyped(value?: EIP712SignRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=EIP712SignRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/EIP712SignRequest.d.ts.map b/dist/service/src/models/EIP712SignRequest.d.ts.map deleted file mode 100644 index e352db3..0000000 --- a/dist/service/src/models/EIP712SignRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EIP712SignRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/EIP712SignRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"} \ No newline at end of file diff --git a/dist/service/src/models/EIP712SignRequest.js b/dist/service/src/models/EIP712SignRequest.js deleted file mode 100644 index 017829a..0000000 --- a/dist/service/src/models/EIP712SignRequest.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfEIP712SignRequest = instanceOfEIP712SignRequest; -exports.EIP712SignRequestFromJSON = EIP712SignRequestFromJSON; -exports.EIP712SignRequestFromJSONTyped = EIP712SignRequestFromJSONTyped; -exports.EIP712SignRequestToJSON = EIP712SignRequestToJSON; -exports.EIP712SignRequestToJSONTyped = EIP712SignRequestToJSONTyped; -const TypedData_1 = require("./TypedData"); -/** - * Check if a given object implements the EIP712SignRequest interface. - */ -function instanceOfEIP712SignRequest(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('typedData' in value) || value['typedData'] === undefined) - return false; - if (!('hash' in value) || value['hash'] === undefined) - return false; - return true; -} -function EIP712SignRequestFromJSON(json) { - return EIP712SignRequestFromJSONTyped(json, false); -} -function EIP712SignRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'typedData': (0, TypedData_1.TypedDataFromJSON)(json['typedData']), - 'hash': json['hash'], - }; -} -function EIP712SignRequestToJSON(json) { - return EIP712SignRequestToJSONTyped(json, false); -} -function EIP712SignRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'typedData': (0, TypedData_1.TypedDataToJSON)(value['typedData']), - 'hash': value['hash'], - }; -} -//# sourceMappingURL=EIP712SignRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/EIP712SignRequest.js.map b/dist/service/src/models/EIP712SignRequest.js.map deleted file mode 100644 index 52abad6..0000000 --- a/dist/service/src/models/EIP712SignRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EIP712SignRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/EIP712SignRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,kEAKC;AAED,8DAEC;AAED,wEAUC;AAED,0DAEC;AAED,oEAWC;AA1ED,2CAKqB;AA4BrB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ErrorMessage.d.ts b/dist/service/src/models/ErrorMessage.d.ts deleted file mode 100644 index 57b69b4..0000000 --- a/dist/service/src/models/ErrorMessage.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ErrorMessage - */ -export interface ErrorMessage { - /** - * User-friendly error message - * @type {string} - * @memberof ErrorMessage - */ - userMessage: string; - /** - * - * @type {Array} - * @memberof ErrorMessage - */ - solutions: Array; -} -/** - * Check if a given object implements the ErrorMessage interface. - */ -export declare function instanceOfErrorMessage(value: object): value is ErrorMessage; -export declare function ErrorMessageFromJSON(json: any): ErrorMessage; -export declare function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage; -export declare function ErrorMessageToJSON(json: any): ErrorMessage; -export declare function ErrorMessageToJSONTyped(value?: ErrorMessage | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ErrorMessage.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ErrorMessage.d.ts.map b/dist/service/src/models/ErrorMessage.d.ts.map deleted file mode 100644 index 66fd95d..0000000 --- a/dist/service/src/models/ErrorMessage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ErrorMessage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/service/src/models/ErrorMessage.js b/dist/service/src/models/ErrorMessage.js deleted file mode 100644 index 3aea25b..0000000 --- a/dist/service/src/models/ErrorMessage.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfErrorMessage = instanceOfErrorMessage; -exports.ErrorMessageFromJSON = ErrorMessageFromJSON; -exports.ErrorMessageFromJSONTyped = ErrorMessageFromJSONTyped; -exports.ErrorMessageToJSON = ErrorMessageToJSON; -exports.ErrorMessageToJSONTyped = ErrorMessageToJSONTyped; -/** - * Check if a given object implements the ErrorMessage interface. - */ -function instanceOfErrorMessage(value) { - if (!('userMessage' in value) || value['userMessage'] === undefined) - return false; - if (!('solutions' in value) || value['solutions'] === undefined) - return false; - return true; -} -function ErrorMessageFromJSON(json) { - return ErrorMessageFromJSONTyped(json, false); -} -function ErrorMessageFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'userMessage': json['userMessage'], - 'solutions': json['solutions'], - }; -} -function ErrorMessageToJSON(json) { - return ErrorMessageToJSONTyped(json, false); -} -function ErrorMessageToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'userMessage': value['userMessage'], - 'solutions': value['solutions'], - }; -} -//# sourceMappingURL=ErrorMessage.js.map \ No newline at end of file diff --git a/dist/service/src/models/ErrorMessage.js.map b/dist/service/src/models/ErrorMessage.js.map deleted file mode 100644 index d083be9..0000000 --- a/dist/service/src/models/ErrorMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/service/src/models/ErrorMessage.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/EventDetailsResponse.d.ts b/dist/service/src/models/EventDetailsResponse.d.ts deleted file mode 100644 index 486eb4f..0000000 --- a/dist/service/src/models/EventDetailsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Log } from './Log'; -/** - * - * @export - * @interface EventDetailsResponse - */ -export interface EventDetailsResponse { - /** - * - * @type {Array} - * @memberof EventDetailsResponse - */ - data: Array; -} -/** - * Check if a given object implements the EventDetailsResponse interface. - */ -export declare function instanceOfEventDetailsResponse(value: object): value is EventDetailsResponse; -export declare function EventDetailsResponseFromJSON(json: any): EventDetailsResponse; -export declare function EventDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDetailsResponse; -export declare function EventDetailsResponseToJSON(json: any): EventDetailsResponse; -export declare function EventDetailsResponseToJSONTyped(value?: EventDetailsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=EventDetailsResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/EventDetailsResponse.d.ts.map b/dist/service/src/models/EventDetailsResponse.d.ts.map deleted file mode 100644 index 7967b50..0000000 --- a/dist/service/src/models/EventDetailsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventDetailsResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/EventDetailsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/service/src/models/EventDetailsResponse.js b/dist/service/src/models/EventDetailsResponse.js deleted file mode 100644 index 8bba76d..0000000 --- a/dist/service/src/models/EventDetailsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfEventDetailsResponse = instanceOfEventDetailsResponse; -exports.EventDetailsResponseFromJSON = EventDetailsResponseFromJSON; -exports.EventDetailsResponseFromJSONTyped = EventDetailsResponseFromJSONTyped; -exports.EventDetailsResponseToJSON = EventDetailsResponseToJSON; -exports.EventDetailsResponseToJSONTyped = EventDetailsResponseToJSONTyped; -const Log_1 = require("./Log"); -/** - * Check if a given object implements the EventDetailsResponse interface. - */ -function instanceOfEventDetailsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function EventDetailsResponseFromJSON(json) { - return EventDetailsResponseFromJSONTyped(json, false); -} -function EventDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Log_1.LogFromJSON)), - }; -} -function EventDetailsResponseToJSON(json) { - return EventDetailsResponseToJSONTyped(json, false); -} -function EventDetailsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Log_1.LogToJSON)), - }; -} -//# sourceMappingURL=EventDetailsResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/EventDetailsResponse.js.map b/dist/service/src/models/EventDetailsResponse.js.map deleted file mode 100644 index 656e334..0000000 --- a/dist/service/src/models/EventDetailsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventDetailsResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/EventDetailsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,+BAKe;AAgBf;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAW,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/EventDomain.d.ts b/dist/service/src/models/EventDomain.d.ts deleted file mode 100644 index e75aab5..0000000 --- a/dist/service/src/models/EventDomain.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * The domain of the event. - * @export - */ -export declare const EventDomain: { - readonly STABLE_COIN_SYSTEM: "stableCoinSystem"; - readonly LENDINGPOOL: "lendingpool"; - readonly CHAINLINK: "chainlink"; - readonly UNISWAP_V3: "uniswapV3"; -}; -export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; -export declare function instanceOfEventDomain(value: any): boolean; -export declare function EventDomainFromJSON(json: any): EventDomain; -export declare function EventDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDomain; -export declare function EventDomainToJSON(value?: EventDomain | null): any; -export declare function EventDomainToJSONTyped(value: any, ignoreDiscriminator: boolean): EventDomain; -//# sourceMappingURL=EventDomain.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/EventDomain.d.ts.map b/dist/service/src/models/EventDomain.d.ts.map deleted file mode 100644 index 7ab89d3..0000000 --- a/dist/service/src/models/EventDomain.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventDomain.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/EventDomain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGvE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASzD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE7F;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,GAAG,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE5F"} \ No newline at end of file diff --git a/dist/service/src/models/EventDomain.js b/dist/service/src/models/EventDomain.js deleted file mode 100644 index 59149bb..0000000 --- a/dist/service/src/models/EventDomain.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventDomain = void 0; -exports.instanceOfEventDomain = instanceOfEventDomain; -exports.EventDomainFromJSON = EventDomainFromJSON; -exports.EventDomainFromJSONTyped = EventDomainFromJSONTyped; -exports.EventDomainToJSON = EventDomainToJSON; -exports.EventDomainToJSONTyped = EventDomainToJSONTyped; -/** - * The domain of the event. - * @export - */ -exports.EventDomain = { - STABLE_COIN_SYSTEM: 'stableCoinSystem', - LENDINGPOOL: 'lendingpool', - CHAINLINK: 'chainlink', - UNISWAP_V3: 'uniswapV3' -}; -function instanceOfEventDomain(value) { - for (const key in exports.EventDomain) { - if (Object.prototype.hasOwnProperty.call(exports.EventDomain, key)) { - if (exports.EventDomain[key] === value) { - return true; - } - } - } - return false; -} -function EventDomainFromJSON(json) { - return EventDomainFromJSONTyped(json, false); -} -function EventDomainFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function EventDomainToJSON(value) { - return value; -} -function EventDomainToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=EventDomain.js.map \ No newline at end of file diff --git a/dist/service/src/models/EventDomain.js.map b/dist/service/src/models/EventDomain.js.map deleted file mode 100644 index 2ba1b1e..0000000 --- a/dist/service/src/models/EventDomain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventDomain.js","sourceRoot":"","sources":["../../../../src/service/src/models/EventDomain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAgBH,sDASC;AAED,kDAEC;AAED,4DAEC;AAED,8CAEC;AAED,wDAEC;AAtCD;;;GAGG;AACU,QAAA,WAAW,GAAG;IACvB,kBAAkB,EAAE,kBAAkB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,WAAW;CACjB,CAAC;AAIX,SAAgB,qBAAqB,CAAC,KAAU;IAC5C,KAAK,MAAM,GAAG,IAAI,mBAAW,EAAE,CAAC;QAC5B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,mBAAW,EAAE,GAAG,CAAC,EAAE,CAAC;YACzD,IAAI,mBAAW,CAAC,GAA+B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACzD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,OAAO,IAAmB,CAAC;AAC/B,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAA0B;IACxD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAAU,EAAE,mBAA4B;IAC3E,OAAO,KAAoB,CAAC;AAChC,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/EventName.d.ts b/dist/service/src/models/EventName.d.ts deleted file mode 100644 index 9f2bdc3..0000000 --- a/dist/service/src/models/EventName.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const EventName: { - readonly VAULTS_REPAY: "VaultsRepay"; - readonly VAULTS_WITHDRAW: "VaultsWithdraw"; - readonly VAULTS_DEPOSIT: "VaultsDeposit"; - readonly VAULTS_MINT: "VaultsMint"; - readonly VAULTS_KICK: "VaultsKick"; - readonly VAULTS_TAKE: "VaultsTake"; - readonly VAULTS_REDO: "VaultsRedo"; - readonly VAULTS_YANK: "VaultsYank"; - readonly LENDINGPOOL_WITHDRAW: "LendingpoolWithdraw"; - readonly LENDINGPOOL_REPAY: "LendingpoolRepay"; - readonly LENDINGPOOL_LIQUIDATION_CALL: "LendingpoolLiquidationCall"; - readonly LENDINGPOOL_BORROW: "LendingpoolBorrow"; - readonly FILE: "File"; - readonly PERMISSION: "Permission"; - readonly MEDIAN: "Median"; - readonly UNKNOWN: "Unknown"; -}; -export type EventName = typeof EventName[keyof typeof EventName]; -export declare function instanceOfEventName(value: any): boolean; -export declare function EventNameFromJSON(json: any): EventName; -export declare function EventNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventName; -export declare function EventNameToJSON(value?: EventName | null): any; -export declare function EventNameToJSONTyped(value: any, ignoreDiscriminator: boolean): EventName; -//# sourceMappingURL=EventName.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/EventName.d.ts.map b/dist/service/src/models/EventName.d.ts.map deleted file mode 100644 index d1adecc..0000000 --- a/dist/service/src/models/EventName.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventName.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/EventName.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/service/src/models/EventName.js b/dist/service/src/models/EventName.js deleted file mode 100644 index aece71b..0000000 --- a/dist/service/src/models/EventName.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventName = void 0; -exports.instanceOfEventName = instanceOfEventName; -exports.EventNameFromJSON = EventNameFromJSON; -exports.EventNameFromJSONTyped = EventNameFromJSONTyped; -exports.EventNameToJSON = EventNameToJSON; -exports.EventNameToJSONTyped = EventNameToJSONTyped; -/** - * - * @export - */ -exports.EventName = { - VAULTS_REPAY: 'VaultsRepay', - VAULTS_WITHDRAW: 'VaultsWithdraw', - VAULTS_DEPOSIT: 'VaultsDeposit', - VAULTS_MINT: 'VaultsMint', - VAULTS_KICK: 'VaultsKick', - VAULTS_TAKE: 'VaultsTake', - VAULTS_REDO: 'VaultsRedo', - VAULTS_YANK: 'VaultsYank', - LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', - LENDINGPOOL_REPAY: 'LendingpoolRepay', - LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', - LENDINGPOOL_BORROW: 'LendingpoolBorrow', - FILE: 'File', - PERMISSION: 'Permission', - MEDIAN: 'Median', - UNKNOWN: 'Unknown' -}; -function instanceOfEventName(value) { - for (const key in exports.EventName) { - if (Object.prototype.hasOwnProperty.call(exports.EventName, key)) { - if (exports.EventName[key] === value) { - return true; - } - } - } - return false; -} -function EventNameFromJSON(json) { - return EventNameFromJSONTyped(json, false); -} -function EventNameFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function EventNameToJSON(value) { - return value; -} -function EventNameToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=EventName.js.map \ No newline at end of file diff --git a/dist/service/src/models/EventName.js.map b/dist/service/src/models/EventName.js.map deleted file mode 100644 index 3035643..0000000 --- a/dist/service/src/models/EventName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventName.js","sourceRoot":"","sources":["../../../../src/service/src/models/EventName.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA4BH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AAlDD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,YAAY,EAAE,aAAa;IAC3B,eAAe,EAAE,gBAAgB;IACjC,cAAc,EAAE,eAAe;IAC/B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,oBAAoB,EAAE,qBAAqB;IAC3C,iBAAiB,EAAE,kBAAkB;IACrC,4BAA4B,EAAE,4BAA4B;IAC1D,kBAAkB,EAAE,mBAAmB;IACvC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/EventType.d.ts b/dist/service/src/models/EventType.d.ts deleted file mode 100644 index 16bff9c..0000000 --- a/dist/service/src/models/EventType.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * The type of the event. who has triggered the event. - * @export - */ -export declare const EventType: { - readonly EXECUTIVE: "executive"; - readonly ORACLE: "oracle"; - readonly USER: "user"; -}; -export type EventType = typeof EventType[keyof typeof EventType]; -export declare function instanceOfEventType(value: any): boolean; -export declare function EventTypeFromJSON(json: any): EventType; -export declare function EventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventType; -export declare function EventTypeToJSON(value?: EventType | null): any; -export declare function EventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): EventType; -//# sourceMappingURL=EventType.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/EventType.d.ts.map b/dist/service/src/models/EventType.d.ts.map deleted file mode 100644 index 3799122..0000000 --- a/dist/service/src/models/EventType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventType.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/EventType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/service/src/models/EventType.js b/dist/service/src/models/EventType.js deleted file mode 100644 index e445012..0000000 --- a/dist/service/src/models/EventType.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventType = void 0; -exports.instanceOfEventType = instanceOfEventType; -exports.EventTypeFromJSON = EventTypeFromJSON; -exports.EventTypeFromJSONTyped = EventTypeFromJSONTyped; -exports.EventTypeToJSON = EventTypeToJSON; -exports.EventTypeToJSONTyped = EventTypeToJSONTyped; -/** - * The type of the event. who has triggered the event. - * @export - */ -exports.EventType = { - EXECUTIVE: 'executive', - ORACLE: 'oracle', - USER: 'user' -}; -function instanceOfEventType(value) { - for (const key in exports.EventType) { - if (Object.prototype.hasOwnProperty.call(exports.EventType, key)) { - if (exports.EventType[key] === value) { - return true; - } - } - } - return false; -} -function EventTypeFromJSON(json) { - return EventTypeFromJSONTyped(json, false); -} -function EventTypeFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function EventTypeToJSON(value) { - return value; -} -function EventTypeToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=EventType.js.map \ No newline at end of file diff --git a/dist/service/src/models/EventType.js.map b/dist/service/src/models/EventType.js.map deleted file mode 100644 index d528551..0000000 --- a/dist/service/src/models/EventType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../../../src/service/src/models/EventType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AArCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ExtendedEvent.d.ts b/dist/service/src/models/ExtendedEvent.d.ts deleted file mode 100644 index 29a46d3..0000000 --- a/dist/service/src/models/ExtendedEvent.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { EventDomain } from './EventDomain'; -import type { EventType } from './EventType'; -import type { Log } from './Log'; -import type { EventName } from './EventName'; -/** - * - * @export - * @interface ExtendedEvent - */ -export interface ExtendedEvent { - /** - * - * @type {EventDomain} - * @memberof ExtendedEvent - */ - domain: EventDomain; - /** - * Identifier for the event. - * @type {number} - * @memberof ExtendedEvent - */ - id: number; - /** - * - * @type {EventName} - * @memberof ExtendedEvent - */ - name: EventName; - /** - * - * @type {Log} - * @memberof ExtendedEvent - */ - raw: Log; - /** - * - * @type {EventType} - * @memberof ExtendedEvent - */ - type: EventType; - /** - * The payload of the event. The payload is a JSON-marshalled - * @type {{ [key: string]: any | undefined; }} - * @memberof ExtendedEvent - */ - payload: { - [key: string]: any | undefined; - }; -} -/** - * Check if a given object implements the ExtendedEvent interface. - */ -export declare function instanceOfExtendedEvent(value: object): value is ExtendedEvent; -export declare function ExtendedEventFromJSON(json: any): ExtendedEvent; -export declare function ExtendedEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtendedEvent; -export declare function ExtendedEventToJSON(json: any): ExtendedEvent; -export declare function ExtendedEventToJSONTyped(value?: ExtendedEvent | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ExtendedEvent.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ExtendedEvent.d.ts.map b/dist/service/src/models/ExtendedEvent.d.ts.map deleted file mode 100644 index dc7045d..0000000 --- a/dist/service/src/models/ExtendedEvent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExtendedEvent.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ExtendedEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAChD;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAQ7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAajG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchH"} \ No newline at end of file diff --git a/dist/service/src/models/ExtendedEvent.js b/dist/service/src/models/ExtendedEvent.js deleted file mode 100644 index 6d83de0..0000000 --- a/dist/service/src/models/ExtendedEvent.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfExtendedEvent = instanceOfExtendedEvent; -exports.ExtendedEventFromJSON = ExtendedEventFromJSON; -exports.ExtendedEventFromJSONTyped = ExtendedEventFromJSONTyped; -exports.ExtendedEventToJSON = ExtendedEventToJSON; -exports.ExtendedEventToJSONTyped = ExtendedEventToJSONTyped; -const EventDomain_1 = require("./EventDomain"); -const EventType_1 = require("./EventType"); -const Log_1 = require("./Log"); -const EventName_1 = require("./EventName"); -/** - * Check if a given object implements the ExtendedEvent interface. - */ -function instanceOfExtendedEvent(value) { - if (!('domain' in value) || value['domain'] === undefined) - return false; - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('raw' in value) || value['raw'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('payload' in value) || value['payload'] === undefined) - return false; - return true; -} -function ExtendedEventFromJSON(json) { - return ExtendedEventFromJSONTyped(json, false); -} -function ExtendedEventFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), - 'id': json['id'], - 'name': (0, EventName_1.EventNameFromJSON)(json['name']), - 'raw': (0, Log_1.LogFromJSON)(json['raw']), - 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), - 'payload': json['payload'], - }; -} -function ExtendedEventToJSON(json) { - return ExtendedEventToJSONTyped(json, false); -} -function ExtendedEventToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), - 'id': value['id'], - 'name': (0, EventName_1.EventNameToJSON)(value['name']), - 'raw': (0, Log_1.LogToJSON)(value['raw']), - 'type': (0, EventType_1.EventTypeToJSON)(value['type']), - 'payload': value['payload'], - }; -} -//# sourceMappingURL=ExtendedEvent.js.map \ No newline at end of file diff --git a/dist/service/src/models/ExtendedEvent.js.map b/dist/service/src/models/ExtendedEvent.js.map deleted file mode 100644 index 2824ab0..0000000 --- a/dist/service/src/models/ExtendedEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExtendedEvent.js","sourceRoot":"","sources":["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EH,QAAQ,EAAE,IAAA,iCAAmB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,KAAK,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,MAAM,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/FormattedReserveData.d.ts b/dist/service/src/models/FormattedReserveData.d.ts deleted file mode 100644 index 222fd36..0000000 --- a/dist/service/src/models/FormattedReserveData.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface FormattedReserveData - */ -export interface FormattedReserveData { - /** - * Identifier for the reserve data. - * @type {string} - * @memberof FormattedReserveData - */ - id: string; - /** - * - * @type {Token} - * @memberof FormattedReserveData - */ - underlyingAsset: Token; - /** - * Address of the associated zToken contract in hexadecimal format. - * @type {string} - * @memberof FormattedReserveData - */ - zTokenAddress: string; - /** - * Address of the associated variable debt token contract in hexadecimal format. - * @type {string} - * @memberof FormattedReserveData - */ - variableDebtTokenAddress: string; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - borrowingEnabled: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - isActive: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - isFrozen: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - usageAsCollateralEnabled: boolean; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveFactor: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - baseLTVasCollateral: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveLiquidationThreshold: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveLiquidationBonus: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - utilizationRate: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - totalDebt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - totalLiquidity: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - availableLiquidity: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - supplyAPY: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - supplyAPR: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - variableBorrowAPY: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - variableBorrowAPR: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - price: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the FormattedReserveData interface. - */ -export declare function instanceOfFormattedReserveData(value: object): value is FormattedReserveData; -export declare function FormattedReserveDataFromJSON(json: any): FormattedReserveData; -export declare function FormattedReserveDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormattedReserveData; -export declare function FormattedReserveDataToJSON(json: any): FormattedReserveData; -export declare function FormattedReserveDataToJSONTyped(value?: FormattedReserveData | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=FormattedReserveData.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/FormattedReserveData.d.ts.map b/dist/service/src/models/FormattedReserveData.d.ts.map deleted file mode 100644 index b6db79e..0000000 --- a/dist/service/src/models/FormattedReserveData.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormattedReserveData.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/FormattedReserveData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,aAAa,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,GAAG,GAAG,CA6B9H"} \ No newline at end of file diff --git a/dist/service/src/models/FormattedReserveData.js b/dist/service/src/models/FormattedReserveData.js deleted file mode 100644 index b891627..0000000 --- a/dist/service/src/models/FormattedReserveData.js +++ /dev/null @@ -1,132 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfFormattedReserveData = instanceOfFormattedReserveData; -exports.FormattedReserveDataFromJSON = FormattedReserveDataFromJSON; -exports.FormattedReserveDataFromJSONTyped = FormattedReserveDataFromJSONTyped; -exports.FormattedReserveDataToJSON = FormattedReserveDataToJSON; -exports.FormattedReserveDataToJSONTyped = FormattedReserveDataToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the FormattedReserveData interface. - */ -function instanceOfFormattedReserveData(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) - return false; - if (!('zTokenAddress' in value) || value['zTokenAddress'] === undefined) - return false; - if (!('variableDebtTokenAddress' in value) || value['variableDebtTokenAddress'] === undefined) - return false; - if (!('borrowingEnabled' in value) || value['borrowingEnabled'] === undefined) - return false; - if (!('isActive' in value) || value['isActive'] === undefined) - return false; - if (!('isFrozen' in value) || value['isFrozen'] === undefined) - return false; - if (!('usageAsCollateralEnabled' in value) || value['usageAsCollateralEnabled'] === undefined) - return false; - if (!('reserveFactor' in value) || value['reserveFactor'] === undefined) - return false; - if (!('baseLTVasCollateral' in value) || value['baseLTVasCollateral'] === undefined) - return false; - if (!('reserveLiquidationThreshold' in value) || value['reserveLiquidationThreshold'] === undefined) - return false; - if (!('reserveLiquidationBonus' in value) || value['reserveLiquidationBonus'] === undefined) - return false; - if (!('utilizationRate' in value) || value['utilizationRate'] === undefined) - return false; - if (!('totalDebt' in value) || value['totalDebt'] === undefined) - return false; - if (!('totalLiquidity' in value) || value['totalLiquidity'] === undefined) - return false; - if (!('availableLiquidity' in value) || value['availableLiquidity'] === undefined) - return false; - if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) - return false; - if (!('supplyAPR' in value) || value['supplyAPR'] === undefined) - return false; - if (!('variableBorrowAPY' in value) || value['variableBorrowAPY'] === undefined) - return false; - if (!('variableBorrowAPR' in value) || value['variableBorrowAPR'] === undefined) - return false; - if (!('price' in value) || value['price'] === undefined) - return false; - return true; -} -function FormattedReserveDataFromJSON(json) { - return FormattedReserveDataFromJSONTyped(json, false); -} -function FormattedReserveDataFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), - 'zTokenAddress': json['zTokenAddress'], - 'variableDebtTokenAddress': json['variableDebtTokenAddress'], - 'borrowingEnabled': json['borrowingEnabled'], - 'isActive': json['isActive'], - 'isFrozen': json['isFrozen'], - 'usageAsCollateralEnabled': json['usageAsCollateralEnabled'], - 'reserveFactor': json['reserveFactor'], - 'baseLTVasCollateral': json['baseLTVasCollateral'], - 'reserveLiquidationThreshold': json['reserveLiquidationThreshold'], - 'reserveLiquidationBonus': json['reserveLiquidationBonus'], - 'utilizationRate': json['utilizationRate'], - 'totalDebt': json['totalDebt'], - 'totalLiquidity': json['totalLiquidity'], - 'availableLiquidity': json['availableLiquidity'], - 'supplyAPY': json['supplyAPY'], - 'supplyAPR': json['supplyAPR'], - 'variableBorrowAPY': json['variableBorrowAPY'], - 'variableBorrowAPR': json['variableBorrowAPR'], - 'price': json['price'], - }; -} -function FormattedReserveDataToJSON(json) { - return FormattedReserveDataToJSONTyped(json, false); -} -function FormattedReserveDataToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), - 'zTokenAddress': value['zTokenAddress'], - 'variableDebtTokenAddress': value['variableDebtTokenAddress'], - 'borrowingEnabled': value['borrowingEnabled'], - 'isActive': value['isActive'], - 'isFrozen': value['isFrozen'], - 'usageAsCollateralEnabled': value['usageAsCollateralEnabled'], - 'reserveFactor': value['reserveFactor'], - 'baseLTVasCollateral': value['baseLTVasCollateral'], - 'reserveLiquidationThreshold': value['reserveLiquidationThreshold'], - 'reserveLiquidationBonus': value['reserveLiquidationBonus'], - 'utilizationRate': value['utilizationRate'], - 'totalDebt': value['totalDebt'], - 'totalLiquidity': value['totalLiquidity'], - 'availableLiquidity': value['availableLiquidity'], - 'supplyAPY': value['supplyAPY'], - 'supplyAPR': value['supplyAPR'], - 'variableBorrowAPY': value['variableBorrowAPY'], - 'variableBorrowAPR': value['variableBorrowAPR'], - 'price': value['price'], - }; -} -//# sourceMappingURL=FormattedReserveData.js.map \ No newline at end of file diff --git a/dist/service/src/models/FormattedReserveData.js.map b/dist/service/src/models/FormattedReserveData.js.map deleted file mode 100644 index 7bab809..0000000 --- a/dist/service/src/models/FormattedReserveData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormattedReserveData.js","sourceRoot":"","sources":["../../../../src/service/src/models/FormattedReserveData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoJH,wEAuBC;AAED,oEAEC;AAED,8EA4BC;AAED,gEAEC;AAED,0EA6BC;AA5OD,mCAKiB;AAwIjB;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KA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AAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,iBAAiB,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACxD,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,0BAA0B,EAAE,KAAK,CAAC,0BAA0B,CAAC;QAC7D,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC7C,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,0BAA0B,EAAE,KAAK,CAAC,0BAA0B,CAAC;QAC7D,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,6BAA6B,EAAE,KAAK,CAAC,6BAA6B,CAAC;QACnE,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC;QAC3D,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Ilk.d.ts b/dist/service/src/models/Ilk.d.ts deleted file mode 100644 index 8c2a915..0000000 --- a/dist/service/src/models/Ilk.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -/** - * - * @export - * @interface Ilk - */ -export interface Ilk { - /** - * Name of the ILK - * @type {string} - * @memberof Ilk - */ - name: string; - /** - * - * @type {Symbol} - * @memberof Ilk - */ - symbol: Symbol; - /** - * Minimum Collateralization Ratio - * @type {string} - * @memberof Ilk - */ - minimumCollateralizationRatio: string; - /** - * Maximum Loan To Value - * @type {string} - * @memberof Ilk - */ - maximumLoanToValue: string; - /** - * Liquidation Penalty - * @type {string} - * @memberof Ilk - */ - liquidationPenalty: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - debtCeiling: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - debt: { - [key: string]: string | undefined; - }; - /** - * Annual Stability Fee - * @type {string} - * @memberof Ilk - */ - annualStabilityFee: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - dustLimit: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - price: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - nextPrice: { - [key: string]: string | undefined; - }; - /** - * Join Address - * @type {string} - * @memberof Ilk - */ - join: string; - /** - * Median Address - * @type {string} - * @memberof Ilk - */ - median: string; - /** - * Gem Address - * @type {string} - * @memberof Ilk - */ - gem: string; - /** - * Clipper Address - * @type {string} - * @memberof Ilk - */ - clipper: string; - /** - * Pip Address - * @type {string} - * @memberof Ilk - */ - pip: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - hole: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - dirt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - availableToBorrow: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the Ilk interface. - */ -export declare function instanceOfIlk(value: object): value is Ilk; -export declare function IlkFromJSON(json: any): Ilk; -export declare function IlkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ilk; -export declare function IlkToJSON(json: any): Ilk; -export declare function IlkToJSONTyped(value?: Ilk | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Ilk.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Ilk.d.ts.map b/dist/service/src/models/Ilk.d.ts.map deleted file mode 100644 index 493b6f6..0000000 --- a/dist/service/src/models/Ilk.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ilk.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Ilk.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG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at end of file diff --git a/dist/service/src/models/Ilk.js b/dist/service/src/models/Ilk.js deleted file mode 100644 index 7901452..0000000 --- a/dist/service/src/models/Ilk.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfIlk = instanceOfIlk; -exports.IlkFromJSON = IlkFromJSON; -exports.IlkFromJSONTyped = IlkFromJSONTyped; -exports.IlkToJSON = IlkToJSON; -exports.IlkToJSONTyped = IlkToJSONTyped; -const Symbol_1 = require("./Symbol"); -/** - * Check if a given object implements the Ilk interface. - */ -function instanceOfIlk(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('minimumCollateralizationRatio' in value) || value['minimumCollateralizationRatio'] === undefined) - return false; - if (!('maximumLoanToValue' in value) || value['maximumLoanToValue'] === undefined) - return false; - if (!('liquidationPenalty' in value) || value['liquidationPenalty'] === undefined) - return false; - if (!('debtCeiling' in value) || value['debtCeiling'] === undefined) - return false; - if (!('debt' in value) || value['debt'] === undefined) - return false; - if (!('annualStabilityFee' in value) || value['annualStabilityFee'] === undefined) - return false; - if (!('dustLimit' in value) || value['dustLimit'] === undefined) - return false; - if (!('price' in value) || value['price'] === undefined) - return false; - if (!('nextPrice' in value) || value['nextPrice'] === undefined) - return false; - if (!('join' in value) || value['join'] === undefined) - return false; - if (!('median' in value) || value['median'] === undefined) - return false; - if (!('gem' in value) || value['gem'] === undefined) - return false; - if (!('clipper' in value) || value['clipper'] === undefined) - return false; - if (!('pip' in value) || value['pip'] === undefined) - return false; - if (!('hole' in value) || value['hole'] === undefined) - return false; - if (!('dirt' in value) || value['dirt'] === undefined) - return false; - if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) - return false; - return true; -} -function IlkFromJSON(json) { - return IlkFromJSONTyped(json, false); -} -function IlkFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'minimumCollateralizationRatio': json['minimumCollateralizationRatio'], - 'maximumLoanToValue': json['maximumLoanToValue'], - 'liquidationPenalty': json['liquidationPenalty'], - 'debtCeiling': json['debtCeiling'], - 'debt': json['debt'], - 'annualStabilityFee': json['annualStabilityFee'], - 'dustLimit': json['dustLimit'], - 'price': json['price'], - 'nextPrice': json['nextPrice'], - 'join': json['join'], - 'median': json['median'], - 'gem': json['gem'], - 'clipper': json['clipper'], - 'pip': json['pip'], - 'hole': json['hole'], - 'dirt': json['dirt'], - 'availableToBorrow': json['availableToBorrow'], - }; -} -function IlkToJSON(json) { - return IlkToJSONTyped(json, false); -} -function IlkToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'minimumCollateralizationRatio': value['minimumCollateralizationRatio'], - 'maximumLoanToValue': value['maximumLoanToValue'], - 'liquidationPenalty': value['liquidationPenalty'], - 'debtCeiling': value['debtCeiling'], - 'debt': value['debt'], - 'annualStabilityFee': value['annualStabilityFee'], - 'dustLimit': value['dustLimit'], - 'price': value['price'], - 'nextPrice': value['nextPrice'], - 'join': value['join'], - 'median': value['median'], - 'gem': value['gem'], - 'clipper': value['clipper'], - 'pip': value['pip'], - 'hole': value['hole'], - 'dirt': value['dirt'], - 'availableToBorrow': value['availableToBorrow'], - }; -} -//# sourceMappingURL=Ilk.js.map \ No newline at end of file diff --git a/dist/service/src/models/Ilk.js.map b/dist/service/src/models/Ilk.js.map deleted file mode 100644 index 621d9a6..0000000 --- a/dist/service/src/models/Ilk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Il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,SAAgB,cAAc,CAAC,KAAkB,EAAE,sBAA+B,KAAK;IACnF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,+BAA+B,EAAE,KAAK,CAAC,+BAA+B,CAAC;QACvE,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;KAClD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/IlksResponse.d.ts b/dist/service/src/models/IlksResponse.d.ts deleted file mode 100644 index 2a86e6c..0000000 --- a/dist/service/src/models/IlksResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Ilk } from './Ilk'; -/** - * - * @export - * @interface IlksResponse - */ -export interface IlksResponse { - /** - * - * @type {Array} - * @memberof IlksResponse - */ - data: Array; -} -/** - * Check if a given object implements the IlksResponse interface. - */ -export declare function instanceOfIlksResponse(value: object): value is IlksResponse; -export declare function IlksResponseFromJSON(json: any): IlksResponse; -export declare function IlksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IlksResponse; -export declare function IlksResponseToJSON(json: any): IlksResponse; -export declare function IlksResponseToJSONTyped(value?: IlksResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=IlksResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/IlksResponse.d.ts.map b/dist/service/src/models/IlksResponse.d.ts.map deleted file mode 100644 index 355671d..0000000 --- a/dist/service/src/models/IlksResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IlksResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/IlksResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/service/src/models/IlksResponse.js b/dist/service/src/models/IlksResponse.js deleted file mode 100644 index 6ce2207..0000000 --- a/dist/service/src/models/IlksResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfIlksResponse = instanceOfIlksResponse; -exports.IlksResponseFromJSON = IlksResponseFromJSON; -exports.IlksResponseFromJSONTyped = IlksResponseFromJSONTyped; -exports.IlksResponseToJSON = IlksResponseToJSON; -exports.IlksResponseToJSONTyped = IlksResponseToJSONTyped; -const Ilk_1 = require("./Ilk"); -/** - * Check if a given object implements the IlksResponse interface. - */ -function instanceOfIlksResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function IlksResponseFromJSON(json) { - return IlksResponseFromJSONTyped(json, false); -} -function IlksResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Ilk_1.IlkFromJSON)), - }; -} -function IlksResponseToJSON(json) { - return IlksResponseToJSONTyped(json, false); -} -function IlksResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Ilk_1.IlkToJSON)), - }; -} -//# sourceMappingURL=IlksResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/IlksResponse.js.map b/dist/service/src/models/IlksResponse.js.map deleted file mode 100644 index e716e11..0000000 --- a/dist/service/src/models/IlksResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IlksResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/IlksResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,+BAKe;AAgBf;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAW,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrow.d.ts b/dist/service/src/models/LendingpoolBorrow.d.ts deleted file mode 100644 index 04be3b4..0000000 --- a/dist/service/src/models/LendingpoolBorrow.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface LendingpoolBorrow - */ -export interface LendingpoolBorrow { - /** - * The Ethereum address of the user. - * @type {string} - * @memberof LendingpoolBorrow - */ - user: string; - /** - * - * @type {Token} - * @memberof LendingpoolBorrow - */ - underlyingAsset: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolBorrow - */ - amount: { - [key: string]: string | undefined; - }; - /** - * The borrow rate. - * @type {string} - * @memberof LendingpoolBorrow - */ - borrowRate: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolBorrow - */ - maxBorrowAmount: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the LendingpoolBorrow interface. - */ -export declare function instanceOfLendingpoolBorrow(value: object): value is LendingpoolBorrow; -export declare function LendingpoolBorrowFromJSON(json: any): LendingpoolBorrow; -export declare function LendingpoolBorrowFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrow; -export declare function LendingpoolBorrowToJSON(json: any): LendingpoolBorrow; -export declare function LendingpoolBorrowToJSONTyped(value?: LendingpoolBorrow | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolBorrow.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrow.d.ts.map b/dist/service/src/models/LendingpoolBorrow.d.ts.map deleted file mode 100644 index f26aa2f..0000000 --- a/dist/service/src/models/LendingpoolBorrow.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrow.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolBorrow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC3D;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAOrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAYzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxH"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrow.js b/dist/service/src/models/LendingpoolBorrow.js deleted file mode 100644 index 7373103..0000000 --- a/dist/service/src/models/LendingpoolBorrow.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolBorrow = instanceOfLendingpoolBorrow; -exports.LendingpoolBorrowFromJSON = LendingpoolBorrowFromJSON; -exports.LendingpoolBorrowFromJSONTyped = LendingpoolBorrowFromJSONTyped; -exports.LendingpoolBorrowToJSON = LendingpoolBorrowToJSON; -exports.LendingpoolBorrowToJSONTyped = LendingpoolBorrowToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the LendingpoolBorrow interface. - */ -function instanceOfLendingpoolBorrow(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('borrowRate' in value) || value['borrowRate'] === undefined) - return false; - if (!('maxBorrowAmount' in value) || value['maxBorrowAmount'] === undefined) - return false; - return true; -} -function LendingpoolBorrowFromJSON(json) { - return LendingpoolBorrowFromJSONTyped(json, false); -} -function LendingpoolBorrowFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), - 'amount': json['amount'], - 'borrowRate': json['borrowRate'], - 'maxBorrowAmount': json['maxBorrowAmount'], - }; -} -function LendingpoolBorrowToJSON(json) { - return LendingpoolBorrowToJSONTyped(json, false); -} -function LendingpoolBorrowToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), - 'amount': value['amount'], - 'borrowRate': value['borrowRate'], - 'maxBorrowAmount': value['maxBorrowAmount'], - }; -} -//# sourceMappingURL=LendingpoolBorrow.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrow.js.map b/dist/service/src/models/LendingpoolBorrow.js.map deleted file mode 100644 index 4386677..0000000 --- a/dist/service/src/models/LendingpoolBorrow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrow.js","sourceRoot":"","sources":["../../../../src/service/src/models/Lend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YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts b/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts deleted file mode 100644 index e1b883e..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolBorrowTxRequest - */ -export interface LendingpoolBorrowTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - symbol: string; - /** - * The amount to borrow in native token units - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the LendingpoolBorrowTxRequest interface. - */ -export declare function instanceOfLendingpoolBorrowTxRequest(value: object): value is LendingpoolBorrowTxRequest; -export declare function LendingpoolBorrowTxRequestFromJSON(json: any): LendingpoolBorrowTxRequest; -export declare function LendingpoolBorrowTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxRequest; -export declare function LendingpoolBorrowTxRequestToJSON(json: any): LendingpoolBorrowTxRequest; -export declare function LendingpoolBorrowTxRequestToJSONTyped(value?: LendingpoolBorrowTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolBorrowTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts.map b/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts.map deleted file mode 100644 index 28cb61a..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrowTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolBorrowTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAIvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAU3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxRequest.js b/dist/service/src/models/LendingpoolBorrowTxRequest.js deleted file mode 100644 index f1ddec1..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolBorrowTxRequest = instanceOfLendingpoolBorrowTxRequest; -exports.LendingpoolBorrowTxRequestFromJSON = LendingpoolBorrowTxRequestFromJSON; -exports.LendingpoolBorrowTxRequestFromJSONTyped = LendingpoolBorrowTxRequestFromJSONTyped; -exports.LendingpoolBorrowTxRequestToJSON = LendingpoolBorrowTxRequestToJSON; -exports.LendingpoolBorrowTxRequestToJSONTyped = LendingpoolBorrowTxRequestToJSONTyped; -/** - * Check if a given object implements the LendingpoolBorrowTxRequest interface. - */ -function instanceOfLendingpoolBorrowTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - return true; -} -function LendingpoolBorrowTxRequestFromJSON(json) { - return LendingpoolBorrowTxRequestFromJSONTyped(json, false); -} -function LendingpoolBorrowTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function LendingpoolBorrowTxRequestToJSON(json) { - return LendingpoolBorrowTxRequestToJSONTyped(json, false); -} -function LendingpoolBorrowTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=LendingpoolBorrowTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxRequest.js.map b/dist/service/src/models/LendingpoolBorrowTxRequest.js.map deleted file mode 100644 index f9727c1..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrowTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolBorrowTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,oFAIC;AAED,gFAEC;AAED,0FAUC;AAED,4EAEC;AAED,sFAWC;AAxCD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts b/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts deleted file mode 100644 index 1af9e69..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface LendingpoolBorrowTxResponse - */ -export interface LendingpoolBorrowTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolBorrowTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolBorrowTxResponse - */ - response?: LendingpoolTxResponse; -} -/** - * Check if a given object implements the LendingpoolBorrowTxResponse interface. - */ -export declare function instanceOfLendingpoolBorrowTxResponse(value: object): value is LendingpoolBorrowTxResponse; -export declare function LendingpoolBorrowTxResponseFromJSON(json: any): LendingpoolBorrowTxResponse; -export declare function LendingpoolBorrowTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxResponse; -export declare function LendingpoolBorrowTxResponseToJSON(json: any): LendingpoolBorrowTxResponse; -export declare function LendingpoolBorrowTxResponseToJSONTyped(value?: LendingpoolBorrowTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolBorrowTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts.map b/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts.map deleted file mode 100644 index 1e8022b..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrowTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolBorrowTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAEzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAS7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxResponse.js b/dist/service/src/models/LendingpoolBorrowTxResponse.js deleted file mode 100644 index 5cb3424..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxResponse.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolBorrowTxResponse = instanceOfLendingpoolBorrowTxResponse; -exports.LendingpoolBorrowTxResponseFromJSON = LendingpoolBorrowTxResponseFromJSON; -exports.LendingpoolBorrowTxResponseFromJSONTyped = LendingpoolBorrowTxResponseFromJSONTyped; -exports.LendingpoolBorrowTxResponseToJSON = LendingpoolBorrowTxResponseToJSON; -exports.LendingpoolBorrowTxResponseToJSONTyped = LendingpoolBorrowTxResponseToJSONTyped; -const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the LendingpoolBorrowTxResponse interface. - */ -function instanceOfLendingpoolBorrowTxResponse(value) { - return true; -} -function LendingpoolBorrowTxResponseFromJSON(json) { - return LendingpoolBorrowTxResponseFromJSONTyped(json, false); -} -function LendingpoolBorrowTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), - }; -} -function LendingpoolBorrowTxResponseToJSON(json) { - return LendingpoolBorrowTxResponseToJSONTyped(json, false); -} -function LendingpoolBorrowTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), - }; -} -//# sourceMappingURL=LendingpoolBorrowTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolBorrowTxResponse.js.map b/dist/service/src/models/LendingpoolBorrowTxResponse.js.map deleted file mode 100644 index 7fc8141..0000000 --- a/dist/service/src/models/LendingpoolBorrowTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolBorrowTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolBorrowTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,sFAEC;AAED,kFAEC;AAED,4FASC;AAED,8EAEC;AAED,wFAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,qCAAqC,CAAC,KAAa;IAC/D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDeposit.d.ts b/dist/service/src/models/LendingpoolDeposit.d.ts deleted file mode 100644 index b8ad187..0000000 --- a/dist/service/src/models/LendingpoolDeposit.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface LendingpoolDeposit - */ -export interface LendingpoolDeposit { - /** - * The Ethereum address of the user. - * @type {string} - * @memberof LendingpoolDeposit - */ - user: string; - /** - * - * @type {Token} - * @memberof LendingpoolDeposit - */ - underlyingAsset: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolDeposit - */ - amount: { - [key: string]: string | undefined; - }; - /** - * Whether the user has enabled the asset as collateral. - * @type {boolean} - * @memberof LendingpoolDeposit - */ - usageAsCollateralEnabledOnUser: boolean; - /** - * The supply APY. - * @type {string} - * @memberof LendingpoolDeposit - */ - supplyAPY: string; -} -/** - * Check if a given object implements the LendingpoolDeposit interface. - */ -export declare function instanceOfLendingpoolDeposit(value: object): value is LendingpoolDeposit; -export declare function LendingpoolDepositFromJSON(json: any): LendingpoolDeposit; -export declare function LendingpoolDepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDeposit; -export declare function LendingpoolDepositToJSON(json: any): LendingpoolDeposit; -export declare function LendingpoolDepositToJSONTyped(value?: LendingpoolDeposit | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolDeposit.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDeposit.d.ts.map b/dist/service/src/models/LendingpoolDeposit.d.ts.map deleted file mode 100644 index 93a05ef..0000000 --- a/dist/service/src/models/LendingpoolDeposit.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDeposit.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDeposit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,8BAA8B,EAAE,OAAO,CAAC;IACxC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAOvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAY3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1H"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDeposit.js b/dist/service/src/models/LendingpoolDeposit.js deleted file mode 100644 index cfd44cd..0000000 --- a/dist/service/src/models/LendingpoolDeposit.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolDeposit = instanceOfLendingpoolDeposit; -exports.LendingpoolDepositFromJSON = LendingpoolDepositFromJSON; -exports.LendingpoolDepositFromJSONTyped = LendingpoolDepositFromJSONTyped; -exports.LendingpoolDepositToJSON = LendingpoolDepositToJSON; -exports.LendingpoolDepositToJSONTyped = LendingpoolDepositToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the LendingpoolDeposit interface. - */ -function instanceOfLendingpoolDeposit(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('usageAsCollateralEnabledOnUser' in value) || value['usageAsCollateralEnabledOnUser'] === undefined) - return false; - if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) - return false; - return true; -} -function LendingpoolDepositFromJSON(json) { - return LendingpoolDepositFromJSONTyped(json, false); -} -function LendingpoolDepositFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), - 'amount': json['amount'], - 'usageAsCollateralEnabledOnUser': json['usageAsCollateralEnabledOnUser'], - 'supplyAPY': json['supplyAPY'], - }; -} -function LendingpoolDepositToJSON(json) { - return LendingpoolDepositToJSONTyped(json, false); -} -function LendingpoolDepositToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), - 'amount': value['amount'], - 'usageAsCollateralEnabledOnUser': value['usageAsCollateralEnabledOnUser'], - 'supplyAPY': value['supplyAPY'], - }; -} -//# sourceMappingURL=LendingpoolDeposit.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDeposit.js.map b/dist/service/src/models/LendingpoolDeposit.js.map deleted file mode 100644 index 513f26f..0000000 --- a/dist/service/src/models/LendingpoolDeposit.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDeposit.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDeposit.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,oEAOC;AAED,gEAEC;AAED,0EAYC;AAED,4DAEC;AAED,sEAaC;AA5FD,mCAKiB;AAwCjB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,gCAAgC,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gCAAgC,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;I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service/src/models/LendingpoolDepositTxRequest.d.ts deleted file mode 100644 index ad3cae6..0000000 --- a/dist/service/src/models/LendingpoolDepositTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolDepositTxRequest - */ -export interface LendingpoolDepositTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - symbol: string; - /** - * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the LendingpoolDepositTxRequest interface. - */ -export declare function instanceOfLendingpoolDepositTxRequest(value: object): value is LendingpoolDepositTxRequest; -export declare function LendingpoolDepositTxRequestFromJSON(json: any): LendingpoolDepositTxRequest; -export declare function LendingpoolDepositTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxRequest; -export declare function LendingpoolDepositTxRequestToJSON(json: any): LendingpoolDepositTxRequest; -export declare function LendingpoolDepositTxRequestToJSONTyped(value?: LendingpoolDepositTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolDepositTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxRequest.d.ts.map b/dist/service/src/models/LendingpoolDepositTxRequest.d.ts.map deleted file mode 100644 index 0d21bb4..0000000 --- a/dist/service/src/models/LendingpoolDepositTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDepositTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDepositTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAIzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAU7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxRequest.js b/dist/service/src/models/LendingpoolDepositTxRequest.js deleted file mode 100644 index 83fbf08..0000000 --- a/dist/service/src/models/LendingpoolDepositTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolDepositTxRequest = instanceOfLendingpoolDepositTxRequest; -exports.LendingpoolDepositTxRequestFromJSON = LendingpoolDepositTxRequestFromJSON; -exports.LendingpoolDepositTxRequestFromJSONTyped = LendingpoolDepositTxRequestFromJSONTyped; -exports.LendingpoolDepositTxRequestToJSON = LendingpoolDepositTxRequestToJSON; -exports.LendingpoolDepositTxRequestToJSONTyped = LendingpoolDepositTxRequestToJSONTyped; -/** - * Check if a given object implements the LendingpoolDepositTxRequest interface. - */ -function instanceOfLendingpoolDepositTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - return true; -} -function LendingpoolDepositTxRequestFromJSON(json) { - return LendingpoolDepositTxRequestFromJSONTyped(json, false); -} -function LendingpoolDepositTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function LendingpoolDepositTxRequestToJSON(json) { - return LendingpoolDepositTxRequestToJSONTyped(json, false); -} -function LendingpoolDepositTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=LendingpoolDepositTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxRequest.js.map b/dist/service/src/models/LendingpoolDepositTxRequest.js.map deleted file mode 100644 index 6e31c3b..0000000 --- a/dist/service/src/models/LendingpoolDepositTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDepositTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDepositTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,sFAIC;AAED,kFAEC;AAED,4FAUC;AAED,8EAEC;AAED,wFAWC;AAxCD;;GAEG;AACH,SAAgB,qCAAqC,CAAC,KAAa;IAC/D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxResponse.d.ts b/dist/service/src/models/LendingpoolDepositTxResponse.d.ts deleted file mode 100644 index 6163417..0000000 --- a/dist/service/src/models/LendingpoolDepositTxResponse.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface LendingpoolDepositTxResponse - */ -export interface LendingpoolDepositTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolDepositTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolDepositTxResponse - */ - response?: LendingpoolTxResponse; -} -/** - * Check if a given object implements the LendingpoolDepositTxResponse interface. - */ -export declare function instanceOfLendingpoolDepositTxResponse(value: object): value is LendingpoolDepositTxResponse; -export declare function LendingpoolDepositTxResponseFromJSON(json: any): LendingpoolDepositTxResponse; -export declare function LendingpoolDepositTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxResponse; -export declare function LendingpoolDepositTxResponseToJSON(json: any): LendingpoolDepositTxResponse; -export declare function LendingpoolDepositTxResponseToJSONTyped(value?: LendingpoolDepositTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolDepositTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxResponse.d.ts.map b/dist/service/src/models/LendingpoolDepositTxResponse.d.ts.map deleted file mode 100644 index 457b11a..0000000 --- a/dist/service/src/models/LendingpoolDepositTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDepositTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDepositTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAE3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxResponse.js b/dist/service/src/models/LendingpoolDepositTxResponse.js deleted file mode 100644 index aaf8e63..0000000 --- a/dist/service/src/models/LendingpoolDepositTxResponse.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolDepositTxResponse = instanceOfLendingpoolDepositTxResponse; -exports.LendingpoolDepositTxResponseFromJSON = LendingpoolDepositTxResponseFromJSON; -exports.LendingpoolDepositTxResponseFromJSONTyped = LendingpoolDepositTxResponseFromJSONTyped; -exports.LendingpoolDepositTxResponseToJSON = LendingpoolDepositTxResponseToJSON; -exports.LendingpoolDepositTxResponseToJSONTyped = LendingpoolDepositTxResponseToJSONTyped; -const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the LendingpoolDepositTxResponse interface. - */ -function instanceOfLendingpoolDepositTxResponse(value) { - return true; -} -function LendingpoolDepositTxResponseFromJSON(json) { - return LendingpoolDepositTxResponseFromJSONTyped(json, false); -} -function LendingpoolDepositTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), - }; -} -function LendingpoolDepositTxResponseToJSON(json) { - return LendingpoolDepositTxResponseToJSONTyped(json, false); -} -function LendingpoolDepositTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), - }; -} -//# sourceMappingURL=LendingpoolDepositTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolDepositTxResponse.js.map b/dist/service/src/models/LendingpoolDepositTxResponse.js.map deleted file mode 100644 index 5ce8b13..0000000 --- a/dist/service/src/models/LendingpoolDepositTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolDepositTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolDepositTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,wFAEC;AAED,oFAEC;AAED,8FASC;AAED,gFAEC;AAED,0FAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,KAA2C,EAAE,sBAA+B,KAAK;IACrI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxRequest.d.ts b/dist/service/src/models/LendingpoolRepayTxRequest.d.ts deleted file mode 100644 index 1836346..0000000 --- a/dist/service/src/models/LendingpoolRepayTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolRepayTxRequest - */ -export interface LendingpoolRepayTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - symbol: string; - /** - * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the LendingpoolRepayTxRequest interface. - */ -export declare function instanceOfLendingpoolRepayTxRequest(value: object): value is LendingpoolRepayTxRequest; -export declare function LendingpoolRepayTxRequestFromJSON(json: any): LendingpoolRepayTxRequest; -export declare function LendingpoolRepayTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxRequest; -export declare function LendingpoolRepayTxRequestToJSON(json: any): LendingpoolRepayTxRequest; -export declare function LendingpoolRepayTxRequestToJSONTyped(value?: LendingpoolRepayTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolRepayTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxRequest.d.ts.map b/dist/service/src/models/LendingpoolRepayTxRequest.d.ts.map deleted file mode 100644 index 2c68dfc..0000000 --- a/dist/service/src/models/LendingpoolRepayTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolRepayTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolRepayTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAIrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAUzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxI"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxRequest.js b/dist/service/src/models/LendingpoolRepayTxRequest.js deleted file mode 100644 index 780e41d..0000000 --- a/dist/service/src/models/LendingpoolRepayTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolRepayTxRequest = instanceOfLendingpoolRepayTxRequest; -exports.LendingpoolRepayTxRequestFromJSON = LendingpoolRepayTxRequestFromJSON; -exports.LendingpoolRepayTxRequestFromJSONTyped = LendingpoolRepayTxRequestFromJSONTyped; -exports.LendingpoolRepayTxRequestToJSON = LendingpoolRepayTxRequestToJSON; -exports.LendingpoolRepayTxRequestToJSONTyped = LendingpoolRepayTxRequestToJSONTyped; -/** - * Check if a given object implements the LendingpoolRepayTxRequest interface. - */ -function instanceOfLendingpoolRepayTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - return true; -} -function LendingpoolRepayTxRequestFromJSON(json) { - return LendingpoolRepayTxRequestFromJSONTyped(json, false); -} -function LendingpoolRepayTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function LendingpoolRepayTxRequestToJSON(json) { - return LendingpoolRepayTxRequestToJSONTyped(json, false); -} -function LendingpoolRepayTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=LendingpoolRepayTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxRequest.js.map b/dist/service/src/models/LendingpoolRepayTxRequest.js.map deleted file mode 100644 index 45ea09a..0000000 --- a/dist/service/src/models/LendingpoolRepayTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolRepayTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolRepayTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,kFAIC;AAED,8EAEC;AAED,wFAUC;AAED,0EAEC;AAED,oFAWC;AAxCD;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,KAAwC,EAAE,sBAA+B,KAAK;IAC/H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxResponse.d.ts b/dist/service/src/models/LendingpoolRepayTxResponse.d.ts deleted file mode 100644 index 0e548ef..0000000 --- a/dist/service/src/models/LendingpoolRepayTxResponse.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface LendingpoolRepayTxResponse - */ -export interface LendingpoolRepayTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolRepayTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolRepayTxResponse - */ - response?: LendingpoolTxResponse; -} -/** - * Check if a given object implements the LendingpoolRepayTxResponse interface. - */ -export declare function instanceOfLendingpoolRepayTxResponse(value: object): value is LendingpoolRepayTxResponse; -export declare function LendingpoolRepayTxResponseFromJSON(json: any): LendingpoolRepayTxResponse; -export declare function LendingpoolRepayTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxResponse; -export declare function LendingpoolRepayTxResponseToJSON(json: any): LendingpoolRepayTxResponse; -export declare function LendingpoolRepayTxResponseToJSONTyped(value?: LendingpoolRepayTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolRepayTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxResponse.d.ts.map b/dist/service/src/models/LendingpoolRepayTxResponse.d.ts.map deleted file mode 100644 index 693acc2..0000000 --- a/dist/service/src/models/LendingpoolRepayTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolRepayTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolRepayTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAS3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxResponse.js b/dist/service/src/models/LendingpoolRepayTxResponse.js deleted file mode 100644 index 214430e..0000000 --- a/dist/service/src/models/LendingpoolRepayTxResponse.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolRepayTxResponse = instanceOfLendingpoolRepayTxResponse; -exports.LendingpoolRepayTxResponseFromJSON = LendingpoolRepayTxResponseFromJSON; -exports.LendingpoolRepayTxResponseFromJSONTyped = LendingpoolRepayTxResponseFromJSONTyped; -exports.LendingpoolRepayTxResponseToJSON = LendingpoolRepayTxResponseToJSON; -exports.LendingpoolRepayTxResponseToJSONTyped = LendingpoolRepayTxResponseToJSONTyped; -const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the LendingpoolRepayTxResponse interface. - */ -function instanceOfLendingpoolRepayTxResponse(value) { - return true; -} -function LendingpoolRepayTxResponseFromJSON(json) { - return LendingpoolRepayTxResponseFromJSONTyped(json, false); -} -function LendingpoolRepayTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), - }; -} -function LendingpoolRepayTxResponseToJSON(json) { - return LendingpoolRepayTxResponseToJSONTyped(json, false); -} -function LendingpoolRepayTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), - }; -} -//# sourceMappingURL=LendingpoolRepayTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolRepayTxResponse.js.map b/dist/service/src/models/LendingpoolRepayTxResponse.js.map deleted file mode 100644 index 2339188..0000000 --- a/dist/service/src/models/LendingpoolRepayTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolRepayTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolRepayTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,oFAEC;AAED,gFAEC;AAED,0FASC;AAED,4EAEC;AAED,sFAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolStats.d.ts b/dist/service/src/models/LendingpoolStats.d.ts deleted file mode 100644 index c763835..0000000 --- a/dist/service/src/models/LendingpoolStats.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolStats - */ -export interface LendingpoolStats { - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalAvailable: any; - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalBorrows: any; - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalMarketSize: any; -} -/** - * Check if a given object implements the LendingpoolStats interface. - */ -export declare function instanceOfLendingpoolStats(value: object): value is LendingpoolStats; -export declare function LendingpoolStatsFromJSON(json: any): LendingpoolStats; -export declare function LendingpoolStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolStats; -export declare function LendingpoolStatsToJSON(json: any): LendingpoolStats; -export declare function LendingpoolStatsToJSONTyped(value?: LendingpoolStats | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolStats.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolStats.d.ts.map b/dist/service/src/models/LendingpoolStats.d.ts.map deleted file mode 100644 index 69abb2a..0000000 --- a/dist/service/src/models/LendingpoolStats.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolStats.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolStats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,cAAc,EAAE,GAAG,CAAC;IACpB;;;;OAIG;IACH,YAAY,EAAE,GAAG,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,GAAG,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAKnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtH"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolStats.js b/dist/service/src/models/LendingpoolStats.js deleted file mode 100644 index a0f8299..0000000 --- a/dist/service/src/models/LendingpoolStats.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolStats = instanceOfLendingpoolStats; -exports.LendingpoolStatsFromJSON = LendingpoolStatsFromJSON; -exports.LendingpoolStatsFromJSONTyped = LendingpoolStatsFromJSONTyped; -exports.LendingpoolStatsToJSON = LendingpoolStatsToJSON; -exports.LendingpoolStatsToJSONTyped = LendingpoolStatsToJSONTyped; -/** - * Check if a given object implements the LendingpoolStats interface. - */ -function instanceOfLendingpoolStats(value) { - if (!('totalAvailable' in value) || value['totalAvailable'] === undefined) - return false; - if (!('totalBorrows' in value) || value['totalBorrows'] === undefined) - return false; - if (!('totalMarketSize' in value) || value['totalMarketSize'] === undefined) - return false; - return true; -} -function LendingpoolStatsFromJSON(json) { - return LendingpoolStatsFromJSONTyped(json, false); -} -function LendingpoolStatsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'totalAvailable': json['totalAvailable'], - 'totalBorrows': json['totalBorrows'], - 'totalMarketSize': json['totalMarketSize'], - }; -} -function LendingpoolStatsToJSON(json) { - return LendingpoolStatsToJSONTyped(json, false); -} -function LendingpoolStatsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'totalAvailable': value['totalAvailable'], - 'totalBorrows': value['totalBorrows'], - 'totalMarketSize': value['totalMarketSize'], - }; -} -//# sourceMappingURL=LendingpoolStats.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolStats.js.map b/dist/service/src/models/LendingpoolStats.js.map deleted file mode 100644 index 6023916..0000000 --- a/dist/service/src/models/LendingpoolStats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolStats.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolStats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAA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AE,KAAK,CAAC,cAAc,CAAC;QACrC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolTxResponse.d.ts b/dist/service/src/models/LendingpoolTxResponse.d.ts deleted file mode 100644 index 2d7dae4..0000000 --- a/dist/service/src/models/LendingpoolTxResponse.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolTxResponse - */ -export interface LendingpoolTxResponse { - /** - * The health factor after the deposit - * @type {string} - * @memberof LendingpoolTxResponse - */ - nextHealthFactor?: string; -} -/** - * Check if a given object implements the LendingpoolTxResponse interface. - */ -export declare function instanceOfLendingpoolTxResponse(value: object): value is LendingpoolTxResponse; -export declare function LendingpoolTxResponseFromJSON(json: any): LendingpoolTxResponse; -export declare function LendingpoolTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolTxResponse; -export declare function LendingpoolTxResponseToJSON(json: any): LendingpoolTxResponse; -export declare function LendingpoolTxResponseToJSONTyped(value?: LendingpoolTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolTxResponse.d.ts.map b/dist/service/src/models/LendingpoolTxResponse.d.ts.map deleted file mode 100644 index 94834e1..0000000 --- a/dist/service/src/models/LendingpoolTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolTxResponse.js b/dist/service/src/models/LendingpoolTxResponse.js deleted file mode 100644 index 109ffcb..0000000 --- a/dist/service/src/models/LendingpoolTxResponse.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolTxResponse = instanceOfLendingpoolTxResponse; -exports.LendingpoolTxResponseFromJSON = LendingpoolTxResponseFromJSON; -exports.LendingpoolTxResponseFromJSONTyped = LendingpoolTxResponseFromJSONTyped; -exports.LendingpoolTxResponseToJSON = LendingpoolTxResponseToJSON; -exports.LendingpoolTxResponseToJSONTyped = LendingpoolTxResponseToJSONTyped; -/** - * Check if a given object implements the LendingpoolTxResponse interface. - */ -function instanceOfLendingpoolTxResponse(value) { - return true; -} -function LendingpoolTxResponseFromJSON(json) { - return LendingpoolTxResponseFromJSONTyped(json, false); -} -function LendingpoolTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'nextHealthFactor': json['nextHealthFactor'] == null ? undefined : json['nextHealthFactor'], - }; -} -function LendingpoolTxResponseToJSON(json) { - return LendingpoolTxResponseToJSONTyped(json, false); -} -function LendingpoolTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'nextHealthFactor': value['nextHealthFactor'], - }; -} -//# sourceMappingURL=LendingpoolTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolTxResponse.js.map b/dist/service/src/models/LendingpoolTxResponse.js.map deleted file mode 100644 index b407aa8..0000000 --- a/dist/service/src/models/LendingpoolTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAEC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAlCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;KAC9F,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts deleted file mode 100644 index f21bbd7..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolUseAssetAsCollateralTxRequest - */ -export interface LendingpoolUseAssetAsCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - user: string; - /** - * Symbol of asset - * @type {string} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - symbol: string; - /** - * Enable or disable the asset as collateral - * @type {boolean} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - enabled: boolean; -} -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxRequest interface. - */ -export declare function instanceOfLendingpoolUseAssetAsCollateralTxRequest(value: object): value is LendingpoolUseAssetAsCollateralTxRequest; -export declare function LendingpoolUseAssetAsCollateralTxRequestFromJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest; -export declare function LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxRequest; -export declare function LendingpoolUseAssetAsCollateralTxRequestToJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest; -export declare function LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map deleted file mode 100644 index 61242a6..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolUseAssetAsCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACrD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kDAAkD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wCAAwC,CAKnI;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,GAAG,wCAAwC,CAEpH;AAED,wBAAgB,qDAAqD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wCAAwC,CAUvJ;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,GAAG,wCAAwC,CAElH;AAED,wBAAgB,mDAAmD,CAAC,KAAK,CAAC,EAAE,wCAAwC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtK"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js deleted file mode 100644 index ff59c0e..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolUseAssetAsCollateralTxRequest = instanceOfLendingpoolUseAssetAsCollateralTxRequest; -exports.LendingpoolUseAssetAsCollateralTxRequestFromJSON = LendingpoolUseAssetAsCollateralTxRequestFromJSON; -exports.LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped = LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped; -exports.LendingpoolUseAssetAsCollateralTxRequestToJSON = LendingpoolUseAssetAsCollateralTxRequestToJSON; -exports.LendingpoolUseAssetAsCollateralTxRequestToJSONTyped = LendingpoolUseAssetAsCollateralTxRequestToJSONTyped; -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxRequest interface. - */ -function instanceOfLendingpoolUseAssetAsCollateralTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('enabled' in value) || value['enabled'] === undefined) - return false; - return true; -} -function LendingpoolUseAssetAsCollateralTxRequestFromJSON(json) { - return LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json, false); -} -function LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'symbol': json['symbol'], - 'enabled': json['enabled'], - }; -} -function LendingpoolUseAssetAsCollateralTxRequestToJSON(json) { - return LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(json, false); -} -function LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'symbol': value['symbol'], - 'enabled': value['enabled'], - }; -} -//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map deleted file mode 100644 index 1a91b5f..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolUseAssetAsCollateralTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gHAKC;AAED,4GAEC;AAED,sHAUC;AAED,wGAEC;AAED,kHAWC;AAzCD;;GAEG;AACH,SAAgB,kDAAkD,CAAC,KAAa;IAC5E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gDAAgD,CAAC,IAAS;IACtE,OAAO,qDAAqD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAgB,qDAAqD,CAAC,IAAS,EAAE,mBAA4B;IACzG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,8CAA8C,CAAC,IAAS;IACpE,OAAO,mDAAmD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AAED,SAAgB,mDAAmD,CAAC,KAAuD,EAAE,sBAA+B,KAAK;IAC7J,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts deleted file mode 100644 index 68bafd2..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface LendingpoolUseAssetAsCollateralTxResponse - */ -export interface LendingpoolUseAssetAsCollateralTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolUseAssetAsCollateralTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolUseAssetAsCollateralTxResponse - */ - response?: LendingpoolTxResponse; -} -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxResponse interface. - */ -export declare function instanceOfLendingpoolUseAssetAsCollateralTxResponse(value: object): value is LendingpoolUseAssetAsCollateralTxResponse; -export declare function LendingpoolUseAssetAsCollateralTxResponseFromJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse; -export declare function LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxResponse; -export declare function LendingpoolUseAssetAsCollateralTxResponseToJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse; -export declare function LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map deleted file mode 100644 index e3a05bf..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolUseAssetAsCollateralTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACtD;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,mDAAmD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yCAAyC,CAErI;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,GAAG,yCAAyC,CAEtH;AAED,wBAAgB,sDAAsD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yCAAyC,CASzJ;AAED,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,GAAG,GAAG,yCAAyC,CAEpH;AAED,wBAAgB,oDAAoD,CAAC,KAAK,CAAC,EAAE,yCAAyC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxK"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js deleted file mode 100644 index 918af8b..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolUseAssetAsCollateralTxResponse = instanceOfLendingpoolUseAssetAsCollateralTxResponse; -exports.LendingpoolUseAssetAsCollateralTxResponseFromJSON = LendingpoolUseAssetAsCollateralTxResponseFromJSON; -exports.LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped = LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped; -exports.LendingpoolUseAssetAsCollateralTxResponseToJSON = LendingpoolUseAssetAsCollateralTxResponseToJSON; -exports.LendingpoolUseAssetAsCollateralTxResponseToJSONTyped = LendingpoolUseAssetAsCollateralTxResponseToJSONTyped; -const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxResponse interface. - */ -function instanceOfLendingpoolUseAssetAsCollateralTxResponse(value) { - return true; -} -function LendingpoolUseAssetAsCollateralTxResponseFromJSON(json) { - return LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json, false); -} -function LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), - }; -} -function LendingpoolUseAssetAsCollateralTxResponseToJSON(json) { - return LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(json, false); -} -function LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), - }; -} -//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map b/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map deleted file mode 100644 index 35a712e..0000000 --- a/dist/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolUseAssetAsCollateralTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,kHAEC;AAED,8GAEC;AAED,wHASC;AAED,0GAEC;AAED,oHAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,mDAAmD,CAAC,KAAa;IAC7E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iDAAiD,CAAC,IAAS;IACvE,OAAO,sDAAsD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,sDAAsD,CAAC,IAAS,EAAE,mBAA4B;IAC1G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,+CAA+C,CAAC,IAAS;IACrE,OAAO,oDAAoD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,oDAAoD,CAAC,KAAwD,EAAE,sBAA+B,KAAK;IAC/J,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts b/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts deleted file mode 100644 index f5f11ff..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LendingpoolWithdrawTxRequest - */ -export interface LendingpoolWithdrawTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - symbol: string; - /** - * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the LendingpoolWithdrawTxRequest interface. - */ -export declare function instanceOfLendingpoolWithdrawTxRequest(value: object): value is LendingpoolWithdrawTxRequest; -export declare function LendingpoolWithdrawTxRequestFromJSON(json: any): LendingpoolWithdrawTxRequest; -export declare function LendingpoolWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxRequest; -export declare function LendingpoolWithdrawTxRequestToJSON(json: any): LendingpoolWithdrawTxRequest; -export declare function LendingpoolWithdrawTxRequestToJSONTyped(value?: LendingpoolWithdrawTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolWithdrawTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map b/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map deleted file mode 100644 index 4ee34c4..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolWithdrawTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolWithdrawTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAI3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAU/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9I"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxRequest.js b/dist/service/src/models/LendingpoolWithdrawTxRequest.js deleted file mode 100644 index e9deaec..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolWithdrawTxRequest = instanceOfLendingpoolWithdrawTxRequest; -exports.LendingpoolWithdrawTxRequestFromJSON = LendingpoolWithdrawTxRequestFromJSON; -exports.LendingpoolWithdrawTxRequestFromJSONTyped = LendingpoolWithdrawTxRequestFromJSONTyped; -exports.LendingpoolWithdrawTxRequestToJSON = LendingpoolWithdrawTxRequestToJSON; -exports.LendingpoolWithdrawTxRequestToJSONTyped = LendingpoolWithdrawTxRequestToJSONTyped; -/** - * Check if a given object implements the LendingpoolWithdrawTxRequest interface. - */ -function instanceOfLendingpoolWithdrawTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - return true; -} -function LendingpoolWithdrawTxRequestFromJSON(json) { - return LendingpoolWithdrawTxRequestFromJSONTyped(json, false); -} -function LendingpoolWithdrawTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function LendingpoolWithdrawTxRequestToJSON(json) { - return LendingpoolWithdrawTxRequestToJSONTyped(json, false); -} -function LendingpoolWithdrawTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=LendingpoolWithdrawTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxRequest.js.map b/dist/service/src/models/LendingpoolWithdrawTxRequest.js.map deleted file mode 100644 index 9f9a14a..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolWithdrawTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolWithdrawTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,wFAIC;AAED,oFAEC;AAED,8FAUC;AAED,gFAEC;AAED,0FAWC;AAxCD;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,KAA2C,EAAE,sBAA+B,KAAK;IACrI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts b/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts deleted file mode 100644 index 9af5c9a..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface LendingpoolWithdrawTxResponse - */ -export interface LendingpoolWithdrawTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolWithdrawTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolWithdrawTxResponse - */ - response?: LendingpoolTxResponse; -} -/** - * Check if a given object implements the LendingpoolWithdrawTxResponse interface. - */ -export declare function instanceOfLendingpoolWithdrawTxResponse(value: object): value is LendingpoolWithdrawTxResponse; -export declare function LendingpoolWithdrawTxResponseFromJSON(json: any): LendingpoolWithdrawTxResponse; -export declare function LendingpoolWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxResponse; -export declare function LendingpoolWithdrawTxResponseToJSON(json: any): LendingpoolWithdrawTxResponse; -export declare function LendingpoolWithdrawTxResponseToJSONTyped(value?: LendingpoolWithdrawTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LendingpoolWithdrawTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map b/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map deleted file mode 100644 index 884acd3..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolWithdrawTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolWithdrawTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAE7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxResponse.js b/dist/service/src/models/LendingpoolWithdrawTxResponse.js deleted file mode 100644 index 67eab2d..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxResponse.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLendingpoolWithdrawTxResponse = instanceOfLendingpoolWithdrawTxResponse; -exports.LendingpoolWithdrawTxResponseFromJSON = LendingpoolWithdrawTxResponseFromJSON; -exports.LendingpoolWithdrawTxResponseFromJSONTyped = LendingpoolWithdrawTxResponseFromJSONTyped; -exports.LendingpoolWithdrawTxResponseToJSON = LendingpoolWithdrawTxResponseToJSON; -exports.LendingpoolWithdrawTxResponseToJSONTyped = LendingpoolWithdrawTxResponseToJSONTyped; -const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the LendingpoolWithdrawTxResponse interface. - */ -function instanceOfLendingpoolWithdrawTxResponse(value) { - return true; -} -function LendingpoolWithdrawTxResponseFromJSON(json) { - return LendingpoolWithdrawTxResponseFromJSONTyped(json, false); -} -function LendingpoolWithdrawTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), - }; -} -function LendingpoolWithdrawTxResponseToJSON(json) { - return LendingpoolWithdrawTxResponseToJSONTyped(json, false); -} -function LendingpoolWithdrawTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), - }; -} -//# sourceMappingURL=LendingpoolWithdrawTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/LendingpoolWithdrawTxResponse.js.map b/dist/service/src/models/LendingpoolWithdrawTxResponse.js.map deleted file mode 100644 index 4dac185..0000000 --- a/dist/service/src/models/LendingpoolWithdrawTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LendingpoolWithdrawTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/LendingpoolWithdrawTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0FAEC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Log.d.ts b/dist/service/src/models/Log.d.ts deleted file mode 100644 index 77c96f2..0000000 --- a/dist/service/src/models/Log.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface Log - */ -export interface Log { - /** - * The name of the log - * @type {string} - * @memberof Log - */ - name: string; - /** - * The contract address - * @type {string} - * @memberof Log - */ - contract: string; - /** - * - * @type {Timestamp} - * @memberof Log - */ - timestamp: Timestamp; - /** - * The Ethereum address - * @type {string} - * @memberof Log - */ - address: string; - /** - * The block number - * @type {number} - * @memberof Log - */ - blockNumber: number; - /** - * The transaction hash - * @type {string} - * @memberof Log - */ - txHash: string; - /** - * The block hash - * @type {string} - * @memberof Log - */ - blockHash: string; - /** - * The index - * @type {number} - * @memberof Log - */ - index: number; - /** - * - * @type {Array} - * @memberof Log - */ - topics: Array; - /** - * The data of the log - * @type {string} - * @memberof Log - */ - data: string; - /** - * The decoded log, if available - * @type {{ [key: string]: string | undefined; }} - * @memberof Log - */ - decoded?: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the Log interface. - */ -export declare function instanceOfLog(value: object): value is Log; -export declare function LogFromJSON(json: any): Log; -export declare function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log; -export declare function LogToJSON(json: any): Log; -export declare function LogToJSONTyped(value?: Log | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Log.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Log.d.ts.map b/dist/service/src/models/Log.d.ts.map deleted file mode 100644 index 81afbb8..0000000 --- a/dist/service/src/models/Log.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Log.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,GAAG,CAYzD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,GAAG,CAkB7E;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAExC;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmB5F"} \ No newline at end of file diff --git a/dist/service/src/models/Log.js b/dist/service/src/models/Log.js deleted file mode 100644 index 5f3a9ec..0000000 --- a/dist/service/src/models/Log.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLog = instanceOfLog; -exports.LogFromJSON = LogFromJSON; -exports.LogFromJSONTyped = LogFromJSONTyped; -exports.LogToJSON = LogToJSON; -exports.LogToJSONTyped = LogToJSONTyped; -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the Log interface. - */ -function instanceOfLog(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('contract' in value) || value['contract'] === undefined) - return false; - if (!('timestamp' in value) || value['timestamp'] === undefined) - return false; - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('blockNumber' in value) || value['blockNumber'] === undefined) - return false; - if (!('txHash' in value) || value['txHash'] === undefined) - return false; - if (!('blockHash' in value) || value['blockHash'] === undefined) - return false; - if (!('index' in value) || value['index'] === undefined) - return false; - if (!('topics' in value) || value['topics'] === undefined) - return false; - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function LogFromJSON(json) { - return LogFromJSONTyped(json, false); -} -function LogFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'contract': json['contract'], - 'timestamp': (0, Timestamp_1.TimestampFromJSON)(json['timestamp']), - 'address': json['address'], - 'blockNumber': json['blockNumber'], - 'txHash': json['txHash'], - 'blockHash': json['blockHash'], - 'index': json['index'], - 'topics': json['topics'], - 'data': json['data'], - 'decoded': json['decoded'] == null ? undefined : json['decoded'], - }; -} -function LogToJSON(json) { - return LogToJSONTyped(json, false); -} -function LogToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'contract': value['contract'], - 'timestamp': (0, Timestamp_1.TimestampToJSON)(value['timestamp']), - 'address': value['address'], - 'blockNumber': value['blockNumber'], - 'txHash': value['txHash'], - 'blockHash': value['blockHash'], - 'index': value['index'], - 'topics': value['topics'], - 'data': value['data'], - 'decoded': value['decoded'], - }; -} -//# sourceMappingURL=Log.js.map \ No newline at end of file diff --git a/dist/service/src/models/Log.js.map b/dist/service/src/models/Log.js.map deleted file mode 100644 index ff76cb1..0000000 --- a/dist/service/src/models/Log.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":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AAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/MethodParameters.d.ts b/dist/service/src/models/MethodParameters.d.ts deleted file mode 100644 index a199016..0000000 --- a/dist/service/src/models/MethodParameters.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface MethodParameters - */ -export interface MethodParameters { - /** - * - * @type {string} - * @memberof MethodParameters - */ - to: string; - /** - * - * @type {string} - * @memberof MethodParameters - */ - calldata: string; - /** - * - * @type {string} - * @memberof MethodParameters - */ - value: string; -} -/** - * Check if a given object implements the MethodParameters interface. - */ -export declare function instanceOfMethodParameters(value: object): value is MethodParameters; -export declare function MethodParametersFromJSON(json: any): MethodParameters; -export declare function MethodParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodParameters; -export declare function MethodParametersToJSON(json: any): MethodParameters; -export declare function MethodParametersToJSONTyped(value?: MethodParameters | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=MethodParameters.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/MethodParameters.d.ts.map b/dist/service/src/models/MethodParameters.d.ts.map deleted file mode 100644 index 5fac89d..0000000 --- a/dist/service/src/models/MethodParameters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MethodParameters.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/MethodParameters.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAKnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtH"} \ No newline at end of file diff --git a/dist/service/src/models/MethodParameters.js b/dist/service/src/models/MethodParameters.js deleted file mode 100644 index 0439c64..0000000 --- a/dist/service/src/models/MethodParameters.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfMethodParameters = instanceOfMethodParameters; -exports.MethodParametersFromJSON = MethodParametersFromJSON; -exports.MethodParametersFromJSONTyped = MethodParametersFromJSONTyped; -exports.MethodParametersToJSON = MethodParametersToJSON; -exports.MethodParametersToJSONTyped = MethodParametersToJSONTyped; -/** - * Check if a given object implements the MethodParameters interface. - */ -function instanceOfMethodParameters(value) { - if (!('to' in value) || value['to'] === undefined) - return false; - if (!('calldata' in value) || value['calldata'] === undefined) - return false; - if (!('value' in value) || value['value'] === undefined) - return false; - return true; -} -function MethodParametersFromJSON(json) { - return MethodParametersFromJSONTyped(json, false); -} -function MethodParametersFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'to': json['to'], - 'calldata': json['calldata'], - 'value': json['value'], - }; -} -function MethodParametersToJSON(json) { - return MethodParametersToJSONTyped(json, false); -} -function MethodParametersToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'to': value['to'], - 'calldata': value['calldata'], - 'value': value['value'], - }; -} -//# sourceMappingURL=MethodParameters.js.map \ No newline at end of file diff --git a/dist/service/src/models/MethodParameters.js.map b/dist/service/src/models/MethodParameters.js.map deleted file mode 100644 index db2d3f3..0000000 --- a/dist/service/src/models/MethodParameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MethodParameters.js","sourceRoot":"","sources":["../../../../src/service/src/models/MethodParameters.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gEAKC;AAED,4DAEC;AAED,sEAUC;AAED,wDAEC;AAED,kEAWC;AAzCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ModelError.d.ts b/dist/service/src/models/ModelError.d.ts deleted file mode 100644 index f25891a..0000000 --- a/dist/service/src/models/ModelError.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * Error message - * @type {string} - * @memberof ModelError - */ - msg: string; - /** - * - * @type {Array} - * @memberof ModelError - */ - reasons: Array; -} -/** - * Check if a given object implements the ModelError interface. - */ -export declare function instanceOfModelError(value: object): value is ModelError; -export declare function ModelErrorFromJSON(json: any): ModelError; -export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError; -export declare function ModelErrorToJSON(json: any): ModelError; -export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ModelError.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ModelError.d.ts.map b/dist/service/src/models/ModelError.d.ts.map deleted file mode 100644 index a8919fa..0000000 --- a/dist/service/src/models/ModelError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModelError.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ModelError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAIvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1G"} \ No newline at end of file diff --git a/dist/service/src/models/ModelError.js b/dist/service/src/models/ModelError.js deleted file mode 100644 index b007721..0000000 --- a/dist/service/src/models/ModelError.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfModelError = instanceOfModelError; -exports.ModelErrorFromJSON = ModelErrorFromJSON; -exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; -exports.ModelErrorToJSON = ModelErrorToJSON; -exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped; -/** - * Check if a given object implements the ModelError interface. - */ -function instanceOfModelError(value) { - if (!('msg' in value) || value['msg'] === undefined) - return false; - if (!('reasons' in value) || value['reasons'] === undefined) - return false; - return true; -} -function ModelErrorFromJSON(json) { - return ModelErrorFromJSONTyped(json, false); -} -function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'msg': json['msg'], - 'reasons': json['reasons'], - }; -} -function ModelErrorToJSON(json) { - return ModelErrorToJSONTyped(json, false); -} -function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'msg': value['msg'], - 'reasons': value['reasons'], - }; -} -//# sourceMappingURL=ModelError.js.map \ No newline at end of file diff --git a/dist/service/src/models/ModelError.js.map b/dist/service/src/models/ModelError.js.map deleted file mode 100644 index 49b3842..0000000 --- a/dist/service/src/models/ModelError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["../../../../src/service/src/models/ModelError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oDAIC;AAED,gDAEC;AAED,0DASC;AAED,4CAEC;AAED,sDAUC;AAtCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Order.d.ts b/dist/service/src/models/Order.d.ts deleted file mode 100644 index 9a493b5..0000000 --- a/dist/service/src/models/Order.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { RawDutchAmount } from './RawDutchAmount'; -/** - * - * @export - * @interface Order - */ -export interface Order { - /** - * - * @type {string} - * @memberof Order - */ - quoteId?: string; - /** - * - * @type {Array} - * @memberof Order - */ - outputs: Array; - /** - * - * @type {string} - * @memberof Order - */ - encodedOrder: string; - /** - * - * @type {string} - * @memberof Order - */ - signature: string; - /** - * - * @type {RawDutchAmount} - * @memberof Order - */ - input: RawDutchAmount; - /** - * - * @type {string} - * @memberof Order - */ - orderStatus: OrderOrderStatusEnum; - /** - * - * @type {number} - * @memberof Order - */ - chainId: number; - /** - * - * @type {string} - * @memberof Order - */ - orderHash: string; - /** - * - * @type {string} - * @memberof Order - */ - orderType: OrderOrderTypeEnum; -} -/** - * @export - */ -export declare const OrderOrderStatusEnum: { - readonly OPEN: "open"; - readonly EXPIRED: "expired"; - readonly ERROR: "error"; - readonly CANCELLED: "cancelled"; - readonly FILLED: "filled"; - readonly INSUFFICIENT_FUNDS: "insufficient-funds"; -}; -export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; -/** - * @export - */ -export declare const OrderOrderTypeEnum: { - readonly DUTCH: "dutch"; - readonly LIMIT: "limit"; -}; -export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; -/** - * Check if a given object implements the Order interface. - */ -export declare function instanceOfOrder(value: object): value is Order; -export declare function OrderFromJSON(json: any): Order; -export declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order; -export declare function OrderToJSON(json: any): Order; -export declare function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Order.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Order.d.ts.map b/dist/service/src/models/Order.d.ts.map deleted file mode 100644 index b14164a..0000000 --- a/dist/service/src/models/Order.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC/B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,oBAAoB,CAAC;IAClC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,kBAAkB,CAAC;CACjC;AAGD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAG5F;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAU7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAgBjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBhG"} \ No newline at end of file diff --git a/dist/service/src/models/Order.js b/dist/service/src/models/Order.js deleted file mode 100644 index f2ef374..0000000 --- a/dist/service/src/models/Order.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OrderOrderTypeEnum = exports.OrderOrderStatusEnum = void 0; -exports.instanceOfOrder = instanceOfOrder; -exports.OrderFromJSON = OrderFromJSON; -exports.OrderFromJSONTyped = OrderFromJSONTyped; -exports.OrderToJSON = OrderToJSON; -exports.OrderToJSONTyped = OrderToJSONTyped; -const RawDutchAmount_1 = require("./RawDutchAmount"); -/** - * @export - */ -exports.OrderOrderStatusEnum = { - OPEN: 'open', - EXPIRED: 'expired', - ERROR: 'error', - CANCELLED: 'cancelled', - FILLED: 'filled', - INSUFFICIENT_FUNDS: 'insufficient-funds' -}; -/** - * @export - */ -exports.OrderOrderTypeEnum = { - DUTCH: 'dutch', - LIMIT: 'limit' -}; -/** - * Check if a given object implements the Order interface. - */ -function instanceOfOrder(value) { - if (!('outputs' in value) || value['outputs'] === undefined) - return false; - if (!('encodedOrder' in value) || value['encodedOrder'] === undefined) - return false; - if (!('signature' in value) || value['signature'] === undefined) - return false; - if (!('input' in value) || value['input'] === undefined) - return false; - if (!('orderStatus' in value) || value['orderStatus'] === undefined) - return false; - if (!('chainId' in value) || value['chainId'] === undefined) - return false; - if (!('orderHash' in value) || value['orderHash'] === undefined) - return false; - if (!('orderType' in value) || value['orderType'] === undefined) - return false; - return true; -} -function OrderFromJSON(json) { - return OrderFromJSONTyped(json, false); -} -function OrderFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'outputs': (json['outputs'].map(RawDutchAmount_1.RawDutchAmountFromJSON)), - 'encodedOrder': json['encodedOrder'], - 'signature': json['signature'], - 'input': (0, RawDutchAmount_1.RawDutchAmountFromJSON)(json['input']), - 'orderStatus': json['orderStatus'], - 'chainId': json['chainId'], - 'orderHash': json['orderHash'], - 'orderType': json['orderType'], - }; -} -function OrderToJSON(json) { - return OrderToJSONTyped(json, false); -} -function OrderToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'quoteId': value['quoteId'], - 'outputs': (value['outputs'].map(RawDutchAmount_1.RawDutchAmountToJSON)), - 'encodedOrder': value['encodedOrder'], - 'signature': value['signature'], - 'input': (0, RawDutchAmount_1.RawDutchAmountToJSON)(value['input']), - 'orderStatus': value['orderStatus'], - 'chainId': value['chainId'], - 'orderHash': value['orderHash'], - 'orderType': value['orderType'], - }; -} -//# sourceMappingURL=Order.js.map \ No newline at end of file diff --git a/dist/service/src/models/Order.js.map b/dist/service/src/models/Order.js.map deleted file mode 100644 index c53ae6b..0000000 --- a/dist/service/src/models/Order.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../../src/service/src/models/Order.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAoGH,0CAUC;AAED,sCAEC;AAED,gDAgBC;AAED,kCAEC;AAED,4CAiBC;AAvJD,qDAK0B;AAiE1B;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;I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,OAAO,EAAE,IAAA,qCAAoB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/OrderInfo.d.ts b/dist/service/src/models/OrderInfo.d.ts deleted file mode 100644 index c361831..0000000 --- a/dist/service/src/models/OrderInfo.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Timestamp } from './Timestamp'; -import type { DutchAmount } from './DutchAmount'; -/** - * - * @export - * @interface OrderInfo - */ -export interface OrderInfo { - /** - * - * @type {number} - * @memberof OrderInfo - */ - chainId: number; - /** - * - * @type {string} - * @memberof OrderInfo - */ - permit2Address: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - reactor: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - swapper: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - nonce: string; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - deadline: Timestamp; - /** - * - * @type {string} - * @memberof OrderInfo - */ - additionalValidationContract: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - additionalValidationData: string; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - decayStartTime: Timestamp; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - decayEndTime: Timestamp; - /** - * - * @type {string} - * @memberof OrderInfo - */ - exclusiveFiller: string; - /** - * - * @type {number} - * @memberof OrderInfo - */ - exclusivityOverrideBps: number; - /** - * - * @type {DutchAmount} - * @memberof OrderInfo - */ - input: DutchAmount; - /** - * - * @type {Array} - * @memberof OrderInfo - */ - outputs: Array; -} -/** - * Check if a given object implements the OrderInfo interface. - */ -export declare function instanceOfOrderInfo(value: object): value is OrderInfo; -export declare function OrderInfoFromJSON(json: any): OrderInfo; -export declare function OrderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderInfo; -export declare function OrderInfoToJSON(json: any): OrderInfo; -export declare function OrderInfoToJSONTyped(value?: OrderInfo | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=OrderInfo.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/OrderInfo.d.ts.map b/dist/service/src/models/OrderInfo.d.ts.map deleted file mode 100644 index 0a2b671..0000000 --- a/dist/service/src/models/OrderInfo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderInfo.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/OrderInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAgBrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAqBzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsBxG"} \ No newline at end of file diff --git a/dist/service/src/models/OrderInfo.js b/dist/service/src/models/OrderInfo.js deleted file mode 100644 index adeb01f..0000000 --- a/dist/service/src/models/OrderInfo.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfOrderInfo = instanceOfOrderInfo; -exports.OrderInfoFromJSON = OrderInfoFromJSON; -exports.OrderInfoFromJSONTyped = OrderInfoFromJSONTyped; -exports.OrderInfoToJSON = OrderInfoToJSON; -exports.OrderInfoToJSONTyped = OrderInfoToJSONTyped; -const Timestamp_1 = require("./Timestamp"); -const DutchAmount_1 = require("./DutchAmount"); -/** - * Check if a given object implements the OrderInfo interface. - */ -function instanceOfOrderInfo(value) { - if (!('chainId' in value) || value['chainId'] === undefined) - return false; - if (!('permit2Address' in value) || value['permit2Address'] === undefined) - return false; - if (!('reactor' in value) || value['reactor'] === undefined) - return false; - if (!('swapper' in value) || value['swapper'] === undefined) - return false; - if (!('nonce' in value) || value['nonce'] === undefined) - return false; - if (!('deadline' in value) || value['deadline'] === undefined) - return false; - if (!('additionalValidationContract' in value) || value['additionalValidationContract'] === undefined) - return false; - if (!('additionalValidationData' in value) || value['additionalValidationData'] === undefined) - return false; - if (!('decayStartTime' in value) || value['decayStartTime'] === undefined) - return false; - if (!('decayEndTime' in value) || value['decayEndTime'] === undefined) - return false; - if (!('exclusiveFiller' in value) || value['exclusiveFiller'] === undefined) - return false; - if (!('exclusivityOverrideBps' in value) || value['exclusivityOverrideBps'] === undefined) - return false; - if (!('input' in value) || value['input'] === undefined) - return false; - if (!('outputs' in value) || value['outputs'] === undefined) - return false; - return true; -} -function OrderInfoFromJSON(json) { - return OrderInfoFromJSONTyped(json, false); -} -function OrderInfoFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainId': json['chainId'], - 'permit2Address': json['permit2Address'], - 'reactor': json['reactor'], - 'swapper': json['swapper'], - 'nonce': json['nonce'], - 'deadline': (0, Timestamp_1.TimestampFromJSON)(json['deadline']), - 'additionalValidationContract': json['additionalValidationContract'], - 'additionalValidationData': json['additionalValidationData'], - 'decayStartTime': (0, Timestamp_1.TimestampFromJSON)(json['decayStartTime']), - 'decayEndTime': (0, Timestamp_1.TimestampFromJSON)(json['decayEndTime']), - 'exclusiveFiller': json['exclusiveFiller'], - 'exclusivityOverrideBps': json['exclusivityOverrideBps'], - 'input': (0, DutchAmount_1.DutchAmountFromJSON)(json['input']), - 'outputs': (json['outputs'].map(DutchAmount_1.DutchAmountFromJSON)), - }; -} -function OrderInfoToJSON(json) { - return OrderInfoToJSONTyped(json, false); -} -function OrderInfoToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainId': value['chainId'], - 'permit2Address': value['permit2Address'], - 'reactor': value['reactor'], - 'swapper': value['swapper'], - 'nonce': value['nonce'], - 'deadline': (0, Timestamp_1.TimestampToJSON)(value['deadline']), - 'additionalValidationContract': value['additionalValidationContract'], - 'additionalValidationData': value['additionalValidationData'], - 'decayStartTime': (0, Timestamp_1.TimestampToJSON)(value['decayStartTime']), - 'decayEndTime': (0, Timestamp_1.TimestampToJSON)(value['decayEndTime']), - 'exclusiveFiller': value['exclusiveFiller'], - 'exclusivityOverrideBps': value['exclusivityOverrideBps'], - 'input': (0, DutchAmount_1.DutchAmountToJSON)(value['input']), - 'outputs': (value['outputs'].map(DutchAmount_1.DutchAmountToJSON)), - }; -} -//# sourceMappingURL=OrderInfo.js.map \ No newline at end of file diff --git a/dist/service/src/models/OrderInfo.js.map b/dist/service/src/models/OrderInfo.js.map deleted file mode 100644 index bffda96..0000000 --- a/dist/service/src/models/OrderInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderInfo.js","sourceRoot":"","sources":["../../../../src/service/src/models/OrderInfo.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiHH,kDAgBC;AAED,8CAEC;AAED,wDAqBC;AAED,0CAEC;AAED,oDAsBC;AApLD,2CAKqB;AAErB,+CAKuB;AA8FvB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KA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C7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC9C,8BAA8B,EAAE,KAAK,CAAC,8BAA8B,CAAC;QACrE,0BAA0B,EAAE,KAAK,CAAC,0BAA0B,CAAC;QAC7D,gBAAgB,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAC1D,cAAc,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACtD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,OAAO,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,SAAS,EAAE,CAAE,KAAK,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/OrderResponse.d.ts b/dist/service/src/models/OrderResponse.d.ts deleted file mode 100644 index 25daa77..0000000 --- a/dist/service/src/models/OrderResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Order } from './Order'; -/** - * - * @export - * @interface OrderResponse - */ -export interface OrderResponse { - /** - * - * @type {Array} - * @memberof OrderResponse - */ - data: Array; -} -/** - * Check if a given object implements the OrderResponse interface. - */ -export declare function instanceOfOrderResponse(value: object): value is OrderResponse; -export declare function OrderResponseFromJSON(json: any): OrderResponse; -export declare function OrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderResponse; -export declare function OrderResponseToJSON(json: any): OrderResponse; -export declare function OrderResponseToJSONTyped(value?: OrderResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=OrderResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/OrderResponse.d.ts.map b/dist/service/src/models/OrderResponse.d.ts.map deleted file mode 100644 index a9a5bb0..0000000 --- a/dist/service/src/models/OrderResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/OrderResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAG7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAQjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShH"} \ No newline at end of file diff --git a/dist/service/src/models/OrderResponse.js b/dist/service/src/models/OrderResponse.js deleted file mode 100644 index 76ad82f..0000000 --- a/dist/service/src/models/OrderResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfOrderResponse = instanceOfOrderResponse; -exports.OrderResponseFromJSON = OrderResponseFromJSON; -exports.OrderResponseFromJSONTyped = OrderResponseFromJSONTyped; -exports.OrderResponseToJSON = OrderResponseToJSON; -exports.OrderResponseToJSONTyped = OrderResponseToJSONTyped; -const Order_1 = require("./Order"); -/** - * Check if a given object implements the OrderResponse interface. - */ -function instanceOfOrderResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function OrderResponseFromJSON(json) { - return OrderResponseFromJSONTyped(json, false); -} -function OrderResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Order_1.OrderFromJSON)), - }; -} -function OrderResponseToJSON(json) { - return OrderResponseToJSONTyped(json, false); -} -function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Order_1.OrderToJSON)), - }; -} -//# sourceMappingURL=OrderResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/OrderResponse.js.map b/dist/service/src/models/OrderResponse.js.map deleted file mode 100644 index 01db2ae..0000000 --- a/dist/service/src/models/OrderResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/OrderResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,0DAGC;AAED,sDAEC;AAED,gEAQC;AAED,kDAEC;AAED,4DASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/OrderType.d.ts b/dist/service/src/models/OrderType.d.ts deleted file mode 100644 index 3697041..0000000 --- a/dist/service/src/models/OrderType.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const OrderType: { - readonly CLASSIC: "Classic"; - readonly DUTCH_LIMIT: "DutchLimit"; -}; -export type OrderType = typeof OrderType[keyof typeof OrderType]; -export declare function instanceOfOrderType(value: any): boolean; -export declare function OrderTypeFromJSON(json: any): OrderType; -export declare function OrderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderType; -export declare function OrderTypeToJSON(value?: OrderType | null): any; -export declare function OrderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderType; -//# sourceMappingURL=OrderType.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/OrderType.d.ts.map b/dist/service/src/models/OrderType.d.ts.map deleted file mode 100644 index b6020bb..0000000 --- a/dist/service/src/models/OrderType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderType.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/OrderType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/service/src/models/OrderType.js b/dist/service/src/models/OrderType.js deleted file mode 100644 index cdb2193..0000000 --- a/dist/service/src/models/OrderType.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OrderType = void 0; -exports.instanceOfOrderType = instanceOfOrderType; -exports.OrderTypeFromJSON = OrderTypeFromJSON; -exports.OrderTypeFromJSONTyped = OrderTypeFromJSONTyped; -exports.OrderTypeToJSON = OrderTypeToJSON; -exports.OrderTypeToJSONTyped = OrderTypeToJSONTyped; -/** - * - * @export - */ -exports.OrderType = { - CLASSIC: 'Classic', - DUTCH_LIMIT: 'DutchLimit' -}; -function instanceOfOrderType(value) { - for (const key in exports.OrderType) { - if (Object.prototype.hasOwnProperty.call(exports.OrderType, key)) { - if (exports.OrderType[key] === value) { - return true; - } - } - } - return false; -} -function OrderTypeFromJSON(json) { - return OrderTypeFromJSONTyped(json, false); -} -function OrderTypeFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function OrderTypeToJSON(value) { - return value; -} -function OrderTypeToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=OrderType.js.map \ No newline at end of file diff --git a/dist/service/src/models/OrderType.js.map b/dist/service/src/models/OrderType.js.map deleted file mode 100644 index 1bad655..0000000 --- a/dist/service/src/models/OrderType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderType.js","sourceRoot":"","sources":["../../../../src/service/src/models/OrderType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AApCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,YAAY;CACnB,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/PermitSingle.d.ts b/dist/service/src/models/PermitSingle.d.ts deleted file mode 100644 index 92bdeb6..0000000 --- a/dist/service/src/models/PermitSingle.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { TypedData } from './TypedData'; -/** - * - * @export - * @interface PermitSingle - */ -export interface PermitSingle { - /** - * - * @type {TypedData} - * @memberof PermitSingle - */ - typedData: TypedData; - /** - * The hash of the permit that needs to be signed - * @type {string} - * @memberof PermitSingle - */ - hash: string; -} -/** - * Check if a given object implements the PermitSingle interface. - */ -export declare function instanceOfPermitSingle(value: object): value is PermitSingle; -export declare function PermitSingleFromJSON(json: any): PermitSingle; -export declare function PermitSingleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermitSingle; -export declare function PermitSingleToJSON(json: any): PermitSingle; -export declare function PermitSingleToJSONTyped(value?: PermitSingle | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PermitSingle.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/PermitSingle.d.ts.map b/dist/service/src/models/PermitSingle.d.ts.map deleted file mode 100644 index 281c3d1..0000000 --- a/dist/service/src/models/PermitSingle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermitSingle.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/PermitSingle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/service/src/models/PermitSingle.js b/dist/service/src/models/PermitSingle.js deleted file mode 100644 index a0a32f3..0000000 --- a/dist/service/src/models/PermitSingle.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPermitSingle = instanceOfPermitSingle; -exports.PermitSingleFromJSON = PermitSingleFromJSON; -exports.PermitSingleFromJSONTyped = PermitSingleFromJSONTyped; -exports.PermitSingleToJSON = PermitSingleToJSON; -exports.PermitSingleToJSONTyped = PermitSingleToJSONTyped; -const TypedData_1 = require("./TypedData"); -/** - * Check if a given object implements the PermitSingle interface. - */ -function instanceOfPermitSingle(value) { - if (!('typedData' in value) || value['typedData'] === undefined) - return false; - if (!('hash' in value) || value['hash'] === undefined) - return false; - return true; -} -function PermitSingleFromJSON(json) { - return PermitSingleFromJSONTyped(json, false); -} -function PermitSingleFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'typedData': (0, TypedData_1.TypedDataFromJSON)(json['typedData']), - 'hash': json['hash'], - }; -} -function PermitSingleToJSON(json) { - return PermitSingleToJSONTyped(json, false); -} -function PermitSingleToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'typedData': (0, TypedData_1.TypedDataToJSON)(value['typedData']), - 'hash': value['hash'], - }; -} -//# sourceMappingURL=PermitSingle.js.map \ No newline at end of file diff --git a/dist/service/src/models/PermitSingle.js.map b/dist/service/src/models/PermitSingle.js.map deleted file mode 100644 index a25fe12..0000000 --- a/dist/service/src/models/PermitSingle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PermitSingle.js","sourceRoot":"","sources":["../../../../src/service/src/models/PermitSingle.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAjED,2CAKqB;AAsBrB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/PersonalSignRequest.d.ts b/dist/service/src/models/PersonalSignRequest.d.ts deleted file mode 100644 index 4831d92..0000000 --- a/dist/service/src/models/PersonalSignRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface PersonalSignRequest - */ -export interface PersonalSignRequest { - /** - * The message that needs to be signed - * @type {string} - * @memberof PersonalSignRequest - */ - message: string; -} -/** - * Check if a given object implements the PersonalSignRequest interface. - */ -export declare function instanceOfPersonalSignRequest(value: object): value is PersonalSignRequest; -export declare function PersonalSignRequestFromJSON(json: any): PersonalSignRequest; -export declare function PersonalSignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalSignRequest; -export declare function PersonalSignRequestToJSON(json: any): PersonalSignRequest; -export declare function PersonalSignRequestToJSONTyped(value?: PersonalSignRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PersonalSignRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/PersonalSignRequest.d.ts.map b/dist/service/src/models/PersonalSignRequest.d.ts.map deleted file mode 100644 index f7fbe04..0000000 --- a/dist/service/src/models/PersonalSignRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PersonalSignRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/PersonalSignRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/service/src/models/PersonalSignRequest.js b/dist/service/src/models/PersonalSignRequest.js deleted file mode 100644 index 097395a..0000000 --- a/dist/service/src/models/PersonalSignRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPersonalSignRequest = instanceOfPersonalSignRequest; -exports.PersonalSignRequestFromJSON = PersonalSignRequestFromJSON; -exports.PersonalSignRequestFromJSONTyped = PersonalSignRequestFromJSONTyped; -exports.PersonalSignRequestToJSON = PersonalSignRequestToJSON; -exports.PersonalSignRequestToJSONTyped = PersonalSignRequestToJSONTyped; -/** - * Check if a given object implements the PersonalSignRequest interface. - */ -function instanceOfPersonalSignRequest(value) { - if (!('message' in value) || value['message'] === undefined) - return false; - return true; -} -function PersonalSignRequestFromJSON(json) { - return PersonalSignRequestFromJSONTyped(json, false); -} -function PersonalSignRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'message': json['message'], - }; -} -function PersonalSignRequestToJSON(json) { - return PersonalSignRequestToJSONTyped(json, false); -} -function PersonalSignRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'message': value['message'], - }; -} -//# sourceMappingURL=PersonalSignRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/PersonalSignRequest.js.map b/dist/service/src/models/PersonalSignRequest.js.map deleted file mode 100644 index 85994c0..0000000 --- a/dist/service/src/models/PersonalSignRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PersonalSignRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/PersonalSignRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAnCD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/PreparedTx.d.ts b/dist/service/src/models/PreparedTx.d.ts deleted file mode 100644 index c7288a1..0000000 --- a/dist/service/src/models/PreparedTx.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MethodParameters } from './MethodParameters'; -/** - * - * @export - * @interface PreparedTx - */ -export interface PreparedTx { - /** - * - * @type {string} - * @memberof PreparedTx - */ - type: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof PreparedTx - */ - label: { - [key: string]: string | undefined; - }; - /** - * - * @type {number} - * @memberof PreparedTx - */ - gasUseEstimate: number; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof PreparedTx - */ - gasFeeEstimate: { - [key: string]: string | undefined; - }; - /** - * - * @type {MethodParameters} - * @memberof PreparedTx - */ - methodParameters: MethodParameters; -} -/** - * Check if a given object implements the PreparedTx interface. - */ -export declare function instanceOfPreparedTx(value: object): value is PreparedTx; -export declare function PreparedTxFromJSON(json: any): PreparedTx; -export declare function PreparedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreparedTx; -export declare function PreparedTxToJSON(json: any): PreparedTx; -export declare function PreparedTxToJSONTyped(value?: PreparedTx | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PreparedTx.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/PreparedTx.d.ts.map b/dist/service/src/models/PreparedTx.d.ts.map deleted file mode 100644 index 2dc492f..0000000 --- a/dist/service/src/models/PreparedTx.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PreparedTx.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/PreparedTx.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAY3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1G"} \ No newline at end of file diff --git a/dist/service/src/models/PreparedTx.js b/dist/service/src/models/PreparedTx.js deleted file mode 100644 index 283a6b5..0000000 --- a/dist/service/src/models/PreparedTx.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPreparedTx = instanceOfPreparedTx; -exports.PreparedTxFromJSON = PreparedTxFromJSON; -exports.PreparedTxFromJSONTyped = PreparedTxFromJSONTyped; -exports.PreparedTxToJSON = PreparedTxToJSON; -exports.PreparedTxToJSONTyped = PreparedTxToJSONTyped; -const MethodParameters_1 = require("./MethodParameters"); -/** - * Check if a given object implements the PreparedTx interface. - */ -function instanceOfPreparedTx(value) { - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('label' in value) || value['label'] === undefined) - return false; - if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) - return false; - if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) - return false; - if (!('methodParameters' in value) || value['methodParameters'] === undefined) - return false; - return true; -} -function PreparedTxFromJSON(json) { - return PreparedTxFromJSONTyped(json, false); -} -function PreparedTxFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'type': json['type'], - 'label': json['label'], - 'gasUseEstimate': json['gasUseEstimate'], - 'gasFeeEstimate': json['gasFeeEstimate'], - 'methodParameters': (0, MethodParameters_1.MethodParametersFromJSON)(json['methodParameters']), - }; -} -function PreparedTxToJSON(json) { - return PreparedTxToJSONTyped(json, false); -} -function PreparedTxToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'type': value['type'], - 'label': value['label'], - 'gasUseEstimate': value['gasUseEstimate'], - 'gasFeeEstimate': value['gasFeeEstimate'], - 'methodParameters': (0, MethodParameters_1.MethodParametersToJSON)(value['methodParameters']), - }; -} -//# sourceMappingURL=PreparedTx.js.map \ No newline at end of file diff --git a/dist/service/src/models/PreparedTx.js.map b/dist/service/src/models/PreparedTx.js.map deleted file mode 100644 index 0bd27df..0000000 --- a/dist/service/src/models/PreparedTx.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PreparedTx.js","sourceRoot":"","sources":["../../../../src/service/src/models/PreparedTx.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,oDAOC;AAED,gDAEC;AAED,0DAYC;AAED,4CAEC;AAED,sDAaC;AA5FD,yDAK4B;AAwC5B;;GAEG;AACH,SAAgB,oBAAoB,C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AC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,kBAAkB,EAAE,IAAA,yCAAsB,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Price.d.ts b/dist/service/src/models/Price.d.ts deleted file mode 100644 index 1396306..0000000 --- a/dist/service/src/models/Price.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface Price - */ -export interface Price { - /** - * - * @type {Symbol} - * @memberof Price - */ - symbol: Symbol; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Price - */ - value: { - [key: string]: string | undefined; - }; - /** - * - * @type {Timestamp} - * @memberof Price - */ - timestamp: Timestamp; -} -/** - * Check if a given object implements the Price interface. - */ -export declare function instanceOfPrice(value: object): value is Price; -export declare function PriceFromJSON(json: any): Price; -export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price; -export declare function PriceToJSON(json: any): Price; -export declare function PriceToJSONTyped(value?: Price | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Price.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Price.d.ts.map b/dist/service/src/models/Price.d.ts.map deleted file mode 100644 index 859ba40..0000000 --- a/dist/service/src/models/Price.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Price.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAK7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAUjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhG"} \ No newline at end of file diff --git a/dist/service/src/models/Price.js b/dist/service/src/models/Price.js deleted file mode 100644 index d47acee..0000000 --- a/dist/service/src/models/Price.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPrice = instanceOfPrice; -exports.PriceFromJSON = PriceFromJSON; -exports.PriceFromJSONTyped = PriceFromJSONTyped; -exports.PriceToJSON = PriceToJSON; -exports.PriceToJSONTyped = PriceToJSONTyped; -const Symbol_1 = require("./Symbol"); -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the Price interface. - */ -function instanceOfPrice(value) { - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('value' in value) || value['value'] === undefined) - return false; - if (!('timestamp' in value) || value['timestamp'] === undefined) - return false; - return true; -} -function PriceFromJSON(json) { - return PriceFromJSONTyped(json, false); -} -function PriceFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'value': json['value'], - 'timestamp': (0, Timestamp_1.TimestampFromJSON)(json['timestamp']), - }; -} -function PriceToJSON(json) { - return PriceToJSONTyped(json, false); -} -function PriceToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'value': value['value'], - 'timestamp': (0, Timestamp_1.TimestampToJSON)(value['timestamp']), - }; -} -//# sourceMappingURL=Price.js.map \ No newline at end of file diff --git a/dist/service/src/models/Price.js.map b/dist/service/src/models/Price.js.map deleted file mode 100644 index dac7b16..0000000 --- a/dist/service/src/models/Price.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/service/src/models/Price.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiDH,0CAKC;AAED,sCAEC;AAED,gDAUC;AAED,kCAEC;AAED,4CAWC;AAnFD,qCAKkB;AAElB,2CAKqB;AA8BrB;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC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AAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/PriceListResponse.d.ts b/dist/service/src/models/PriceListResponse.d.ts deleted file mode 100644 index 1853f58..0000000 --- a/dist/service/src/models/PriceListResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Price } from './Price'; -/** - * - * @export - * @interface PriceListResponse - */ -export interface PriceListResponse { - /** - * - * @type {Array} - * @memberof PriceListResponse - */ - data: Array; -} -/** - * Check if a given object implements the PriceListResponse interface. - */ -export declare function instanceOfPriceListResponse(value: object): value is PriceListResponse; -export declare function PriceListResponseFromJSON(json: any): PriceListResponse; -export declare function PriceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceListResponse; -export declare function PriceListResponseToJSON(json: any): PriceListResponse; -export declare function PriceListResponseToJSONTyped(value?: PriceListResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PriceListResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/PriceListResponse.d.ts.map b/dist/service/src/models/PriceListResponse.d.ts.map deleted file mode 100644 index 734c2fd..0000000 --- a/dist/service/src/models/PriceListResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PriceListResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/PriceListResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/service/src/models/PriceListResponse.js b/dist/service/src/models/PriceListResponse.js deleted file mode 100644 index 8406171..0000000 --- a/dist/service/src/models/PriceListResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPriceListResponse = instanceOfPriceListResponse; -exports.PriceListResponseFromJSON = PriceListResponseFromJSON; -exports.PriceListResponseFromJSONTyped = PriceListResponseFromJSONTyped; -exports.PriceListResponseToJSON = PriceListResponseToJSON; -exports.PriceListResponseToJSONTyped = PriceListResponseToJSONTyped; -const Price_1 = require("./Price"); -/** - * Check if a given object implements the PriceListResponse interface. - */ -function instanceOfPriceListResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function PriceListResponseFromJSON(json) { - return PriceListResponseFromJSONTyped(json, false); -} -function PriceListResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Price_1.PriceFromJSON)), - }; -} -function PriceListResponseToJSON(json) { - return PriceListResponseToJSONTyped(json, false); -} -function PriceListResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Price_1.PriceToJSON)), - }; -} -//# sourceMappingURL=PriceListResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/PriceListResponse.js.map b/dist/service/src/models/PriceListResponse.js.map deleted file mode 100644 index a4aa4a0..0000000 --- a/dist/service/src/models/PriceListResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PriceListResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/PriceListResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequest.d.ts b/dist/service/src/models/QuoteRequest.d.ts deleted file mode 100644 index e233c39..0000000 --- a/dist/service/src/models/QuoteRequest.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { OrderType } from './OrderType'; -import type { QuoteRequestOptions } from './QuoteRequestOptions'; -import type { TradeType } from './TradeType'; -/** - * - * @export - * @interface QuoteRequest - */ -export interface QuoteRequest { - /** - * - * @type {string} - * @memberof QuoteRequest - */ - requestId?: string; - /** - * - * @type {OrderType} - * @memberof QuoteRequest - */ - type?: OrderType; - /** - * - * @type {TradeType} - * @memberof QuoteRequest - */ - tradeType: TradeType; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - inputToken: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - outputToken: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - amount: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - recipient: string; - /** - * - * @type {QuoteRequestOptions} - * @memberof QuoteRequest - */ - options?: QuoteRequestOptions; -} -/** - * Check if a given object implements the QuoteRequest interface. - */ -export declare function instanceOfQuoteRequest(value: object): value is QuoteRequest; -export declare function QuoteRequestFromJSON(json: any): QuoteRequest; -export declare function QuoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequest; -export declare function QuoteRequestToJSON(json: any): QuoteRequest; -export declare function QuoteRequestToJSONTyped(value?: QuoteRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=QuoteRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequest.d.ts.map b/dist/service/src/models/QuoteRequest.d.ts.map deleted file mode 100644 index 33c17d0..0000000 --- a/dist/service/src/models/QuoteRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAO3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAe/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB9G"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequest.js b/dist/service/src/models/QuoteRequest.js deleted file mode 100644 index 1a1de65..0000000 --- a/dist/service/src/models/QuoteRequest.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfQuoteRequest = instanceOfQuoteRequest; -exports.QuoteRequestFromJSON = QuoteRequestFromJSON; -exports.QuoteRequestFromJSONTyped = QuoteRequestFromJSONTyped; -exports.QuoteRequestToJSON = QuoteRequestToJSON; -exports.QuoteRequestToJSONTyped = QuoteRequestToJSONTyped; -const OrderType_1 = require("./OrderType"); -const QuoteRequestOptions_1 = require("./QuoteRequestOptions"); -const TradeType_1 = require("./TradeType"); -/** - * Check if a given object implements the QuoteRequest interface. - */ -function instanceOfQuoteRequest(value) { - if (!('tradeType' in value) || value['tradeType'] === undefined) - return false; - if (!('inputToken' in value) || value['inputToken'] === undefined) - return false; - if (!('outputToken' in value) || value['outputToken'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('recipient' in value) || value['recipient'] === undefined) - return false; - return true; -} -function QuoteRequestFromJSON(json) { - return QuoteRequestFromJSONTyped(json, false); -} -function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'requestId': json['requestId'] == null ? undefined : json['requestId'], - 'type': json['type'] == null ? undefined : (0, OrderType_1.OrderTypeFromJSON)(json['type']), - 'tradeType': (0, TradeType_1.TradeTypeFromJSON)(json['tradeType']), - 'inputToken': json['inputToken'], - 'outputToken': json['outputToken'], - 'amount': json['amount'], - 'recipient': json['recipient'], - 'options': json['options'] == null ? undefined : (0, QuoteRequestOptions_1.QuoteRequestOptionsFromJSON)(json['options']), - }; -} -function QuoteRequestToJSON(json) { - return QuoteRequestToJSONTyped(json, false); -} -function QuoteRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'requestId': value['requestId'], - 'type': (0, OrderType_1.OrderTypeToJSON)(value['type']), - 'tradeType': (0, TradeType_1.TradeTypeToJSON)(value['tradeType']), - 'inputToken': value['inputToken'], - 'outputToken': value['outputToken'], - 'amount': value['amount'], - 'recipient': value['recipient'], - 'options': (0, QuoteRequestOptions_1.QuoteRequestOptionsToJSON)(value['options']), - }; -} -//# sourceMappingURL=QuoteRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequest.js.map b/dist/service/src/models/QuoteRequest.js.map deleted file mode 100644 index f852ad5..0000000 --- a/dist/service/src/models/QuoteRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsFH,wDAOC;AAED,oDAEC;AAED,8DAeC;AAED,gDAEC;AAED,0DAgBC;AApID,2CAKqB;AAErB,+DAK+B;AAE/B,2CAKqB;AA4DrB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACl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B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,SAAS,EAAE,IAAA,+CAAyB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequestOptions.d.ts b/dist/service/src/models/QuoteRequestOptions.d.ts deleted file mode 100644 index 6500f7b..0000000 --- a/dist/service/src/models/QuoteRequestOptions.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface QuoteRequestOptions - */ -export interface QuoteRequestOptions { - /** - * - * @type {boolean} - * @memberof QuoteRequestOptions - */ - dryRun?: boolean; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - slippageTolerance?: string; - /** - * - * @type {boolean} - * @memberof QuoteRequestOptions - */ - useSyntheticQuotes?: boolean; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitSignature?: string; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitNonce?: string; - /** - * - * @type {number} - * @memberof QuoteRequestOptions - */ - permitExpiration?: number; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitAmount?: string; - /** - * - * @type {number} - * @memberof QuoteRequestOptions - */ - permitSigDeadline?: number; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - quoteId?: string; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - encodedOrder?: string; -} -/** - * Check if a given object implements the QuoteRequestOptions interface. - */ -export declare function instanceOfQuoteRequestOptions(value: object): value is QuoteRequestOptions; -export declare function QuoteRequestOptionsFromJSON(json: any): QuoteRequestOptions; -export declare function QuoteRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequestOptions; -export declare function QuoteRequestOptionsToJSON(json: any): QuoteRequestOptions; -export declare function QuoteRequestOptionsToJSONTyped(value?: QuoteRequestOptions | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=QuoteRequestOptions.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequestOptions.d.ts.map b/dist/service/src/models/QuoteRequestOptions.d.ts.map deleted file mode 100644 index 3087e0e..0000000 --- a/dist/service/src/models/QuoteRequestOptions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteRequestOptions.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteRequestOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAiB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkB5H"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequestOptions.js b/dist/service/src/models/QuoteRequestOptions.js deleted file mode 100644 index 2f1f6bc..0000000 --- a/dist/service/src/models/QuoteRequestOptions.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfQuoteRequestOptions = instanceOfQuoteRequestOptions; -exports.QuoteRequestOptionsFromJSON = QuoteRequestOptionsFromJSON; -exports.QuoteRequestOptionsFromJSONTyped = QuoteRequestOptionsFromJSONTyped; -exports.QuoteRequestOptionsToJSON = QuoteRequestOptionsToJSON; -exports.QuoteRequestOptionsToJSONTyped = QuoteRequestOptionsToJSONTyped; -/** - * Check if a given object implements the QuoteRequestOptions interface. - */ -function instanceOfQuoteRequestOptions(value) { - return true; -} -function QuoteRequestOptionsFromJSON(json) { - return QuoteRequestOptionsFromJSONTyped(json, false); -} -function QuoteRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'dryRun': json['dryRun'] == null ? undefined : json['dryRun'], - 'slippageTolerance': json['slippageTolerance'] == null ? undefined : json['slippageTolerance'], - 'useSyntheticQuotes': json['useSyntheticQuotes'] == null ? undefined : json['useSyntheticQuotes'], - 'permitSignature': json['permitSignature'] == null ? undefined : json['permitSignature'], - 'permitNonce': json['permitNonce'] == null ? undefined : json['permitNonce'], - 'permitExpiration': json['permitExpiration'] == null ? undefined : json['permitExpiration'], - 'permitAmount': json['permitAmount'] == null ? undefined : json['permitAmount'], - 'permitSigDeadline': json['permitSigDeadline'] == null ? undefined : json['permitSigDeadline'], - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], - }; -} -function QuoteRequestOptionsToJSON(json) { - return QuoteRequestOptionsToJSONTyped(json, false); -} -function QuoteRequestOptionsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'dryRun': value['dryRun'], - 'slippageTolerance': value['slippageTolerance'], - 'useSyntheticQuotes': value['useSyntheticQuotes'], - 'permitSignature': value['permitSignature'], - 'permitNonce': value['permitNonce'], - 'permitExpiration': value['permitExpiration'], - 'permitAmount': value['permitAmount'], - 'permitSigDeadline': value['permitSigDeadline'], - 'quoteId': value['quoteId'], - 'encodedOrder': value['encodedOrder'], - }; -} -//# sourceMappingURL=QuoteRequestOptions.js.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteRequestOptions.js.map b/dist/service/src/models/QuoteRequestOptions.js.map deleted file mode 100644 index 9eb4c88..0000000 --- a/dist/service/src/models/QuoteRequestOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteRequestOptions.js","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteRequestOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0EH,sEAEC;AAED,kEAEC;AAED,4EAiBC;AAED,8DAEC;AAED,wEAkBC;AApDD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC7D,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC;QAC9F,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;QACjG,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACxF,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5E,kBAAkB,EAAE,IAAI,C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C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;KACxC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteResponse.d.ts b/dist/service/src/models/QuoteResponse.d.ts deleted file mode 100644 index 70b02c5..0000000 --- a/dist/service/src/models/QuoteResponse.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { OrderType } from './OrderType'; -import type { TypedData } from './TypedData'; -import type { RouteItem } from './RouteItem'; -import type { OrderInfo } from './OrderInfo'; -import type { MethodParameters } from './MethodParameters'; -import type { TradeType } from './TradeType'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface QuoteResponse - */ -export interface QuoteResponse { - /** - * - * @type {OrderType} - * @memberof QuoteResponse - */ - type: OrderType; - /** - * - * @type {TradeType} - * @memberof QuoteResponse - */ - tradeType: TradeType; - /** - * - * @type {Timestamp} - * @memberof QuoteResponse - */ - time: Timestamp; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - amount: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - quote: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - quoteId: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - gasPrice: { - [key: string]: string | undefined; - }; - /** - * - * @type {number} - * @memberof QuoteResponse - */ - gasUseEstimate: number; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - gasFeeEstimate: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - routeString: string; - /** - * - * @type {MethodParameters} - * @memberof QuoteResponse - */ - methodParameters?: MethodParameters; - /** - * - * @type {Array} - * @memberof QuoteResponse - */ - route: Array; - /** - * - * @type {OrderInfo} - * @memberof QuoteResponse - */ - orderInfo?: OrderInfo; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - encodedOrder?: string; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - orderHash?: string; - /** - * - * @type {TypedData} - * @memberof QuoteResponse - */ - permitData?: TypedData; -} -/** - * Check if a given object implements the QuoteResponse interface. - */ -export declare function instanceOfQuoteResponse(value: object): value is QuoteResponse; -export declare function QuoteResponseFromJSON(json: any): QuoteResponse; -export declare function QuoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteResponse; -export declare function QuoteResponseToJSON(json: any): QuoteResponse; -export declare function QuoteResponseToJSONTyped(value?: QuoteResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=QuoteResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteResponse.d.ts.map b/dist/service/src/models/QuoteResponse.d.ts.map deleted file mode 100644 index a16dcf6..0000000 --- a/dist/service/src/models/QuoteResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;A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,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAuBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwBhH"} \ No newline at end of file diff --git a/dist/service/src/models/QuoteResponse.js b/dist/service/src/models/QuoteResponse.js deleted file mode 100644 index 313bb94..0000000 --- a/dist/service/src/models/QuoteResponse.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfQuoteResponse = instanceOfQuoteResponse; -exports.QuoteResponseFromJSON = QuoteResponseFromJSON; -exports.QuoteResponseFromJSONTyped = QuoteResponseFromJSONTyped; -exports.QuoteResponseToJSON = QuoteResponseToJSON; -exports.QuoteResponseToJSONTyped = QuoteResponseToJSONTyped; -const OrderType_1 = require("./OrderType"); -const TypedData_1 = require("./TypedData"); -const RouteItem_1 = require("./RouteItem"); -const OrderInfo_1 = require("./OrderInfo"); -const MethodParameters_1 = require("./MethodParameters"); -const TradeType_1 = require("./TradeType"); -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the QuoteResponse interface. - */ -function instanceOfQuoteResponse(value) { - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('tradeType' in value) || value['tradeType'] === undefined) - return false; - if (!('time' in value) || value['time'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('quote' in value) || value['quote'] === undefined) - return false; - if (!('quoteId' in value) || value['quoteId'] === undefined) - return false; - if (!('gasPrice' in value) || value['gasPrice'] === undefined) - return false; - if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) - return false; - if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) - return false; - if (!('routeString' in value) || value['routeString'] === undefined) - return false; - if (!('route' in value) || value['route'] === undefined) - return false; - return true; -} -function QuoteResponseFromJSON(json) { - return QuoteResponseFromJSONTyped(json, false); -} -function QuoteResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'type': (0, OrderType_1.OrderTypeFromJSON)(json['type']), - 'tradeType': (0, TradeType_1.TradeTypeFromJSON)(json['tradeType']), - 'time': (0, Timestamp_1.TimestampFromJSON)(json['time']), - 'amount': json['amount'], - 'quote': json['quote'], - 'quoteId': json['quoteId'], - 'gasPrice': json['gasPrice'], - 'gasUseEstimate': json['gasUseEstimate'], - 'gasFeeEstimate': json['gasFeeEstimate'], - 'routeString': json['routeString'], - 'methodParameters': json['methodParameters'] == null ? undefined : (0, MethodParameters_1.MethodParametersFromJSON)(json['methodParameters']), - 'route': (json['route'].map(RouteItem_1.RouteItemFromJSON)), - 'orderInfo': json['orderInfo'] == null ? undefined : (0, OrderInfo_1.OrderInfoFromJSON)(json['orderInfo']), - 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], - 'orderHash': json['orderHash'] == null ? undefined : json['orderHash'], - 'permitData': json['permitData'] == null ? undefined : (0, TypedData_1.TypedDataFromJSON)(json['permitData']), - }; -} -function QuoteResponseToJSON(json) { - return QuoteResponseToJSONTyped(json, false); -} -function QuoteResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'type': (0, OrderType_1.OrderTypeToJSON)(value['type']), - 'tradeType': (0, TradeType_1.TradeTypeToJSON)(value['tradeType']), - 'time': (0, Timestamp_1.TimestampToJSON)(value['time']), - 'amount': value['amount'], - 'quote': value['quote'], - 'quoteId': value['quoteId'], - 'gasPrice': value['gasPrice'], - 'gasUseEstimate': value['gasUseEstimate'], - 'gasFeeEstimate': value['gasFeeEstimate'], - 'routeString': value['routeString'], - 'methodParameters': (0, MethodParameters_1.MethodParametersToJSON)(value['methodParameters']), - 'route': (value['route'].map(RouteItem_1.RouteItemToJSON)), - 'orderInfo': (0, OrderInfo_1.OrderInfoToJSON)(value['orderInfo']), - 'encodedOrder': value['encodedOrder'], - 'orderHash': value['orderHash'], - 'permitData': (0, TypedData_1.TypedDataToJSON)(value['permitData']), - }; -} -//# sourceMappingURL=QuoteResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/QuoteResponse.js.map b/dist/service/src/models/QuoteResponse.js.map deleted file mode 100644 index c40aa26..0000000 --- a/dist/service/src/models/QuoteResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuoteResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/QuoteResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkKH,0DAaC;AAED,sDAEC;AAED,gEAuBC;AAED,kDAEC;AAED,4DAwBC;AAtOD,2CAKqB;AAErB,2CAKqB;AAErB,2CAKqB;AAErB,2CAKqB;AAErB,yDAK4B;AAE5B,2CAKqB;AAErB,2CAKqB;AA4GrB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAA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ode 100644 index 12887a8..0000000 --- a/dist/service/src/models/RawDutchAmount.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface RawDutchAmount - */ -export interface RawDutchAmount { - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - token: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - startAmount: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - endAmount: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - recipient?: string; -} -/** - * Check if a given object implements the RawDutchAmount interface. - */ -export declare function instanceOfRawDutchAmount(value: object): value is RawDutchAmount; -export declare function RawDutchAmountFromJSON(json: any): RawDutchAmount; -export declare function RawDutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): RawDutchAmount; -export declare function RawDutchAmountToJSON(json: any): RawDutchAmount; -export declare function RawDutchAmountToJSONTyped(value?: RawDutchAmount | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=RawDutchAmount.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/RawDutchAmount.d.ts.map b/dist/service/src/models/RawDutchAmount.d.ts.map deleted file mode 100644 index e763911..0000000 --- a/dist/service/src/models/RawDutchAmount.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RawDutchAmount.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/RawDutchAmount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAK/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAWnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"} \ No newline at end of file diff --git a/dist/service/src/models/RawDutchAmount.js b/dist/service/src/models/RawDutchAmount.js deleted file mode 100644 index a36fe38..0000000 --- a/dist/service/src/models/RawDutchAmount.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfRawDutchAmount = instanceOfRawDutchAmount; -exports.RawDutchAmountFromJSON = RawDutchAmountFromJSON; -exports.RawDutchAmountFromJSONTyped = RawDutchAmountFromJSONTyped; -exports.RawDutchAmountToJSON = RawDutchAmountToJSON; -exports.RawDutchAmountToJSONTyped = RawDutchAmountToJSONTyped; -/** - * Check if a given object implements the RawDutchAmount interface. - */ -function instanceOfRawDutchAmount(value) { - if (!('token' in value) || value['token'] === undefined) - return false; - if (!('startAmount' in value) || value['startAmount'] === undefined) - return false; - if (!('endAmount' in value) || value['endAmount'] === undefined) - return false; - return true; -} -function RawDutchAmountFromJSON(json) { - return RawDutchAmountFromJSONTyped(json, false); -} -function RawDutchAmountFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'token': json['token'], - 'startAmount': json['startAmount'], - 'endAmount': json['endAmount'], - 'recipient': json['recipient'] == null ? undefined : json['recipient'], - }; -} -function RawDutchAmountToJSON(json) { - return RawDutchAmountToJSONTyped(json, false); -} -function RawDutchAmountToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'token': value['token'], - 'startAmount': value['startAmount'], - 'endAmount': value['endAmount'], - 'recipient': value['recipient'], - }; -} -//# sourceMappingURL=RawDutchAmount.js.map \ No newline at end of file diff --git a/dist/service/src/models/RawDutchAmount.js.map b/dist/service/src/models/RawDutchAmount.js.map deleted file mode 100644 index cdf9a0d..0000000 --- a/dist/service/src/models/RawDutchAmount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RawDutchAmount.js","sourceRoot":"","sources":["../../../../src/service/src/models/RawDutchAmount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,4DAKC;AAED,wDAEC;AAED,kEAWC;AAED,oDAEC;AAED,8DAYC;AA3CD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/RouteItem.d.ts b/dist/service/src/models/RouteItem.d.ts deleted file mode 100644 index d300551..0000000 --- a/dist/service/src/models/RouteItem.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface RouteItem - */ -export interface RouteItem { - /** - * - * @type {string} - * @memberof RouteItem - */ - address: string; - /** - * - * @type {Token} - * @memberof RouteItem - */ - tokenIn: Token; - /** - * - * @type {Token} - * @memberof RouteItem - */ - tokenOut: Token; - /** - * - * @type {string} - * @memberof RouteItem - */ - fee: string; -} -/** - * Check if a given object implements the RouteItem interface. - */ -export declare function instanceOfRouteItem(value: object): value is RouteItem; -export declare function RouteItemFromJSON(json: any): RouteItem; -export declare function RouteItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteItem; -export declare function RouteItemToJSON(json: any): RouteItem; -export declare function RouteItemToJSONTyped(value?: RouteItem | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=RouteItem.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/RouteItem.d.ts.map b/dist/service/src/models/RouteItem.d.ts.map deleted file mode 100644 index 8ddf797..0000000 --- a/dist/service/src/models/RouteItem.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RouteItem.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/RouteItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAWzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxG"} \ No newline at end of file diff --git a/dist/service/src/models/RouteItem.js b/dist/service/src/models/RouteItem.js deleted file mode 100644 index dbee30c..0000000 --- a/dist/service/src/models/RouteItem.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfRouteItem = instanceOfRouteItem; -exports.RouteItemFromJSON = RouteItemFromJSON; -exports.RouteItemFromJSONTyped = RouteItemFromJSONTyped; -exports.RouteItemToJSON = RouteItemToJSON; -exports.RouteItemToJSONTyped = RouteItemToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the RouteItem interface. - */ -function instanceOfRouteItem(value) { - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('tokenIn' in value) || value['tokenIn'] === undefined) - return false; - if (!('tokenOut' in value) || value['tokenOut'] === undefined) - return false; - if (!('fee' in value) || value['fee'] === undefined) - return false; - return true; -} -function RouteItemFromJSON(json) { - return RouteItemFromJSONTyped(json, false); -} -function RouteItemFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'address': json['address'], - 'tokenIn': (0, Token_1.TokenFromJSON)(json['tokenIn']), - 'tokenOut': (0, Token_1.TokenFromJSON)(json['tokenOut']), - 'fee': json['fee'], - }; -} -function RouteItemToJSON(json) { - return RouteItemToJSONTyped(json, false); -} -function RouteItemToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'address': value['address'], - 'tokenIn': (0, Token_1.TokenToJSON)(value['tokenIn']), - 'tokenOut': (0, Token_1.TokenToJSON)(value['tokenOut']), - 'fee': value['fee'], - }; -} -//# sourceMappingURL=RouteItem.js.map \ No newline at end of file diff --git a/dist/service/src/models/RouteItem.js.map b/dist/service/src/models/RouteItem.js.map deleted file mode 100644 index 50b8db6..0000000 --- a/dist/service/src/models/RouteItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RouteItem.js","sourceRoot":"","sources":["../../../../src/service/src/models/RouteItem.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,kDAMC;AAED,8CAEC;AAED,wDAWC;AAED,0CAEC;AAED,oDAYC;AAnFD,mCAKiB;AAkCjB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,UAAU,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;KACrB,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC,UAAU,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Scoreboard.d.ts b/dist/service/src/models/Scoreboard.d.ts deleted file mode 100644 index 7f593da..0000000 --- a/dist/service/src/models/Scoreboard.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ScoreboardItem } from './ScoreboardItem'; -/** - * - * @export - * @interface Scoreboard - */ -export interface Scoreboard { - /** - * - * @type {Array} - * @memberof Scoreboard - */ - items: Array; -} -/** - * Check if a given object implements the Scoreboard interface. - */ -export declare function instanceOfScoreboard(value: object): value is Scoreboard; -export declare function ScoreboardFromJSON(json: any): Scoreboard; -export declare function ScoreboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Scoreboard; -export declare function ScoreboardToJSON(json: any): Scoreboard; -export declare function ScoreboardToJSONTyped(value?: Scoreboard | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Scoreboard.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Scoreboard.d.ts.map b/dist/service/src/models/Scoreboard.d.ts.map deleted file mode 100644 index fb7b177..0000000 --- a/dist/service/src/models/Scoreboard.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scoreboard.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Scoreboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"} \ No newline at end of file diff --git a/dist/service/src/models/Scoreboard.js b/dist/service/src/models/Scoreboard.js deleted file mode 100644 index 66c2ade..0000000 --- a/dist/service/src/models/Scoreboard.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfScoreboard = instanceOfScoreboard; -exports.ScoreboardFromJSON = ScoreboardFromJSON; -exports.ScoreboardFromJSONTyped = ScoreboardFromJSONTyped; -exports.ScoreboardToJSON = ScoreboardToJSON; -exports.ScoreboardToJSONTyped = ScoreboardToJSONTyped; -const ScoreboardItem_1 = require("./ScoreboardItem"); -/** - * Check if a given object implements the Scoreboard interface. - */ -function instanceOfScoreboard(value) { - if (!('items' in value) || value['items'] === undefined) - return false; - return true; -} -function ScoreboardFromJSON(json) { - return ScoreboardFromJSONTyped(json, false); -} -function ScoreboardFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'items': (json['items'].map(ScoreboardItem_1.ScoreboardItemFromJSON)), - }; -} -function ScoreboardToJSON(json) { - return ScoreboardToJSONTyped(json, false); -} -function ScoreboardToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'items': (value['items'].map(ScoreboardItem_1.ScoreboardItemToJSON)), - }; -} -//# sourceMappingURL=Scoreboard.js.map \ No newline at end of file diff --git a/dist/service/src/models/Scoreboard.js.map b/dist/service/src/models/Scoreboard.js.map deleted file mode 100644 index ef886f1..0000000 --- a/dist/service/src/models/Scoreboard.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scoreboard.js","sourceRoot":"","sources":["../../../../src/service/src/models/Scoreboard.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oDAGC;AAED,gDAEC;AAED,0DAQC;AAED,4CAEC;AAED,sDASC;AAxDD,qDAK0B;AAgB1B;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,uCAAsB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,qCAAoB,CAAC,CAAC;KACtE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/ScoreboardItem.d.ts b/dist/service/src/models/ScoreboardItem.d.ts deleted file mode 100644 index fe5409c..0000000 --- a/dist/service/src/models/ScoreboardItem.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ScoreboardItem - */ -export interface ScoreboardItem { - /** - * - * @type {string} - * @memberof ScoreboardItem - */ - address: string; - /** - * - * @type {number} - * @memberof ScoreboardItem - */ - points: number; -} -/** - * Check if a given object implements the ScoreboardItem interface. - */ -export declare function instanceOfScoreboardItem(value: object): value is ScoreboardItem; -export declare function ScoreboardItemFromJSON(json: any): ScoreboardItem; -export declare function ScoreboardItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoreboardItem; -export declare function ScoreboardItemToJSON(json: any): ScoreboardItem; -export declare function ScoreboardItemToJSONTyped(value?: ScoreboardItem | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ScoreboardItem.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/ScoreboardItem.d.ts.map b/dist/service/src/models/ScoreboardItem.d.ts.map deleted file mode 100644 index 7386987..0000000 --- a/dist/service/src/models/ScoreboardItem.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScoreboardItem.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/ScoreboardItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CASnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlH"} \ No newline at end of file diff --git a/dist/service/src/models/ScoreboardItem.js b/dist/service/src/models/ScoreboardItem.js deleted file mode 100644 index ea59ff8..0000000 --- a/dist/service/src/models/ScoreboardItem.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfScoreboardItem = instanceOfScoreboardItem; -exports.ScoreboardItemFromJSON = ScoreboardItemFromJSON; -exports.ScoreboardItemFromJSONTyped = ScoreboardItemFromJSONTyped; -exports.ScoreboardItemToJSON = ScoreboardItemToJSON; -exports.ScoreboardItemToJSONTyped = ScoreboardItemToJSONTyped; -/** - * Check if a given object implements the ScoreboardItem interface. - */ -function instanceOfScoreboardItem(value) { - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('points' in value) || value['points'] === undefined) - return false; - return true; -} -function ScoreboardItemFromJSON(json) { - return ScoreboardItemFromJSONTyped(json, false); -} -function ScoreboardItemFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'address': json['address'], - 'points': json['points'], - }; -} -function ScoreboardItemToJSON(json) { - return ScoreboardItemToJSONTyped(json, false); -} -function ScoreboardItemToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'address': value['address'], - 'points': value['points'], - }; -} -//# sourceMappingURL=ScoreboardItem.js.map \ No newline at end of file diff --git a/dist/service/src/models/ScoreboardItem.js.map b/dist/service/src/models/ScoreboardItem.js.map deleted file mode 100644 index 9bcba66..0000000 --- a/dist/service/src/models/ScoreboardItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScoreboardItem.js","sourceRoot":"","sources":["../../../../src/service/src/models/ScoreboardItem.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,4DAIC;AAED,wDAEC;AAED,kEASC;AAED,oDAEC;AAED,8DAUC;AAtCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts b/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts deleted file mode 100644 index 328310a..0000000 --- a/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemBarkTxRequest - */ -export interface StablecoinSystemBarkTxRequest { - /** - * Ethereum address of the user who is liquidating the vault and receiving incentives. - * @type {string} - * @memberof StablecoinSystemBarkTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemBarkTxRequest - */ - vaultId: number; -} -/** - * Check if a given object implements the StablecoinSystemBarkTxRequest interface. - */ -export declare function instanceOfStablecoinSystemBarkTxRequest(value: object): value is StablecoinSystemBarkTxRequest; -export declare function StablecoinSystemBarkTxRequestFromJSON(json: any): StablecoinSystemBarkTxRequest; -export declare function StablecoinSystemBarkTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemBarkTxRequest; -export declare function StablecoinSystemBarkTxRequestToJSON(json: any): StablecoinSystemBarkTxRequest; -export declare function StablecoinSystemBarkTxRequestToJSONTyped(value?: StablecoinSystemBarkTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemBarkTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map deleted file mode 100644 index 7758de3..0000000 --- a/dist/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemBarkTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemBarkTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAI7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemBarkTxRequest.js b/dist/service/src/models/StablecoinSystemBarkTxRequest.js deleted file mode 100644 index 303637a..0000000 --- a/dist/service/src/models/StablecoinSystemBarkTxRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemBarkTxRequest = instanceOfStablecoinSystemBarkTxRequest; -exports.StablecoinSystemBarkTxRequestFromJSON = StablecoinSystemBarkTxRequestFromJSON; -exports.StablecoinSystemBarkTxRequestFromJSONTyped = StablecoinSystemBarkTxRequestFromJSONTyped; -exports.StablecoinSystemBarkTxRequestToJSON = StablecoinSystemBarkTxRequestToJSON; -exports.StablecoinSystemBarkTxRequestToJSONTyped = StablecoinSystemBarkTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemBarkTxRequest interface. - */ -function instanceOfStablecoinSystemBarkTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) - return false; - return true; -} -function StablecoinSystemBarkTxRequestFromJSON(json) { - return StablecoinSystemBarkTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemBarkTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'vaultId': json['vaultId'], - }; -} -function StablecoinSystemBarkTxRequestToJSON(json) { - return StablecoinSystemBarkTxRequestToJSONTyped(json, false); -} -function StablecoinSystemBarkTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'vaultId': value['vaultId'], - }; -} -//# sourceMappingURL=StablecoinSystemBarkTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemBarkTxRequest.js.map b/dist/service/src/models/StablecoinSystemBarkTxRequest.js.map deleted file mode 100644 index 98a0e30..0000000 --- a/dist/service/src/models/StablecoinSystemBarkTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemBarkTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemBarkTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0FAIC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtCD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts b/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts deleted file mode 100644 index b89ba79..0000000 --- a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemCreateVaultTxRequest - */ -export interface StablecoinSystemCreateVaultTxRequest { - /** - * The name of the ilk - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - ilkName: string; - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - user: string; - /** - * The amount of collateral to deposit in native token units - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - collateralAmount?: string; - /** - * The amount of stablecoin to mint in native token units - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - mintAmount: string; -} -/** - * Check if a given object implements the StablecoinSystemCreateVaultTxRequest interface. - */ -export declare function instanceOfStablecoinSystemCreateVaultTxRequest(value: object): value is StablecoinSystemCreateVaultTxRequest; -export declare function StablecoinSystemCreateVaultTxRequestFromJSON(json: any): StablecoinSystemCreateVaultTxRequest; -export declare function StablecoinSystemCreateVaultTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemCreateVaultTxRequest; -export declare function StablecoinSystemCreateVaultTxRequestToJSON(json: any): StablecoinSystemCreateVaultTxRequest; -export declare function StablecoinSystemCreateVaultTxRequestToJSONTyped(value?: StablecoinSystemCreateVaultTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemCreateVaultTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map deleted file mode 100644 index 685d018..0000000 --- a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemCreateVaultTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,8CAA8C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oCAAoC,CAK3H;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE5G;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oCAAoC,CAW/I;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE1G;AAED,wBAAgB,+CAA+C,CAAC,KAAK,CAAC,EAAE,oCAAoC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY9J"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js b/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js deleted file mode 100644 index e621f06..0000000 --- a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemCreateVaultTxRequest = instanceOfStablecoinSystemCreateVaultTxRequest; -exports.StablecoinSystemCreateVaultTxRequestFromJSON = StablecoinSystemCreateVaultTxRequestFromJSON; -exports.StablecoinSystemCreateVaultTxRequestFromJSONTyped = StablecoinSystemCreateVaultTxRequestFromJSONTyped; -exports.StablecoinSystemCreateVaultTxRequestToJSON = StablecoinSystemCreateVaultTxRequestToJSON; -exports.StablecoinSystemCreateVaultTxRequestToJSONTyped = StablecoinSystemCreateVaultTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemCreateVaultTxRequest interface. - */ -function instanceOfStablecoinSystemCreateVaultTxRequest(value) { - if (!('ilkName' in value) || value['ilkName'] === undefined) - return false; - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('mintAmount' in value) || value['mintAmount'] === undefined) - return false; - return true; -} -function StablecoinSystemCreateVaultTxRequestFromJSON(json) { - return StablecoinSystemCreateVaultTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemCreateVaultTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'ilkName': json['ilkName'], - 'user': json['user'], - 'collateralAmount': json['collateralAmount'] == null ? undefined : json['collateralAmount'], - 'mintAmount': json['mintAmount'], - }; -} -function StablecoinSystemCreateVaultTxRequestToJSON(json) { - return StablecoinSystemCreateVaultTxRequestToJSONTyped(json, false); -} -function StablecoinSystemCreateVaultTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'ilkName': value['ilkName'], - 'user': value['user'], - 'collateralAmount': value['collateralAmount'], - 'mintAmount': value['mintAmount'], - }; -} -//# sourceMappingURL=StablecoinSystemCreateVaultTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map b/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map deleted file mode 100644 index f4dc7b3..0000000 --- a/dist/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemCreateVaultTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,wGAKC;AAED,oGAEC;AAED,8GAWC;AAED,gGAEC;AAED,0GAYC;AA3CD;;GAEG;AACH,SAAgB,8CAA8C,CAAC,KAAa;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,MAA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inSystemDepositCollateralTxRequest.d.ts b/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts deleted file mode 100644 index e9b5071..0000000 --- a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemDepositCollateralTxRequest - */ -export interface StablecoinSystemDepositCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - vaultId: number; - /** - * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance - * @type {string} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StablecoinSystemDepositCollateralTxRequest interface. - */ -export declare function instanceOfStablecoinSystemDepositCollateralTxRequest(value: object): value is StablecoinSystemDepositCollateralTxRequest; -export declare function StablecoinSystemDepositCollateralTxRequestFromJSON(json: any): StablecoinSystemDepositCollateralTxRequest; -export declare function StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemDepositCollateralTxRequest; -export declare function StablecoinSystemDepositCollateralTxRequestToJSON(json: any): StablecoinSystemDepositCollateralTxRequest; -export declare function StablecoinSystemDepositCollateralTxRequestToJSONTyped(value?: StablecoinSystemDepositCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemDepositCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map deleted file mode 100644 index a5cab4d..0000000 --- a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemDepositCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0CAA0C;IACvD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oDAAoD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0CAA0C,CAIvI;AAED,wBAAgB,kDAAkD,CAAC,IAAI,EAAE,GAAG,GAAG,0CAA0C,CAExH;AAED,wBAAgB,uDAAuD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0CAA0C,CAU3J;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,GAAG,0CAA0C,CAEtH;AAED,wBAAgB,qDAAqD,CAAC,KAAK,CAAC,EAAE,0CAA0C,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1K"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js b/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js deleted file mode 100644 index 2228e9e..0000000 --- a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemDepositCollateralTxRequest = instanceOfStablecoinSystemDepositCollateralTxRequest; -exports.StablecoinSystemDepositCollateralTxRequestFromJSON = StablecoinSystemDepositCollateralTxRequestFromJSON; -exports.StablecoinSystemDepositCollateralTxRequestFromJSONTyped = StablecoinSystemDepositCollateralTxRequestFromJSONTyped; -exports.StablecoinSystemDepositCollateralTxRequestToJSON = StablecoinSystemDepositCollateralTxRequestToJSON; -exports.StablecoinSystemDepositCollateralTxRequestToJSONTyped = StablecoinSystemDepositCollateralTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemDepositCollateralTxRequest interface. - */ -function instanceOfStablecoinSystemDepositCollateralTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) - return false; - return true; -} -function StablecoinSystemDepositCollateralTxRequestFromJSON(json) { - return StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StablecoinSystemDepositCollateralTxRequestToJSON(json) { - return StablecoinSystemDepositCollateralTxRequestToJSONTyped(json, false); -} -function StablecoinSystemDepositCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemDepositCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map b/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map deleted file mode 100644 index eaeaba3..0000000 --- a/dist/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemDepositCollateralTxRequest.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EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts b/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts deleted file mode 100644 index 6995865..0000000 --- a/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemGemexitTxRequest - */ -export interface StablecoinSystemGemexitTxRequest { - /** - * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - user: string; - /** - * The amount of Gem token to exit from Vat contract - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - amount: string; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - ilk: string; -} -/** - * Check if a given object implements the StablecoinSystemGemexitTxRequest interface. - */ -export declare function instanceOfStablecoinSystemGemexitTxRequest(value: object): value is StablecoinSystemGemexitTxRequest; -export declare function StablecoinSystemGemexitTxRequestFromJSON(json: any): StablecoinSystemGemexitTxRequest; -export declare function StablecoinSystemGemexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemGemexitTxRequest; -export declare function StablecoinSystemGemexitTxRequestToJSON(json: any): StablecoinSystemGemexitTxRequest; -export declare function StablecoinSystemGemexitTxRequestToJSONTyped(value?: StablecoinSystemGemexitTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemGemexitTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map deleted file mode 100644 index ad823ef..0000000 --- a/dist/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemGemexitTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemGemexitTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAKnH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CAUvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemGemexitTxRequest.js b/dist/service/src/models/StablecoinSystemGemexitTxRequest.js deleted file mode 100644 index 871f2cf..0000000 --- a/dist/service/src/models/StablecoinSystemGemexitTxRequest.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemGemexitTxRequest = instanceOfStablecoinSystemGemexitTxRequest; -exports.StablecoinSystemGemexitTxRequestFromJSON = StablecoinSystemGemexitTxRequestFromJSON; -exports.StablecoinSystemGemexitTxRequestFromJSONTyped = StablecoinSystemGemexitTxRequestFromJSONTyped; -exports.StablecoinSystemGemexitTxRequestToJSON = StablecoinSystemGemexitTxRequestToJSON; -exports.StablecoinSystemGemexitTxRequestToJSONTyped = StablecoinSystemGemexitTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemGemexitTxRequest interface. - */ -function instanceOfStablecoinSystemGemexitTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('ilk' in value) || value['ilk'] === undefined) - return false; - return true; -} -function StablecoinSystemGemexitTxRequestFromJSON(json) { - return StablecoinSystemGemexitTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemGemexitTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'amount': json['amount'], - 'ilk': json['ilk'], - }; -} -function StablecoinSystemGemexitTxRequestToJSON(json) { - return StablecoinSystemGemexitTxRequestToJSONTyped(json, false); -} -function StablecoinSystemGemexitTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'amount': value['amount'], - 'ilk': value['ilk'], - }; -} -//# sourceMappingURL=StablecoinSystemGemexitTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemGemexitTxRequest.js.map b/dist/service/src/models/StablecoinSystemGemexitTxRequest.js.map deleted file mode 100644 index 5aafc81..0000000 --- a/dist/service/src/models/StablecoinSystemGemexitTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemGemexitTxRequest.js","s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AAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts b/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts deleted file mode 100644 index 2bc26b7..0000000 --- a/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemMintZarTxRequest - */ -export interface StablecoinSystemMintZarTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemMintZarTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemMintZarTxRequest - */ - vaultId: number; - /** - * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount - * @type {string} - * @memberof StablecoinSystemMintZarTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StablecoinSystemMintZarTxRequest interface. - */ -export declare function instanceOfStablecoinSystemMintZarTxRequest(value: object): value is StablecoinSystemMintZarTxRequest; -export declare function StablecoinSystemMintZarTxRequestFromJSON(json: any): StablecoinSystemMintZarTxRequest; -export declare function StablecoinSystemMintZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemMintZarTxRequest; -export declare function StablecoinSystemMintZarTxRequestToJSON(json: any): StablecoinSystemMintZarTxRequest; -export declare function StablecoinSystemMintZarTxRequestToJSONTyped(value?: StablecoinSystemMintZarTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemMintZarTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map deleted file mode 100644 index 6981f7d..0000000 --- a/dist/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemMintZarTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemMintZarTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CAUvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemMintZarTxRequest.js b/dist/service/src/models/StablecoinSystemMintZarTxRequest.js deleted file mode 100644 index f6cc6c6..0000000 --- a/dist/service/src/models/StablecoinSystemMintZarTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemMintZarTxRequest = instanceOfStablecoinSystemMintZarTxRequest; -exports.StablecoinSystemMintZarTxRequestFromJSON = StablecoinSystemMintZarTxRequestFromJSON; -exports.StablecoinSystemMintZarTxRequestFromJSONTyped = StablecoinSystemMintZarTxRequestFromJSONTyped; -exports.StablecoinSystemMintZarTxRequestToJSON = StablecoinSystemMintZarTxRequestToJSON; -exports.StablecoinSystemMintZarTxRequestToJSONTyped = StablecoinSystemMintZarTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemMintZarTxRequest interface. - */ -function instanceOfStablecoinSystemMintZarTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) - return false; - return true; -} -function StablecoinSystemMintZarTxRequestFromJSON(json) { - return StablecoinSystemMintZarTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemMintZarTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StablecoinSystemMintZarTxRequestToJSON(json) { - return StablecoinSystemMintZarTxRequestToJSONTyped(json, false); -} -function StablecoinSystemMintZarTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemMintZarTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemMintZarTxRequest.js.map b/dist/service/src/models/StablecoinSystemMintZarTxRequest.js.map deleted file mode 100644 index e79770d..0000000 --- a/dist/service/src/models/StablecoinSystemMintZarTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemMintZarTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemMintZarTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gGAIC;AAED,4FAEC;AAED,sGAUC;AAED,wFAEC;AAED,kGAWC;AAxCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,KAA+C,EAAE,sBAA+B,KAAK;IAC7I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts b/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts deleted file mode 100644 index 40ecdc1..0000000 --- a/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemRedoTxRequest - */ -export interface StablecoinSystemRedoTxRequest { - /** - * Ethereum address of the user resetting the auction and receiving incentives. - * @type {string} - * @memberof StablecoinSystemRedoTxRequest - */ - user: string; - /** - * The ID of the auction - * @type {number} - * @memberof StablecoinSystemRedoTxRequest - */ - auctionId: number; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemRedoTxRequest - */ - ilk: string; -} -/** - * Check if a given object implements the StablecoinSystemRedoTxRequest interface. - */ -export declare function instanceOfStablecoinSystemRedoTxRequest(value: object): value is StablecoinSystemRedoTxRequest; -export declare function StablecoinSystemRedoTxRequestFromJSON(json: any): StablecoinSystemRedoTxRequest; -export declare function StablecoinSystemRedoTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRedoTxRequest; -export declare function StablecoinSystemRedoTxRequestToJSON(json: any): StablecoinSystemRedoTxRequest; -export declare function StablecoinSystemRedoTxRequestToJSONTyped(value?: StablecoinSystemRedoTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemRedoTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map deleted file mode 100644 index 425e154..0000000 --- a/dist/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemRedoTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemRedoTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAK7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAUjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRedoTxRequest.js b/dist/service/src/models/StablecoinSystemRedoTxRequest.js deleted file mode 100644 index 2aff5a6..0000000 --- a/dist/service/src/models/StablecoinSystemRedoTxRequest.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemRedoTxRequest = instanceOfStablecoinSystemRedoTxRequest; -exports.StablecoinSystemRedoTxRequestFromJSON = StablecoinSystemRedoTxRequestFromJSON; -exports.StablecoinSystemRedoTxRequestFromJSONTyped = StablecoinSystemRedoTxRequestFromJSONTyped; -exports.StablecoinSystemRedoTxRequestToJSON = StablecoinSystemRedoTxRequestToJSON; -exports.StablecoinSystemRedoTxRequestToJSONTyped = StablecoinSystemRedoTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemRedoTxRequest interface. - */ -function instanceOfStablecoinSystemRedoTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('auctionId' in value) || value['auctionId'] === undefined) - return false; - if (!('ilk' in value) || value['ilk'] === undefined) - return false; - return true; -} -function StablecoinSystemRedoTxRequestFromJSON(json) { - return StablecoinSystemRedoTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemRedoTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'auctionId': json['auctionId'], - 'ilk': json['ilk'], - }; -} -function StablecoinSystemRedoTxRequestToJSON(json) { - return StablecoinSystemRedoTxRequestToJSONTyped(json, false); -} -function StablecoinSystemRedoTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'auctionId': value['auctionId'], - 'ilk': value['ilk'], - }; -} -//# sourceMappingURL=StablecoinSystemRedoTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRedoTxRequest.js.map b/dist/service/src/models/StablecoinSystemRedoTxRequest.js.map deleted file mode 100644 index af1102f..0000000 --- a/dist/service/src/models/StablecoinSystemRedoTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemRedoTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemRedoTx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M,CAAC;QACrB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts b/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts deleted file mode 100644 index e3cbc23..0000000 --- a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemRepayZarTxRequest - */ -export interface StablecoinSystemRepayZarTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemRepayZarTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemRepayZarTxRequest - */ - vaultId: number; - /** - * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance - * @type {string} - * @memberof StablecoinSystemRepayZarTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StablecoinSystemRepayZarTxRequest interface. - */ -export declare function instanceOfStablecoinSystemRepayZarTxRequest(value: object): value is StablecoinSystemRepayZarTxRequest; -export declare function StablecoinSystemRepayZarTxRequestFromJSON(json: any): StablecoinSystemRepayZarTxRequest; -export declare function StablecoinSystemRepayZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRepayZarTxRequest; -export declare function StablecoinSystemRepayZarTxRequestToJSON(json: any): StablecoinSystemRepayZarTxRequest; -export declare function StablecoinSystemRepayZarTxRequestToJSONTyped(value?: StablecoinSystemRepayZarTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemRepayZarTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map deleted file mode 100644 index 851a518..0000000 --- a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemRepayZarTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemRepayZarTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAIrH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAUzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js b/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js deleted file mode 100644 index 50bb239..0000000 --- a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemRepayZarTxRequest = instanceOfStablecoinSystemRepayZarTxRequest; -exports.StablecoinSystemRepayZarTxRequestFromJSON = StablecoinSystemRepayZarTxRequestFromJSON; -exports.StablecoinSystemRepayZarTxRequestFromJSONTyped = StablecoinSystemRepayZarTxRequestFromJSONTyped; -exports.StablecoinSystemRepayZarTxRequestToJSON = StablecoinSystemRepayZarTxRequestToJSON; -exports.StablecoinSystemRepayZarTxRequestToJSONTyped = StablecoinSystemRepayZarTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemRepayZarTxRequest interface. - */ -function instanceOfStablecoinSystemRepayZarTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) - return false; - return true; -} -function StablecoinSystemRepayZarTxRequestFromJSON(json) { - return StablecoinSystemRepayZarTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemRepayZarTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StablecoinSystemRepayZarTxRequestToJSON(json) { - return StablecoinSystemRepayZarTxRequestToJSONTyped(json, false); -} -function StablecoinSystemRepayZarTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemRepayZarTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js.map b/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js.map deleted file mode 100644 index ea27c36..0000000 --- a/dist/service/src/models/StablecoinSystemRepayZarTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemRepayZarTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemRepayZarTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,kGAIC;AAED,8FAEC;AAED,wGAUC;AAED,0FAEC;AAED,oGAWC;AAxCD;;GAEG;AACH,SAAgB,2CAA2C,CAAC,KAAa;IACrE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS;IAC/D,OAAO,8CAA8C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,8CAA8C,CAAC,IAAS,EAAE,mBAA4B;IAClG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS;IAC7D,OAAO,4CAA4C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,SAAgB,4CAA4C,CAAC,KAAgD,EAAE,sBAA+B,KAAK;IAC/I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemStats.d.ts b/dist/service/src/models/StablecoinSystemStats.d.ts deleted file mode 100644 index dc2ab33..0000000 --- a/dist/service/src/models/StablecoinSystemStats.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemStats - */ -export interface StablecoinSystemStats { - /** - * System surplus - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplus: { - [key: string]: string | undefined; - }; - /** - * System debt - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemDebt: { - [key: string]: string | undefined; - }; - /** - * System debt ceiling - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemDebtCeiling: { - [key: string]: string | undefined; - }; - /** - * System surplus buffer - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplusBuffer: { - [key: string]: string | undefined; - }; - /** - * System bad debt - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemBadDebt: { - [key: string]: string | undefined; - }; - /** - * System surplus lot size - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplusLotSize: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the StablecoinSystemStats interface. - */ -export declare function instanceOfStablecoinSystemStats(value: object): value is StablecoinSystemStats; -export declare function StablecoinSystemStatsFromJSON(json: any): StablecoinSystemStats; -export declare function StablecoinSystemStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemStats; -export declare function StablecoinSystemStatsToJSON(json: any): StablecoinSystemStats; -export declare function StablecoinSystemStatsToJSONTyped(value?: StablecoinSystemStats | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemStats.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemStats.d.ts.map b/dist/service/src/models/StablecoinSystemStats.d.ts.map deleted file mode 100644 index 585a470..0000000 --- a/dist/service/src/models/StablecoinSystemStats.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemStats.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemStats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,oBAAoB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAQ7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAajH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchI"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemStats.js b/dist/service/src/models/StablecoinSystemStats.js deleted file mode 100644 index 1bc5d70..0000000 --- a/dist/service/src/models/StablecoinSystemStats.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemStats = instanceOfStablecoinSystemStats; -exports.StablecoinSystemStatsFromJSON = StablecoinSystemStatsFromJSON; -exports.StablecoinSystemStatsFromJSONTyped = StablecoinSystemStatsFromJSONTyped; -exports.StablecoinSystemStatsToJSON = StablecoinSystemStatsToJSON; -exports.StablecoinSystemStatsToJSONTyped = StablecoinSystemStatsToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemStats interface. - */ -function instanceOfStablecoinSystemStats(value) { - if (!('systemSurplus' in value) || value['systemSurplus'] === undefined) - return false; - if (!('systemDebt' in value) || value['systemDebt'] === undefined) - return false; - if (!('systemDebtCeiling' in value) || value['systemDebtCeiling'] === undefined) - return false; - if (!('systemSurplusBuffer' in value) || value['systemSurplusBuffer'] === undefined) - return false; - if (!('systemBadDebt' in value) || value['systemBadDebt'] === undefined) - return false; - if (!('systemSurplusLotSize' in value) || value['systemSurplusLotSize'] === undefined) - return false; - return true; -} -function StablecoinSystemStatsFromJSON(json) { - return StablecoinSystemStatsFromJSONTyped(json, false); -} -function StablecoinSystemStatsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'systemSurplus': json['systemSurplus'], - 'systemDebt': json['systemDebt'], - 'systemDebtCeiling': json['systemDebtCeiling'], - 'systemSurplusBuffer': json['systemSurplusBuffer'], - 'systemBadDebt': json['systemBadDebt'], - 'systemSurplusLotSize': json['systemSurplusLotSize'], - }; -} -function StablecoinSystemStatsToJSON(json) { - return StablecoinSystemStatsToJSONTyped(json, false); -} -function StablecoinSystemStatsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'systemSurplus': value['systemSurplus'], - 'systemDebt': value['systemDebt'], - 'systemDebtCeiling': value['systemDebtCeiling'], - 'systemSurplusBuffer': value['systemSurplusBuffer'], - 'systemBadDebt': value['systemBadDebt'], - 'systemSurplusLotSize': value['systemSurplusLotSize'], - }; -} -//# sourceMappingURL=StablecoinSystemStats.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemStats.js.map b/dist/service/src/models/StablecoinSystemStats.js.map deleted file mode 100644 index 713ad14..0000000 --- a/dist/service/src/models/StablecoinSystemStats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemStats.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemStats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkDH,0EAQC;AAED,sEAEC;AAED,gFAaC;AAED,kEAEC;AAED,4EAcC;AAlDD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS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AC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,sBAAsB,EAAE,KAAK,CAAC,sBAAsB,CAAC;KACxD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts b/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts deleted file mode 100644 index edb559d..0000000 --- a/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemTakeTxRequest - */ -export interface StablecoinSystemTakeTxRequest { - /** - * Ethereum address of the user taking the auction. - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - user: string; - /** - * The ID of the auction - * @type {number} - * @memberof StablecoinSystemTakeTxRequest - */ - auctionId: number; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - ilk: string; - /** - * upper limit on the amount of collateral to buy [wad] - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - collateralAmountUpperLimit: string; - /** - * Maximum acceptable price (ZAR / collateral) [ray] - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - maxAcceptablePrice: string; -} -/** - * Check if a given object implements the StablecoinSystemTakeTxRequest interface. - */ -export declare function instanceOfStablecoinSystemTakeTxRequest(value: object): value is StablecoinSystemTakeTxRequest; -export declare function StablecoinSystemTakeTxRequestFromJSON(json: any): StablecoinSystemTakeTxRequest; -export declare function StablecoinSystemTakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemTakeTxRequest; -export declare function StablecoinSystemTakeTxRequestToJSON(json: any): StablecoinSystemTakeTxRequest; -export declare function StablecoinSystemTakeTxRequestToJSONTyped(value?: StablecoinSystemTakeTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemTakeTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map deleted file mode 100644 index 4d88844..0000000 --- a/dist/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemTakeTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemTakeTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAO7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAYjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemTakeTxRequest.js b/dist/service/src/models/StablecoinSystemTakeTxRequest.js deleted file mode 100644 index 7fe9a25..0000000 --- a/dist/service/src/models/StablecoinSystemTakeTxRequest.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemTakeTxRequest = instanceOfStablecoinSystemTakeTxRequest; -exports.StablecoinSystemTakeTxRequestFromJSON = StablecoinSystemTakeTxRequestFromJSON; -exports.StablecoinSystemTakeTxRequestFromJSONTyped = StablecoinSystemTakeTxRequestFromJSONTyped; -exports.StablecoinSystemTakeTxRequestToJSON = StablecoinSystemTakeTxRequestToJSON; -exports.StablecoinSystemTakeTxRequestToJSONTyped = StablecoinSystemTakeTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemTakeTxRequest interface. - */ -function instanceOfStablecoinSystemTakeTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('auctionId' in value) || value['auctionId'] === undefined) - return false; - if (!('ilk' in value) || value['ilk'] === undefined) - return false; - if (!('collateralAmountUpperLimit' in value) || value['collateralAmountUpperLimit'] === undefined) - return false; - if (!('maxAcceptablePrice' in value) || value['maxAcceptablePrice'] === undefined) - return false; - return true; -} -function StablecoinSystemTakeTxRequestFromJSON(json) { - return StablecoinSystemTakeTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemTakeTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'auctionId': json['auctionId'], - 'ilk': json['ilk'], - 'collateralAmountUpperLimit': json['collateralAmountUpperLimit'], - 'maxAcceptablePrice': json['maxAcceptablePrice'], - }; -} -function StablecoinSystemTakeTxRequestToJSON(json) { - return StablecoinSystemTakeTxRequestToJSONTyped(json, false); -} -function StablecoinSystemTakeTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'auctionId': value['auctionId'], - 'ilk': value['ilk'], - 'collateralAmountUpperLimit': value['collateralAmountUpperLimit'], - 'maxAcceptablePrice': value['maxAcceptablePrice'], - }; -} -//# sourceMappingURL=StablecoinSystemTakeTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemTakeTxRequest.js.map b/dist/service/src/models/StablecoinSystemTakeTxRequest.js.map deleted file mode 100644 index a467b22..0000000 --- a/dist/service/src/models/StablecoinSystemTakeTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemTakeTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemTakeTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,0FAOC;AAED,sFAEC;AAED,gGAYC;AAED,kFAEC;AAED,4FAaC;AA/CD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,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KAAK,CAAC,KAAK,CAAC;QACnB,4BAA4B,EAAE,KAAK,CAAC,4BAA4B,CAAC;QACjE,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;KACpD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts b/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts deleted file mode 100644 index 4f3e915..0000000 --- a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemWithdrawCollateralTxRequest - */ -export interface StablecoinSystemWithdrawCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - vaultId: number; - /** - * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance - * @type {string} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StablecoinSystemWithdrawCollateralTxRequest interface. - */ -export declare function instanceOfStablecoinSystemWithdrawCollateralTxRequest(value: object): value is StablecoinSystemWithdrawCollateralTxRequest; -export declare function StablecoinSystemWithdrawCollateralTxRequestFromJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest; -export declare function StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemWithdrawCollateralTxRequest; -export declare function StablecoinSystemWithdrawCollateralTxRequestToJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest; -export declare function StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(value?: StablecoinSystemWithdrawCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemWithdrawCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map deleted file mode 100644 index b1726cc..0000000 --- a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemWithdrawCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2CAA2C;IACxD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,qDAAqD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2CAA2C,CAIzI;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,GAAG,2CAA2C,CAE1H;AAED,wBAAgB,wDAAwD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2CAA2C,CAU7J;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,GAAG,2CAA2C,CAExH;AAED,wBAAgB,sDAAsD,CAAC,KAAK,CAAC,EAAE,2CAA2C,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5K"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js b/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js deleted file mode 100644 index af5f08e..0000000 --- a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemWithdrawCollateralTxRequest = instanceOfStablecoinSystemWithdrawCollateralTxRequest; -exports.StablecoinSystemWithdrawCollateralTxRequestFromJSON = StablecoinSystemWithdrawCollateralTxRequestFromJSON; -exports.StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped = StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped; -exports.StablecoinSystemWithdrawCollateralTxRequestToJSON = StablecoinSystemWithdrawCollateralTxRequestToJSON; -exports.StablecoinSystemWithdrawCollateralTxRequestToJSONTyped = StablecoinSystemWithdrawCollateralTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemWithdrawCollateralTxRequest interface. - */ -function instanceOfStablecoinSystemWithdrawCollateralTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) - return false; - return true; -} -function StablecoinSystemWithdrawCollateralTxRequestFromJSON(json) { - return StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StablecoinSystemWithdrawCollateralTxRequestToJSON(json) { - return StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(json, false); -} -function StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemWithdrawCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map b/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map deleted file mode 100644 index 4831d72..0000000 --- a/dist/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemWithdrawCollateralTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,sHAIC;AAED,kHAEC;AAED,4HAUC;AAED,8GAEC;AAED,wHAWC;AAxCD;;GAEG;AACH,SAAgB,qDAAqD,CAAC,KAAa;IAC/E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mDAAmD,CAAC,IAAS;IACzE,OAAO,wDAAwD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC;AAED,SAAgB,wDAAwD,CAAC,IAAS,EAAE,mBAA4B;IAC5G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,iDAAiD,CAAC,IAAS;IACvE,OAAO,sDAAsD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,sDAAsD,CAAC,KAA0D,EAAE,sBAA+B,KAAK;IACnK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts b/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts deleted file mode 100644 index 3eab9f6..0000000 --- a/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemZarexitTxRequest - */ -export interface StablecoinSystemZarexitTxRequest { - /** - * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. - * @type {string} - * @memberof StablecoinSystemZarexitTxRequest - */ - user: string; - /** - * The amount of Zar token to exit from Vat contract - * @type {string} - * @memberof StablecoinSystemZarexitTxRequest - */ - amount: string; -} -/** - * Check if a given object implements the StablecoinSystemZarexitTxRequest interface. - */ -export declare function instanceOfStablecoinSystemZarexitTxRequest(value: object): value is StablecoinSystemZarexitTxRequest; -export declare function StablecoinSystemZarexitTxRequestFromJSON(json: any): StablecoinSystemZarexitTxRequest; -export declare function StablecoinSystemZarexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarexitTxRequest; -export declare function StablecoinSystemZarexitTxRequestToJSON(json: any): StablecoinSystemZarexitTxRequest; -export declare function StablecoinSystemZarexitTxRequestToJSONTyped(value?: StablecoinSystemZarexitTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemZarexitTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map deleted file mode 100644 index 3f68a84..0000000 --- a/dist/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemZarexitTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemZarexitTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CASvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarexitTxRequest.js b/dist/service/src/models/StablecoinSystemZarexitTxRequest.js deleted file mode 100644 index 21cdbf7..0000000 --- a/dist/service/src/models/StablecoinSystemZarexitTxRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemZarexitTxRequest = instanceOfStablecoinSystemZarexitTxRequest; -exports.StablecoinSystemZarexitTxRequestFromJSON = StablecoinSystemZarexitTxRequestFromJSON; -exports.StablecoinSystemZarexitTxRequestFromJSONTyped = StablecoinSystemZarexitTxRequestFromJSONTyped; -exports.StablecoinSystemZarexitTxRequestToJSON = StablecoinSystemZarexitTxRequestToJSON; -exports.StablecoinSystemZarexitTxRequestToJSONTyped = StablecoinSystemZarexitTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemZarexitTxRequest interface. - */ -function instanceOfStablecoinSystemZarexitTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - return true; -} -function StablecoinSystemZarexitTxRequestFromJSON(json) { - return StablecoinSystemZarexitTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemZarexitTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'amount': json['amount'], - }; -} -function StablecoinSystemZarexitTxRequestToJSON(json) { - return StablecoinSystemZarexitTxRequestToJSONTyped(json, false); -} -function StablecoinSystemZarexitTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemZarexitTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarexitTxRequest.js.map b/dist/service/src/models/StablecoinSystemZarexitTxRequest.js.map deleted file mode 100644 index f9825b6..0000000 --- a/dist/service/src/models/StablecoinSystemZarexitTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemZarexitTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemZarexitTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,gGAIC;AAED,4FAEC;AAED,sGASC;AAED,wFAEC;AAED,kGAUC;AAtCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,KAA+C,EAAE,sBAA+B,KAAK;IAC7I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts b/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts deleted file mode 100644 index a8c4433..0000000 --- a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StablecoinSystemZarjoinTxRequest - */ -export interface StablecoinSystemZarjoinTxRequest { - /** - * Ethereum address of the user intends to join zar tokens into the Vat contract. - * @type {string} - * @memberof StablecoinSystemZarjoinTxRequest - */ - user: string; - /** - * The amount of ZAR to approve and join into Vat contract - * @type {string} - * @memberof StablecoinSystemZarjoinTxRequest - */ - amount: string; -} -/** - * Check if a given object implements the StablecoinSystemZarjoinTxRequest interface. - */ -export declare function instanceOfStablecoinSystemZarjoinTxRequest(value: object): value is StablecoinSystemZarjoinTxRequest; -export declare function StablecoinSystemZarjoinTxRequestFromJSON(json: any): StablecoinSystemZarjoinTxRequest; -export declare function StablecoinSystemZarjoinTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarjoinTxRequest; -export declare function StablecoinSystemZarjoinTxRequestToJSON(json: any): StablecoinSystemZarjoinTxRequest; -export declare function StablecoinSystemZarjoinTxRequestToJSONTyped(value?: StablecoinSystemZarjoinTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StablecoinSystemZarjoinTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map b/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map deleted file mode 100644 index 751f00c..0000000 --- a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemZarjoinTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemZarjoinTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CASvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtJ"} \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js b/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js deleted file mode 100644 index edce8c3..0000000 --- a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStablecoinSystemZarjoinTxRequest = instanceOfStablecoinSystemZarjoinTxRequest; -exports.StablecoinSystemZarjoinTxRequestFromJSON = StablecoinSystemZarjoinTxRequestFromJSON; -exports.StablecoinSystemZarjoinTxRequestFromJSONTyped = StablecoinSystemZarjoinTxRequestFromJSONTyped; -exports.StablecoinSystemZarjoinTxRequestToJSON = StablecoinSystemZarjoinTxRequestToJSON; -exports.StablecoinSystemZarjoinTxRequestToJSONTyped = StablecoinSystemZarjoinTxRequestToJSONTyped; -/** - * Check if a given object implements the StablecoinSystemZarjoinTxRequest interface. - */ -function instanceOfStablecoinSystemZarjoinTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - return true; -} -function StablecoinSystemZarjoinTxRequestFromJSON(json) { - return StablecoinSystemZarjoinTxRequestFromJSONTyped(json, false); -} -function StablecoinSystemZarjoinTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'amount': json['amount'], - }; -} -function StablecoinSystemZarjoinTxRequestToJSON(json) { - return StablecoinSystemZarjoinTxRequestToJSONTyped(json, false); -} -function StablecoinSystemZarjoinTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StablecoinSystemZarjoinTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js.map b/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js.map deleted file mode 100644 index 90e5dab..0000000 --- a/dist/service/src/models/StablecoinSystemZarjoinTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StablecoinSystemZarjoinTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StablecoinSystemZarjoinTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,gGAIC;AAED,4FAEC;AAED,sGASC;AAED,wFAEC;AAED,kGAUC;AAtCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,KAA+C,EAAE,sBAA+B,KAAK;IAC7I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakeBalance.d.ts b/dist/service/src/models/StakeBalance.d.ts deleted file mode 100644 index 5c4374d..0000000 --- a/dist/service/src/models/StakeBalance.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * The amount of asset staked in native token units - * @export - * @interface StakeBalance - */ -export interface StakeBalance { -} -/** - * Check if a given object implements the StakeBalance interface. - */ -export declare function instanceOfStakeBalance(value: object): value is StakeBalance; -export declare function StakeBalanceFromJSON(json: any): StakeBalance; -export declare function StakeBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakeBalance; -export declare function StakeBalanceToJSON(json: any): StakeBalance; -export declare function StakeBalanceToJSONTyped(value?: StakeBalance | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakeBalance.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakeBalance.d.ts.map b/dist/service/src/models/StakeBalance.d.ts.map deleted file mode 100644 index fa952ce..0000000 --- a/dist/service/src/models/StakeBalance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakeBalance.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakeBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;CAC5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAE/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE9G"} \ No newline at end of file diff --git a/dist/service/src/models/StakeBalance.js b/dist/service/src/models/StakeBalance.js deleted file mode 100644 index 1bc3159..0000000 --- a/dist/service/src/models/StakeBalance.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakeBalance = instanceOfStakeBalance; -exports.StakeBalanceFromJSON = StakeBalanceFromJSON; -exports.StakeBalanceFromJSONTyped = StakeBalanceFromJSONTyped; -exports.StakeBalanceToJSON = StakeBalanceToJSON; -exports.StakeBalanceToJSONTyped = StakeBalanceToJSONTyped; -/** - * Check if a given object implements the StakeBalance interface. - */ -function instanceOfStakeBalance(value) { - return true; -} -function StakeBalanceFromJSON(json) { - return StakeBalanceFromJSONTyped(json, false); -} -function StakeBalanceFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function StakeBalanceToJSON(json) { - return StakeBalanceToJSONTyped(json, false); -} -function StakeBalanceToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=StakeBalance.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakeBalance.js.map b/dist/service/src/models/StakeBalance.js.map deleted file mode 100644 index c86d94d..0000000 --- a/dist/service/src/models/StakeBalance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakeBalance.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakeBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,wDAEC;AAED,oDAEC;AAED,8DAEC;AAED,gDAEC;AAED,0DAEC;AArBD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakePlan.d.ts b/dist/service/src/models/StakePlan.d.ts deleted file mode 100644 index 858ad60..0000000 --- a/dist/service/src/models/StakePlan.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface StakePlan - */ -export interface StakePlan { - /** - * Name of staking plan - * @type {string} - * @memberof StakePlan - */ - planName: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakePlan - */ - contractAddress: string; - /** - * Annual percentage yield of the staking plan - * @type {string} - * @memberof StakePlan - */ - apy: string; - /** - * - * @type {Token} - * @memberof StakePlan - */ - stakeToken: Token; - /** - * - * @type {Token} - * @memberof StakePlan - */ - rewardToken: Token; - /** - * - * @type {Timestamp} - * @memberof StakePlan - */ - finishAt: Timestamp; -} -/** - * Check if a given object implements the StakePlan interface. - */ -export declare function instanceOfStakePlan(value: object): value is StakePlan; -export declare function StakePlanFromJSON(json: any): StakePlan; -export declare function StakePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlan; -export declare function StakePlanToJSON(json: any): StakePlan; -export declare function StakePlanToJSONTyped(value?: StakePlan | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakePlan.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakePlan.d.ts.map b/dist/service/src/models/StakePlan.d.ts.map deleted file mode 100644 index deba784..0000000 --- a/dist/service/src/models/StakePlan.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakePlan.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakePlan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAQrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAazF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxG"} \ No newline at end of file diff --git a/dist/service/src/models/StakePlan.js b/dist/service/src/models/StakePlan.js deleted file mode 100644 index 9ef4fed..0000000 --- a/dist/service/src/models/StakePlan.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakePlan = instanceOfStakePlan; -exports.StakePlanFromJSON = StakePlanFromJSON; -exports.StakePlanFromJSONTyped = StakePlanFromJSONTyped; -exports.StakePlanToJSON = StakePlanToJSON; -exports.StakePlanToJSONTyped = StakePlanToJSONTyped; -const Token_1 = require("./Token"); -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the StakePlan interface. - */ -function instanceOfStakePlan(value) { - if (!('planName' in value) || value['planName'] === undefined) - return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) - return false; - if (!('apy' in value) || value['apy'] === undefined) - return false; - if (!('stakeToken' in value) || value['stakeToken'] === undefined) - return false; - if (!('rewardToken' in value) || value['rewardToken'] === undefined) - return false; - if (!('finishAt' in value) || value['finishAt'] === undefined) - return false; - return true; -} -function StakePlanFromJSON(json) { - return StakePlanFromJSONTyped(json, false); -} -function StakePlanFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'planName': json['planName'], - 'contractAddress': json['contractAddress'], - 'apy': json['apy'], - 'stakeToken': (0, Token_1.TokenFromJSON)(json['stakeToken']), - 'rewardToken': (0, Token_1.TokenFromJSON)(json['rewardToken']), - 'finishAt': (0, Timestamp_1.TimestampFromJSON)(json['finishAt']), - }; -} -function StakePlanToJSON(json) { - return StakePlanToJSONTyped(json, false); -} -function StakePlanToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'planName': value['planName'], - 'contractAddress': value['contractAddress'], - 'apy': value['apy'], - 'stakeToken': (0, Token_1.TokenToJSON)(value['stakeToken']), - 'rewardToken': (0, Token_1.TokenToJSON)(value['rewardToken']), - 'finishAt': (0, Timestamp_1.TimestampToJSON)(value['finishAt']), - }; -} -//# sourceMappingURL=StakePlan.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakePlan.js.map b/dist/service/src/models/StakePlan.js.map deleted file mode 100644 index c110592..0000000 --- a/dist/service/src/models/StakePlan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakePlan.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakePlan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiEH,kDAQC;AAED,8CAEC;AAED,wDAaC;AAED,0CAEC;AAED,oDAcC;AA5GD,mCAKiB;AAEjB,2CAKqB;AA8CrB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC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AAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakePlansResponse.d.ts b/dist/service/src/models/StakePlansResponse.d.ts deleted file mode 100644 index 87e7042..0000000 --- a/dist/service/src/models/StakePlansResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { StakePlan } from './StakePlan'; -/** - * - * @export - * @interface StakePlansResponse - */ -export interface StakePlansResponse { - /** - * - * @type {Array} - * @memberof StakePlansResponse - */ - data: Array; -} -/** - * Check if a given object implements the StakePlansResponse interface. - */ -export declare function instanceOfStakePlansResponse(value: object): value is StakePlansResponse; -export declare function StakePlansResponseFromJSON(json: any): StakePlansResponse; -export declare function StakePlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlansResponse; -export declare function StakePlansResponseToJSON(json: any): StakePlansResponse; -export declare function StakePlansResponseToJSONTyped(value?: StakePlansResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakePlansResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakePlansResponse.d.ts.map b/dist/service/src/models/StakePlansResponse.d.ts.map deleted file mode 100644 index 76c3525..0000000 --- a/dist/service/src/models/StakePlansResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakePlansResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakePlansResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/service/src/models/StakePlansResponse.js b/dist/service/src/models/StakePlansResponse.js deleted file mode 100644 index f30535d..0000000 --- a/dist/service/src/models/StakePlansResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakePlansResponse = instanceOfStakePlansResponse; -exports.StakePlansResponseFromJSON = StakePlansResponseFromJSON; -exports.StakePlansResponseFromJSONTyped = StakePlansResponseFromJSONTyped; -exports.StakePlansResponseToJSON = StakePlansResponseToJSON; -exports.StakePlansResponseToJSONTyped = StakePlansResponseToJSONTyped; -const StakePlan_1 = require("./StakePlan"); -/** - * Check if a given object implements the StakePlansResponse interface. - */ -function instanceOfStakePlansResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function StakePlansResponseFromJSON(json) { - return StakePlansResponseFromJSONTyped(json, false); -} -function StakePlansResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(StakePlan_1.StakePlanFromJSON)), - }; -} -function StakePlansResponseToJSON(json) { - return StakePlansResponseToJSONTyped(json, false); -} -function StakePlansResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(StakePlan_1.StakePlanToJSON)), - }; -} -//# sourceMappingURL=StakePlansResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakePlansResponse.js.map b/dist/service/src/models/StakePlansResponse.js.map deleted file mode 100644 index d6c7a21..0000000 --- a/dist/service/src/models/StakePlansResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakePlansResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakePlansResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,2CAKqB;AAgBrB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxRequest.d.ts b/dist/service/src/models/StakingCollectRewardTxRequest.d.ts deleted file mode 100644 index 10e56fe..0000000 --- a/dist/service/src/models/StakingCollectRewardTxRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StakingCollectRewardTxRequest - */ -export interface StakingCollectRewardTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingCollectRewardTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingCollectRewardTxRequest - */ - contractAddress: string; -} -/** - * Check if a given object implements the StakingCollectRewardTxRequest interface. - */ -export declare function instanceOfStakingCollectRewardTxRequest(value: object): value is StakingCollectRewardTxRequest; -export declare function StakingCollectRewardTxRequestFromJSON(json: any): StakingCollectRewardTxRequest; -export declare function StakingCollectRewardTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxRequest; -export declare function StakingCollectRewardTxRequestToJSON(json: any): StakingCollectRewardTxRequest; -export declare function StakingCollectRewardTxRequestToJSONTyped(value?: StakingCollectRewardTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingCollectRewardTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxRequest.d.ts.map b/dist/service/src/models/StakingCollectRewardTxRequest.d.ts.map deleted file mode 100644 index f293f3e..0000000 --- a/dist/service/src/models/StakingCollectRewardTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingCollectRewardTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingCollectRewardTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAI7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxRequest.js b/dist/service/src/models/StakingCollectRewardTxRequest.js deleted file mode 100644 index eeabaec..0000000 --- a/dist/service/src/models/StakingCollectRewardTxRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingCollectRewardTxRequest = instanceOfStakingCollectRewardTxRequest; -exports.StakingCollectRewardTxRequestFromJSON = StakingCollectRewardTxRequestFromJSON; -exports.StakingCollectRewardTxRequestFromJSONTyped = StakingCollectRewardTxRequestFromJSONTyped; -exports.StakingCollectRewardTxRequestToJSON = StakingCollectRewardTxRequestToJSON; -exports.StakingCollectRewardTxRequestToJSONTyped = StakingCollectRewardTxRequestToJSONTyped; -/** - * Check if a given object implements the StakingCollectRewardTxRequest interface. - */ -function instanceOfStakingCollectRewardTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) - return false; - return true; -} -function StakingCollectRewardTxRequestFromJSON(json) { - return StakingCollectRewardTxRequestFromJSONTyped(json, false); -} -function StakingCollectRewardTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'contractAddress': json['contractAddress'], - }; -} -function StakingCollectRewardTxRequestToJSON(json) { - return StakingCollectRewardTxRequestToJSONTyped(json, false); -} -function StakingCollectRewardTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'contractAddress': value['contractAddress'], - }; -} -//# sourceMappingURL=StakingCollectRewardTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxRequest.js.map b/dist/service/src/models/StakingCollectRewardTxRequest.js.map deleted file mode 100644 index 1c90502..0000000 --- a/dist/service/src/models/StakingCollectRewardTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingCollectRewardTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingCollectRewardTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0FAIC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtCD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxResponse.d.ts b/dist/service/src/models/StakingCollectRewardTxResponse.d.ts deleted file mode 100644 index b6a4a46..0000000 --- a/dist/service/src/models/StakingCollectRewardTxResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface StakingCollectRewardTxResponse - */ -export interface StakingCollectRewardTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingCollectRewardTxResponse - */ - chainActivity?: ChainActivity; -} -/** - * Check if a given object implements the StakingCollectRewardTxResponse interface. - */ -export declare function instanceOfStakingCollectRewardTxResponse(value: object): value is StakingCollectRewardTxResponse; -export declare function StakingCollectRewardTxResponseFromJSON(json: any): StakingCollectRewardTxResponse; -export declare function StakingCollectRewardTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxResponse; -export declare function StakingCollectRewardTxResponseToJSON(json: any): StakingCollectRewardTxResponse; -export declare function StakingCollectRewardTxResponseToJSONTyped(value?: StakingCollectRewardTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingCollectRewardTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxResponse.d.ts.map b/dist/service/src/models/StakingCollectRewardTxResponse.d.ts.map deleted file mode 100644 index 5beb5d0..0000000 --- a/dist/service/src/models/StakingCollectRewardTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingCollectRewardTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingCollectRewardTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAE/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAQnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlJ"} \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxResponse.js b/dist/service/src/models/StakingCollectRewardTxResponse.js deleted file mode 100644 index 9befa73..0000000 --- a/dist/service/src/models/StakingCollectRewardTxResponse.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingCollectRewardTxResponse = instanceOfStakingCollectRewardTxResponse; -exports.StakingCollectRewardTxResponseFromJSON = StakingCollectRewardTxResponseFromJSON; -exports.StakingCollectRewardTxResponseFromJSONTyped = StakingCollectRewardTxResponseFromJSONTyped; -exports.StakingCollectRewardTxResponseToJSON = StakingCollectRewardTxResponseToJSON; -exports.StakingCollectRewardTxResponseToJSONTyped = StakingCollectRewardTxResponseToJSONTyped; -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the StakingCollectRewardTxResponse interface. - */ -function instanceOfStakingCollectRewardTxResponse(value) { - return true; -} -function StakingCollectRewardTxResponseFromJSON(json) { - return StakingCollectRewardTxResponseFromJSONTyped(json, false); -} -function StakingCollectRewardTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - }; -} -function StakingCollectRewardTxResponseToJSON(json) { - return StakingCollectRewardTxResponseToJSONTyped(json, false); -} -function StakingCollectRewardTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - }; -} -//# sourceMappingURL=StakingCollectRewardTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingCollectRewardTxResponse.js.map b/dist/service/src/models/StakingCollectRewardTxResponse.js.map deleted file mode 100644 index 670ad1e..0000000 --- a/dist/service/src/models/StakingCollectRewardTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingCollectRewardTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingCollectRewardTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4FAEC;AAED,wFAEC;AAED,kGAQC;AAED,oFAEC;AAED,8FASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,wCAAwC,CAAC,KAAa;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,IAAS,EAAE,mBAA4B;IAC/F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,KAA6C,EAAE,sBAA+B,KAAK;IACzI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxRequest.d.ts b/dist/service/src/models/StakingStakeTxRequest.d.ts deleted file mode 100644 index 0f3598c..0000000 --- a/dist/service/src/models/StakingStakeTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StakingStakeTxRequest - */ -export interface StakingStakeTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingStakeTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingStakeTxRequest - */ - contractAddress: string; - /** - * The amount of asset to stake in native token units - * @type {string} - * @memberof StakingStakeTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StakingStakeTxRequest interface. - */ -export declare function instanceOfStakingStakeTxRequest(value: object): value is StakingStakeTxRequest; -export declare function StakingStakeTxRequestFromJSON(json: any): StakingStakeTxRequest; -export declare function StakingStakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxRequest; -export declare function StakingStakeTxRequestToJSON(json: any): StakingStakeTxRequest; -export declare function StakingStakeTxRequestToJSONTyped(value?: StakingStakeTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingStakeTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxRequest.d.ts.map b/dist/service/src/models/StakingStakeTxRequest.d.ts.map deleted file mode 100644 index 59224ab..0000000 --- a/dist/service/src/models/StakingStakeTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingStakeTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingStakeTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"} \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxRequest.js b/dist/service/src/models/StakingStakeTxRequest.js deleted file mode 100644 index 264282a..0000000 --- a/dist/service/src/models/StakingStakeTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingStakeTxRequest = instanceOfStakingStakeTxRequest; -exports.StakingStakeTxRequestFromJSON = StakingStakeTxRequestFromJSON; -exports.StakingStakeTxRequestFromJSONTyped = StakingStakeTxRequestFromJSONTyped; -exports.StakingStakeTxRequestToJSON = StakingStakeTxRequestToJSON; -exports.StakingStakeTxRequestToJSONTyped = StakingStakeTxRequestToJSONTyped; -/** - * Check if a given object implements the StakingStakeTxRequest interface. - */ -function instanceOfStakingStakeTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) - return false; - return true; -} -function StakingStakeTxRequestFromJSON(json) { - return StakingStakeTxRequestFromJSONTyped(json, false); -} -function StakingStakeTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'contractAddress': json['contractAddress'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StakingStakeTxRequestToJSON(json) { - return StakingStakeTxRequestToJSONTyped(json, false); -} -function StakingStakeTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'contractAddress': value['contractAddress'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StakingStakeTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxRequest.js.map b/dist/service/src/models/StakingStakeTxRequest.js.map deleted file mode 100644 index ab20934..0000000 --- a/dist/service/src/models/StakingStakeTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingStakeTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingStakeTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0EAIC;AAED,sEAEC;AAED,gFAUC;AAED,kEAEC;AAED,4EAWC;AAxCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxResponse.d.ts b/dist/service/src/models/StakingStakeTxResponse.d.ts deleted file mode 100644 index 1c0b4a4..0000000 --- a/dist/service/src/models/StakingStakeTxResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface StakingStakeTxResponse - */ -export interface StakingStakeTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingStakeTxResponse - */ - chainActivity?: ChainActivity; -} -/** - * Check if a given object implements the StakingStakeTxResponse interface. - */ -export declare function instanceOfStakingStakeTxResponse(value: object): value is StakingStakeTxResponse; -export declare function StakingStakeTxResponseFromJSON(json: any): StakingStakeTxResponse; -export declare function StakingStakeTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxResponse; -export declare function StakingStakeTxResponseToJSON(json: any): StakingStakeTxResponse; -export declare function StakingStakeTxResponseToJSONTyped(value?: StakingStakeTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingStakeTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxResponse.d.ts.map b/dist/service/src/models/StakingStakeTxResponse.d.ts.map deleted file mode 100644 index 6a0cdb9..0000000 --- a/dist/service/src/models/StakingStakeTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingStakeTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingStakeTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAE/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAQnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlI"} \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxResponse.js b/dist/service/src/models/StakingStakeTxResponse.js deleted file mode 100644 index f0f8269..0000000 --- a/dist/service/src/models/StakingStakeTxResponse.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingStakeTxResponse = instanceOfStakingStakeTxResponse; -exports.StakingStakeTxResponseFromJSON = StakingStakeTxResponseFromJSON; -exports.StakingStakeTxResponseFromJSONTyped = StakingStakeTxResponseFromJSONTyped; -exports.StakingStakeTxResponseToJSON = StakingStakeTxResponseToJSON; -exports.StakingStakeTxResponseToJSONTyped = StakingStakeTxResponseToJSONTyped; -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the StakingStakeTxResponse interface. - */ -function instanceOfStakingStakeTxResponse(value) { - return true; -} -function StakingStakeTxResponseFromJSON(json) { - return StakingStakeTxResponseFromJSONTyped(json, false); -} -function StakingStakeTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - }; -} -function StakingStakeTxResponseToJSON(json) { - return StakingStakeTxResponseToJSONTyped(json, false); -} -function StakingStakeTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - }; -} -//# sourceMappingURL=StakingStakeTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingStakeTxResponse.js.map b/dist/service/src/models/StakingStakeTxResponse.js.map deleted file mode 100644 index 90521a5..0000000 --- a/dist/service/src/models/StakingStakeTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingStakeTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingStakeTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4EAEC;AAED,wEAEC;AAED,kFAQC;AAED,oEAEC;AAED,8EASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxRequest.d.ts b/dist/service/src/models/StakingWithdrawTxRequest.d.ts deleted file mode 100644 index 04b9941..0000000 --- a/dist/service/src/models/StakingWithdrawTxRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface StakingWithdrawTxRequest - */ -export interface StakingWithdrawTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - contractAddress: string; - /** - * The amount of asset to withdraw in native token units - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - amount?: string; -} -/** - * Check if a given object implements the StakingWithdrawTxRequest interface. - */ -export declare function instanceOfStakingWithdrawTxRequest(value: object): value is StakingWithdrawTxRequest; -export declare function StakingWithdrawTxRequestFromJSON(json: any): StakingWithdrawTxRequest; -export declare function StakingWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxRequest; -export declare function StakingWithdrawTxRequestToJSON(json: any): StakingWithdrawTxRequest; -export declare function StakingWithdrawTxRequestToJSONTyped(value?: StakingWithdrawTxRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingWithdrawTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxRequest.d.ts.map b/dist/service/src/models/StakingWithdrawTxRequest.d.ts.map deleted file mode 100644 index b07f1ce..0000000 --- a/dist/service/src/models/StakingWithdrawTxRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingWithdrawTxRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingWithdrawTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAInG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAUvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtI"} \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxRequest.js b/dist/service/src/models/StakingWithdrawTxRequest.js deleted file mode 100644 index 631a7a5..0000000 --- a/dist/service/src/models/StakingWithdrawTxRequest.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingWithdrawTxRequest = instanceOfStakingWithdrawTxRequest; -exports.StakingWithdrawTxRequestFromJSON = StakingWithdrawTxRequestFromJSON; -exports.StakingWithdrawTxRequestFromJSONTyped = StakingWithdrawTxRequestFromJSONTyped; -exports.StakingWithdrawTxRequestToJSON = StakingWithdrawTxRequestToJSON; -exports.StakingWithdrawTxRequestToJSONTyped = StakingWithdrawTxRequestToJSONTyped; -/** - * Check if a given object implements the StakingWithdrawTxRequest interface. - */ -function instanceOfStakingWithdrawTxRequest(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) - return false; - return true; -} -function StakingWithdrawTxRequestFromJSON(json) { - return StakingWithdrawTxRequestFromJSONTyped(json, false); -} -function StakingWithdrawTxRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'contractAddress': json['contractAddress'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function StakingWithdrawTxRequestToJSON(json) { - return StakingWithdrawTxRequestToJSONTyped(json, false); -} -function StakingWithdrawTxRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'contractAddress': value['contractAddress'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=StakingWithdrawTxRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxRequest.js.map b/dist/service/src/models/StakingWithdrawTxRequest.js.map deleted file mode 100644 index 96b1fb7..0000000 --- a/dist/service/src/models/StakingWithdrawTxRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingWithdrawTxRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingWithdrawTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gFAIC;AAED,4EAEC;AAED,sFAUC;AAED,wEAEC;AAED,kFAWC;AAxCD;;GAEG;AACH,SAAgB,kCAAkC,CAAC,KAAa;IAC5D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,KAAuC,EAAE,sBAA+B,KAAK;IAC7H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxResponse.d.ts b/dist/service/src/models/StakingWithdrawTxResponse.d.ts deleted file mode 100644 index 26eec2b..0000000 --- a/dist/service/src/models/StakingWithdrawTxResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ChainActivity } from './ChainActivity'; -/** - * - * @export - * @interface StakingWithdrawTxResponse - */ -export interface StakingWithdrawTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingWithdrawTxResponse - */ - chainActivity?: ChainActivity; -} -/** - * Check if a given object implements the StakingWithdrawTxResponse interface. - */ -export declare function instanceOfStakingWithdrawTxResponse(value: object): value is StakingWithdrawTxResponse; -export declare function StakingWithdrawTxResponseFromJSON(json: any): StakingWithdrawTxResponse; -export declare function StakingWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxResponse; -export declare function StakingWithdrawTxResponseToJSON(json: any): StakingWithdrawTxResponse; -export declare function StakingWithdrawTxResponseToJSONTyped(value?: StakingWithdrawTxResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=StakingWithdrawTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxResponse.d.ts.map b/dist/service/src/models/StakingWithdrawTxResponse.d.ts.map deleted file mode 100644 index d12876d..0000000 --- a/dist/service/src/models/StakingWithdrawTxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingWithdrawTxResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/StakingWithdrawTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAErG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAQzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxI"} \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxResponse.js b/dist/service/src/models/StakingWithdrawTxResponse.js deleted file mode 100644 index e2600c4..0000000 --- a/dist/service/src/models/StakingWithdrawTxResponse.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStakingWithdrawTxResponse = instanceOfStakingWithdrawTxResponse; -exports.StakingWithdrawTxResponseFromJSON = StakingWithdrawTxResponseFromJSON; -exports.StakingWithdrawTxResponseFromJSONTyped = StakingWithdrawTxResponseFromJSONTyped; -exports.StakingWithdrawTxResponseToJSON = StakingWithdrawTxResponseToJSON; -exports.StakingWithdrawTxResponseToJSONTyped = StakingWithdrawTxResponseToJSONTyped; -const ChainActivity_1 = require("./ChainActivity"); -/** - * Check if a given object implements the StakingWithdrawTxResponse interface. - */ -function instanceOfStakingWithdrawTxResponse(value) { - return true; -} -function StakingWithdrawTxResponseFromJSON(json) { - return StakingWithdrawTxResponseFromJSONTyped(json, false); -} -function StakingWithdrawTxResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), - }; -} -function StakingWithdrawTxResponseToJSON(json) { - return StakingWithdrawTxResponseToJSONTyped(json, false); -} -function StakingWithdrawTxResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), - }; -} -//# sourceMappingURL=StakingWithdrawTxResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/StakingWithdrawTxResponse.js.map b/dist/service/src/models/StakingWithdrawTxResponse.js.map deleted file mode 100644 index f087f72..0000000 --- a/dist/service/src/models/StakingWithdrawTxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StakingWithdrawTxResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/StakingWithdrawTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kFAEC;AAED,8EAEC;AAED,wFAQC;AAED,0EAEC;AAED,oFASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,KAAwC,EAAE,sBAA+B,KAAK;IAC/H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Stats.d.ts b/dist/service/src/models/Stats.d.ts deleted file mode 100644 index e3d2df9..0000000 --- a/dist/service/src/models/Stats.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolStats } from './LendingpoolStats'; -import type { StablecoinSystemStats } from './StablecoinSystemStats'; -/** - * - * @export - * @interface Stats - */ -export interface Stats { - /** - * - * @type {StablecoinSystemStats} - * @memberof Stats - */ - stablecoinSystem: StablecoinSystemStats; - /** - * - * @type {LendingpoolStats} - * @memberof Stats - */ - lendingpool: LendingpoolStats; -} -/** - * Check if a given object implements the Stats interface. - */ -export declare function instanceOfStats(value: object): value is Stats; -export declare function StatsFromJSON(json: any): Stats; -export declare function StatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stats; -export declare function StatsToJSON(json: any): Stats; -export declare function StatsToJSONTyped(value?: Stats | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Stats.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Stats.d.ts.map b/dist/service/src/models/Stats.d.ts.map deleted file mode 100644 index 2949cd3..0000000 --- a/dist/service/src/models/Stats.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Stats.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,gBAAgB,EAAE,qBAAqB,CAAC;IACxC;;;;OAIG;IACH,WAAW,EAAE,gBAAgB,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAI7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CASjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhG"} \ No newline at end of file diff --git a/dist/service/src/models/Stats.js b/dist/service/src/models/Stats.js deleted file mode 100644 index 5922d76..0000000 --- a/dist/service/src/models/Stats.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfStats = instanceOfStats; -exports.StatsFromJSON = StatsFromJSON; -exports.StatsFromJSONTyped = StatsFromJSONTyped; -exports.StatsToJSON = StatsToJSON; -exports.StatsToJSONTyped = StatsToJSONTyped; -const LendingpoolStats_1 = require("./LendingpoolStats"); -const StablecoinSystemStats_1 = require("./StablecoinSystemStats"); -/** - * Check if a given object implements the Stats interface. - */ -function instanceOfStats(value) { - if (!('stablecoinSystem' in value) || value['stablecoinSystem'] === undefined) - return false; - if (!('lendingpool' in value) || value['lendingpool'] === undefined) - return false; - return true; -} -function StatsFromJSON(json) { - return StatsFromJSONTyped(json, false); -} -function StatsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'stablecoinSystem': (0, StablecoinSystemStats_1.StablecoinSystemStatsFromJSON)(json['stablecoinSystem']), - 'lendingpool': (0, LendingpoolStats_1.LendingpoolStatsFromJSON)(json['lendingpool']), - }; -} -function StatsToJSON(json) { - return StatsToJSONTyped(json, false); -} -function StatsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'stablecoinSystem': (0, StablecoinSystemStats_1.StablecoinSystemStatsToJSON)(value['stablecoinSystem']), - 'lendingpool': (0, LendingpoolStats_1.LendingpoolStatsToJSON)(value['lendingpool']), - }; -} -//# sourceMappingURL=Stats.js.map \ No newline at end of file diff --git a/dist/service/src/models/Stats.js.map b/dist/service/src/models/Stats.js.map deleted file mode 100644 index 1c5e74a..0000000 --- a/dist/service/src/models/Stats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Stats.js","sourceRoot":"","sources":["../../../../src/service/src/models/Stats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0CAIC;AAED,sCAEC;AAED,gDASC;AAED,kCAEC;AAED,4CAUC;AAxED,yDAK4B;AAE5B,mEAKiC;AAsBjC;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,kBAAkB,EAAE,IAAA,qDAA6B,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC3E,aAAa,EAAE,IAAA,2CAAwB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAoB,EAAE,sBAA+B,KAAK;IACvF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,kBAAkB,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1E,aAAa,EAAE,IAAA,yCAAsB,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Symbol.d.ts b/dist/service/src/models/Symbol.d.ts deleted file mode 100644 index f851850..0000000 --- a/dist/service/src/models/Symbol.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * Symbol representation - * @export - */ -export declare const Symbol: { - readonly USD: "USD"; - readonly DAI: "DAI"; - readonly USDT: "USDT"; - readonly USDC: "USDC"; - readonly WBTC: "WBTC"; - readonly ETH: "ETH"; - readonly WETH: "WETH"; - readonly ZAR: "ZAR"; - readonly TMN: "TMN"; -}; -export type Symbol = typeof Symbol[keyof typeof Symbol]; -export declare function instanceOfSymbol(value: any): boolean; -export declare function SymbolFromJSON(json: any): Symbol; -export declare function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol; -export declare function SymbolToJSON(value?: Symbol | null): any; -export declare function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol; -//# sourceMappingURL=Symbol.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Symbol.d.ts.map b/dist/service/src/models/Symbol.d.ts.map deleted file mode 100644 index f5beaba..0000000 --- a/dist/service/src/models/Symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAGxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"} \ No newline at end of file diff --git a/dist/service/src/models/Symbol.js b/dist/service/src/models/Symbol.js deleted file mode 100644 index 3496346..0000000 --- a/dist/service/src/models/Symbol.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Symbol = void 0; -exports.instanceOfSymbol = instanceOfSymbol; -exports.SymbolFromJSON = SymbolFromJSON; -exports.SymbolFromJSONTyped = SymbolFromJSONTyped; -exports.SymbolToJSON = SymbolToJSON; -exports.SymbolToJSONTyped = SymbolToJSONTyped; -/** - * Symbol representation - * @export - */ -exports.Symbol = { - USD: 'USD', - DAI: 'DAI', - USDT: 'USDT', - USDC: 'USDC', - WBTC: 'WBTC', - ETH: 'ETH', - WETH: 'WETH', - ZAR: 'ZAR', - TMN: 'TMN' -}; -function instanceOfSymbol(value) { - for (const key in exports.Symbol) { - if (Object.prototype.hasOwnProperty.call(exports.Symbol, key)) { - if (exports.Symbol[key] === value) { - return true; - } - } - } - return false; -} -function SymbolFromJSON(json) { - return SymbolFromJSONTyped(json, false); -} -function SymbolFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SymbolToJSON(value) { - return value; -} -function SymbolToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=Symbol.js.map \ No newline at end of file diff --git a/dist/service/src/models/Symbol.js.map b/dist/service/src/models/Symbol.js.map deleted file mode 100644 index f4e87e8..0000000 --- a/dist/service/src/models/Symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Symbol.js","sourceRoot":"","sources":["../../../../src/service/src/models/Symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqBH,4CASC;AAED,wCAEC;AAED,kDAEC;AAED,oCAEC;AAED,8CAEC;AA3CD;;;GAGG;AACU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX,SAAgB,gBAAgB,CAAC,KAAU;IACvC,KAAK,MAAM,GAAG,IAAI,cAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,cAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YACpD,IAAI,cAAM,CAAC,GAA0B,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,OAAO,IAAc,CAAC;AAC1B,CAAC;AAED,SAAgB,YAAY,CAAC,KAAqB;IAC9C,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAAU,EAAE,mBAA4B;IACtE,OAAO,KAAe,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemBadDebt.d.ts b/dist/service/src/models/SystemBadDebt.d.ts deleted file mode 100644 index e8d14ce..0000000 --- a/dist/service/src/models/SystemBadDebt.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System bad debt - * @export - * @interface SystemBadDebt - */ -export interface SystemBadDebt { -} -/** - * Check if a given object implements the SystemBadDebt interface. - */ -export declare function instanceOfSystemBadDebt(value: object): value is SystemBadDebt; -export declare function SystemBadDebtFromJSON(json: any): SystemBadDebt; -export declare function SystemBadDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemBadDebt; -export declare function SystemBadDebtToJSON(json: any): SystemBadDebt; -export declare function SystemBadDebtToJSONTyped(value?: SystemBadDebt | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemBadDebt.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemBadDebt.d.ts.map b/dist/service/src/models/SystemBadDebt.d.ts.map deleted file mode 100644 index 82959c8..0000000 --- a/dist/service/src/models/SystemBadDebt.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemBadDebt.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemBadDebt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEhH"} \ No newline at end of file diff --git a/dist/service/src/models/SystemBadDebt.js b/dist/service/src/models/SystemBadDebt.js deleted file mode 100644 index f581fa0..0000000 --- a/dist/service/src/models/SystemBadDebt.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemBadDebt = instanceOfSystemBadDebt; -exports.SystemBadDebtFromJSON = SystemBadDebtFromJSON; -exports.SystemBadDebtFromJSONTyped = SystemBadDebtFromJSONTyped; -exports.SystemBadDebtToJSON = SystemBadDebtToJSON; -exports.SystemBadDebtToJSONTyped = SystemBadDebtToJSONTyped; -/** - * Check if a given object implements the SystemBadDebt interface. - */ -function instanceOfSystemBadDebt(value) { - return true; -} -function SystemBadDebtFromJSON(json) { - return SystemBadDebtFromJSONTyped(json, false); -} -function SystemBadDebtFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemBadDebtToJSON(json) { - return SystemBadDebtToJSONTyped(json, false); -} -function SystemBadDebtToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemBadDebt.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemBadDebt.js.map b/dist/service/src/models/SystemBadDebt.js.map deleted file mode 100644 index 036994e..0000000 --- a/dist/service/src/models/SystemBadDebt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemBadDebt.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemBadDebt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,0DAEC;AAED,sDAEC;AAED,gEAEC;AAED,kDAEC;AAED,4DAEC;AArBD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemDebt.d.ts b/dist/service/src/models/SystemDebt.d.ts deleted file mode 100644 index 7888efc..0000000 --- a/dist/service/src/models/SystemDebt.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System debt - * @export - * @interface SystemDebt - */ -export interface SystemDebt { -} -/** - * Check if a given object implements the SystemDebt interface. - */ -export declare function instanceOfSystemDebt(value: object): value is SystemDebt; -export declare function SystemDebtFromJSON(json: any): SystemDebt; -export declare function SystemDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebt; -export declare function SystemDebtToJSON(json: any): SystemDebt; -export declare function SystemDebtToJSONTyped(value?: SystemDebt | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemDebt.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemDebt.d.ts.map b/dist/service/src/models/SystemDebt.d.ts.map deleted file mode 100644 index c93d067..0000000 --- a/dist/service/src/models/SystemDebt.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemDebt.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemDebt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAE3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE1G"} \ No newline at end of file diff --git a/dist/service/src/models/SystemDebt.js b/dist/service/src/models/SystemDebt.js deleted file mode 100644 index 373fb57..0000000 --- a/dist/service/src/models/SystemDebt.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemDebt = instanceOfSystemDebt; -exports.SystemDebtFromJSON = SystemDebtFromJSON; -exports.SystemDebtFromJSONTyped = SystemDebtFromJSONTyped; -exports.SystemDebtToJSON = SystemDebtToJSON; -exports.SystemDebtToJSONTyped = SystemDebtToJSONTyped; -/** - * Check if a given object implements the SystemDebt interface. - */ -function instanceOfSystemDebt(value) { - return true; -} -function SystemDebtFromJSON(json) { - return SystemDebtFromJSONTyped(json, false); -} -function SystemDebtFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemDebtToJSON(json) { - return SystemDebtToJSONTyped(json, false); -} -function SystemDebtToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemDebt.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemDebt.js.map b/dist/service/src/models/SystemDebt.js.map deleted file mode 100644 index 1c57120..0000000 --- a/dist/service/src/models/SystemDebt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemDebt.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemDebt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,oDAEC;AAED,gDAEC;AAED,0DAEC;AAED,4CAEC;AAED,sDAEC;AArBD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemDebtCeiling.d.ts b/dist/service/src/models/SystemDebtCeiling.d.ts deleted file mode 100644 index 033dd02..0000000 --- a/dist/service/src/models/SystemDebtCeiling.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System debt ceiling - * @export - * @interface SystemDebtCeiling - */ -export interface SystemDebtCeiling { -} -/** - * Check if a given object implements the SystemDebtCeiling interface. - */ -export declare function instanceOfSystemDebtCeiling(value: object): value is SystemDebtCeiling; -export declare function SystemDebtCeilingFromJSON(json: any): SystemDebtCeiling; -export declare function SystemDebtCeilingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebtCeiling; -export declare function SystemDebtCeilingToJSON(json: any): SystemDebtCeiling; -export declare function SystemDebtCeilingToJSONTyped(value?: SystemDebtCeiling | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemDebtCeiling.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemDebtCeiling.d.ts.map b/dist/service/src/models/SystemDebtCeiling.d.ts.map deleted file mode 100644 index 988768b..0000000 --- a/dist/service/src/models/SystemDebtCeiling.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemDebtCeiling.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemDebtCeiling.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;CACjC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAEzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAExH"} \ No newline at end of file diff --git a/dist/service/src/models/SystemDebtCeiling.js b/dist/service/src/models/SystemDebtCeiling.js deleted file mode 100644 index 225aeea..0000000 --- a/dist/service/src/models/SystemDebtCeiling.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemDebtCeiling = instanceOfSystemDebtCeiling; -exports.SystemDebtCeilingFromJSON = SystemDebtCeilingFromJSON; -exports.SystemDebtCeilingFromJSONTyped = SystemDebtCeilingFromJSONTyped; -exports.SystemDebtCeilingToJSON = SystemDebtCeilingToJSON; -exports.SystemDebtCeilingToJSONTyped = SystemDebtCeilingToJSONTyped; -/** - * Check if a given object implements the SystemDebtCeiling interface. - */ -function instanceOfSystemDebtCeiling(value) { - return true; -} -function SystemDebtCeilingFromJSON(json) { - return SystemDebtCeilingFromJSONTyped(json, false); -} -function SystemDebtCeilingFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemDebtCeilingToJSON(json) { - return SystemDebtCeilingToJSONTyped(json, false); -} -function SystemDebtCeilingToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemDebtCeiling.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemDebtCeiling.js.map b/dist/service/src/models/SystemDebtCeiling.js.map deleted file mode 100644 index 152b59d..0000000 --- a/dist/service/src/models/SystemDebtCeiling.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemDebtCeiling.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemDebtCeiling.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,kEAEC;AAED,8DAEC;AAED,wEAEC;AAED,0DAEC;AAED,oEAEC;AArBD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplus.d.ts b/dist/service/src/models/SystemSurplus.d.ts deleted file mode 100644 index 0402e7a..0000000 --- a/dist/service/src/models/SystemSurplus.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System surplus - * @export - * @interface SystemSurplus - */ -export interface SystemSurplus { -} -/** - * Check if a given object implements the SystemSurplus interface. - */ -export declare function instanceOfSystemSurplus(value: object): value is SystemSurplus; -export declare function SystemSurplusFromJSON(json: any): SystemSurplus; -export declare function SystemSurplusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplus; -export declare function SystemSurplusToJSON(json: any): SystemSurplus; -export declare function SystemSurplusToJSONTyped(value?: SystemSurplus | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemSurplus.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplus.d.ts.map b/dist/service/src/models/SystemSurplus.d.ts.map deleted file mode 100644 index 13b12ee..0000000 --- a/dist/service/src/models/SystemSurplus.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplus.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEhH"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplus.js b/dist/service/src/models/SystemSurplus.js deleted file mode 100644 index a85191d..0000000 --- a/dist/service/src/models/SystemSurplus.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemSurplus = instanceOfSystemSurplus; -exports.SystemSurplusFromJSON = SystemSurplusFromJSON; -exports.SystemSurplusFromJSONTyped = SystemSurplusFromJSONTyped; -exports.SystemSurplusToJSON = SystemSurplusToJSON; -exports.SystemSurplusToJSONTyped = SystemSurplusToJSONTyped; -/** - * Check if a given object implements the SystemSurplus interface. - */ -function instanceOfSystemSurplus(value) { - return true; -} -function SystemSurplusFromJSON(json) { - return SystemSurplusFromJSONTyped(json, false); -} -function SystemSurplusFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemSurplusToJSON(json) { - return SystemSurplusToJSONTyped(json, false); -} -function SystemSurplusToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemSurplus.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplus.js.map b/dist/service/src/models/SystemSurplus.js.map deleted file mode 100644 index 01f8d48..0000000 --- a/dist/service/src/models/SystemSurplus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplus.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,0DAEC;AAED,sDAEC;AAED,gEAEC;AAED,kDAEC;AAED,4DAEC;AArBD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusBuffer.d.ts b/dist/service/src/models/SystemSurplusBuffer.d.ts deleted file mode 100644 index 8f87c51..0000000 --- a/dist/service/src/models/SystemSurplusBuffer.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System surplus buffer - * @export - * @interface SystemSurplusBuffer - */ -export interface SystemSurplusBuffer { -} -/** - * Check if a given object implements the SystemSurplusBuffer interface. - */ -export declare function instanceOfSystemSurplusBuffer(value: object): value is SystemSurplusBuffer; -export declare function SystemSurplusBufferFromJSON(json: any): SystemSurplusBuffer; -export declare function SystemSurplusBufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusBuffer; -export declare function SystemSurplusBufferToJSON(json: any): SystemSurplusBuffer; -export declare function SystemSurplusBufferToJSONTyped(value?: SystemSurplusBuffer | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemSurplusBuffer.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusBuffer.d.ts.map b/dist/service/src/models/SystemSurplusBuffer.d.ts.map deleted file mode 100644 index 09b8848..0000000 --- a/dist/service/src/models/SystemSurplusBuffer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplusBuffer.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplusBuffer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;CACnC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAE7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE5H"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusBuffer.js b/dist/service/src/models/SystemSurplusBuffer.js deleted file mode 100644 index d5c6973..0000000 --- a/dist/service/src/models/SystemSurplusBuffer.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemSurplusBuffer = instanceOfSystemSurplusBuffer; -exports.SystemSurplusBufferFromJSON = SystemSurplusBufferFromJSON; -exports.SystemSurplusBufferFromJSONTyped = SystemSurplusBufferFromJSONTyped; -exports.SystemSurplusBufferToJSON = SystemSurplusBufferToJSON; -exports.SystemSurplusBufferToJSONTyped = SystemSurplusBufferToJSONTyped; -/** - * Check if a given object implements the SystemSurplusBuffer interface. - */ -function instanceOfSystemSurplusBuffer(value) { - return true; -} -function SystemSurplusBufferFromJSON(json) { - return SystemSurplusBufferFromJSONTyped(json, false); -} -function SystemSurplusBufferFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemSurplusBufferToJSON(json) { - return SystemSurplusBufferToJSONTyped(json, false); -} -function SystemSurplusBufferToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemSurplusBuffer.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusBuffer.js.map b/dist/service/src/models/SystemSurplusBuffer.js.map deleted file mode 100644 index 51a4c36..0000000 --- a/dist/service/src/models/SystemSurplusBuffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplusBuffer.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplusBuffer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,sEAEC;AAED,kEAEC;AAED,4EAEC;AAED,8DAEC;AAED,wEAEC;AArBD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusLotSize.d.ts b/dist/service/src/models/SystemSurplusLotSize.d.ts deleted file mode 100644 index 600fc45..0000000 --- a/dist/service/src/models/SystemSurplusLotSize.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * System surplus lot size - * @export - * @interface SystemSurplusLotSize - */ -export interface SystemSurplusLotSize { -} -/** - * Check if a given object implements the SystemSurplusLotSize interface. - */ -export declare function instanceOfSystemSurplusLotSize(value: object): value is SystemSurplusLotSize; -export declare function SystemSurplusLotSizeFromJSON(json: any): SystemSurplusLotSize; -export declare function SystemSurplusLotSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusLotSize; -export declare function SystemSurplusLotSizeToJSON(json: any): SystemSurplusLotSize; -export declare function SystemSurplusLotSizeToJSONTyped(value?: SystemSurplusLotSize | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SystemSurplusLotSize.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusLotSize.d.ts.map b/dist/service/src/models/SystemSurplusLotSize.d.ts.map deleted file mode 100644 index dbc3959..0000000 --- a/dist/service/src/models/SystemSurplusLotSize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplusLotSize.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplusLotSize.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;CACpC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAE3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE9H"} \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusLotSize.js b/dist/service/src/models/SystemSurplusLotSize.js deleted file mode 100644 index 2c64852..0000000 --- a/dist/service/src/models/SystemSurplusLotSize.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSystemSurplusLotSize = instanceOfSystemSurplusLotSize; -exports.SystemSurplusLotSizeFromJSON = SystemSurplusLotSizeFromJSON; -exports.SystemSurplusLotSizeFromJSONTyped = SystemSurplusLotSizeFromJSONTyped; -exports.SystemSurplusLotSizeToJSON = SystemSurplusLotSizeToJSON; -exports.SystemSurplusLotSizeToJSONTyped = SystemSurplusLotSizeToJSONTyped; -/** - * Check if a given object implements the SystemSurplusLotSize interface. - */ -function instanceOfSystemSurplusLotSize(value) { - return true; -} -function SystemSurplusLotSizeFromJSON(json) { - return SystemSurplusLotSizeFromJSONTyped(json, false); -} -function SystemSurplusLotSizeFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SystemSurplusLotSizeToJSON(json) { - return SystemSurplusLotSizeToJSONTyped(json, false); -} -function SystemSurplusLotSizeToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=SystemSurplusLotSize.js.map \ No newline at end of file diff --git a/dist/service/src/models/SystemSurplusLotSize.js.map b/dist/service/src/models/SystemSurplusLotSize.js.map deleted file mode 100644 index 5bf7972..0000000 --- a/dist/service/src/models/SystemSurplusLotSize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SystemSurplusLotSize.js","sourceRoot":"","sources":["../../../../src/service/src/models/SystemSurplusLotSize.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,wEAEC;AAED,oEAEC;AAED,8EAEC;AAED,gEAEC;AAED,0EAEC;AArBD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/TimeRange.d.ts b/dist/service/src/models/TimeRange.d.ts deleted file mode 100644 index dca4f65..0000000 --- a/dist/service/src/models/TimeRange.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TimeRange - */ -export interface TimeRange { - /** - * - * @type {Date} - * @memberof TimeRange - */ - from?: Date; - /** - * - * @type {Date} - * @memberof TimeRange - */ - to?: Date; -} -/** - * Check if a given object implements the TimeRange interface. - */ -export declare function instanceOfTimeRange(value: object): value is TimeRange; -export declare function TimeRangeFromJSON(json: any): TimeRange; -export declare function TimeRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeRange; -export declare function TimeRangeToJSON(json: any): TimeRange; -export declare function TimeRangeToJSONTyped(value?: TimeRange | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TimeRange.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/TimeRange.d.ts.map b/dist/service/src/models/TimeRange.d.ts.map deleted file mode 100644 index a957b52..0000000 --- a/dist/service/src/models/TimeRange.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TimeRange.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/TimeRange.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,EAAE,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAErE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/service/src/models/TimeRange.js b/dist/service/src/models/TimeRange.js deleted file mode 100644 index cdae1a6..0000000 --- a/dist/service/src/models/TimeRange.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTimeRange = instanceOfTimeRange; -exports.TimeRangeFromJSON = TimeRangeFromJSON; -exports.TimeRangeFromJSONTyped = TimeRangeFromJSONTyped; -exports.TimeRangeToJSON = TimeRangeToJSON; -exports.TimeRangeToJSONTyped = TimeRangeToJSONTyped; -/** - * Check if a given object implements the TimeRange interface. - */ -function instanceOfTimeRange(value) { - return true; -} -function TimeRangeFromJSON(json) { - return TimeRangeFromJSONTyped(json, false); -} -function TimeRangeFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'from': json['from'] == null ? undefined : (new Date(json['from'])), - 'to': json['to'] == null ? undefined : (new Date(json['to'])), - }; -} -function TimeRangeToJSON(json) { - return TimeRangeToJSONTyped(json, false); -} -function TimeRangeToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'from': value['from'] == null ? undefined : ((value['from']).toISOString()), - 'to': value['to'] == null ? undefined : ((value['to']).toISOString()), - }; -} -//# sourceMappingURL=TimeRange.js.map \ No newline at end of file diff --git a/dist/service/src/models/TimeRange.js.map b/dist/service/src/models/TimeRange.js.map deleted file mode 100644 index e3eb690..0000000 --- a/dist/service/src/models/TimeRange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TimeRange.js","sourceRoot":"","sources":["../../../../src/service/src/models/TimeRange.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAEC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AApCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3E,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Timestamp.d.ts b/dist/service/src/models/Timestamp.d.ts deleted file mode 100644 index 8d02a2a..0000000 --- a/dist/service/src/models/Timestamp.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Timestamp - */ -export interface Timestamp { - /** - * Jalaali date - * @type {string} - * @memberof Timestamp - */ - jalaali: string; - /** - * Gregorian date - * @type {string} - * @memberof Timestamp - */ - gregorian: string; -} -/** - * Check if a given object implements the Timestamp interface. - */ -export declare function instanceOfTimestamp(value: object): value is Timestamp; -export declare function TimestampFromJSON(json: any): Timestamp; -export declare function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp; -export declare function TimestampToJSON(json: any): Timestamp; -export declare function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Timestamp.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Timestamp.d.ts.map b/dist/service/src/models/Timestamp.d.ts.map deleted file mode 100644 index 4960f8e..0000000 --- a/dist/service/src/models/Timestamp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/service/src/models/Timestamp.js b/dist/service/src/models/Timestamp.js deleted file mode 100644 index 45bc782..0000000 --- a/dist/service/src/models/Timestamp.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTimestamp = instanceOfTimestamp; -exports.TimestampFromJSON = TimestampFromJSON; -exports.TimestampFromJSONTyped = TimestampFromJSONTyped; -exports.TimestampToJSON = TimestampToJSON; -exports.TimestampToJSONTyped = TimestampToJSONTyped; -/** - * Check if a given object implements the Timestamp interface. - */ -function instanceOfTimestamp(value) { - if (!('jalaali' in value) || value['jalaali'] === undefined) - return false; - if (!('gregorian' in value) || value['gregorian'] === undefined) - return false; - return true; -} -function TimestampFromJSON(json) { - return TimestampFromJSONTyped(json, false); -} -function TimestampFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'jalaali': json['jalaali'], - 'gregorian': json['gregorian'], - }; -} -function TimestampToJSON(json) { - return TimestampToJSONTyped(json, false); -} -function TimestampToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'jalaali': value['jalaali'], - 'gregorian': value['gregorian'], - }; -} -//# sourceMappingURL=Timestamp.js.map \ No newline at end of file diff --git a/dist/service/src/models/Timestamp.js.map b/dist/service/src/models/Timestamp.js.map deleted file mode 100644 index 512c23e..0000000 --- a/dist/service/src/models/Timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Timestamp.js","sourceRoot":"","sources":["../../../../src/service/src/models/Timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAtCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Token.d.ts b/dist/service/src/models/Token.d.ts deleted file mode 100644 index 44b0f4a..0000000 --- a/dist/service/src/models/Token.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -/** - * - * @export - * @interface Token - */ -export interface Token { - /** - * The name of the token. - * @type {string} - * @memberof Token - */ - name: string; - /** - * - * @type {Symbol} - * @memberof Token - */ - symbol: Symbol; - /** - * The number of decimals for the token. - * @type {number} - * @memberof Token - */ - decimals: number; - /** - * The Ethereum address of the token. - * @type {string} - * @memberof Token - */ - address: string; - /** - * The URI of the token's logo. - * @type {string} - * @memberof Token - */ - logoUri: string; - /** - * The chain ID of the token. - * @type {number} - * @memberof Token - */ - chainId: number; - /** - * The Persian name of the token. - * @type {string} - * @memberof Token - */ - persianName: string; -} -/** - * Check if a given object implements the Token interface. - */ -export declare function instanceOfToken(value: object): value is Token; -export declare function TokenFromJSON(json: any): Token; -export declare function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Token; -export declare function TokenToJSON(json: any): Token; -export declare function TokenToJSONTyped(value?: Token | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Token.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Token.d.ts.map b/dist/service/src/models/Token.d.ts.map deleted file mode 100644 index 15d8003..0000000 --- a/dist/service/src/models/Token.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAID;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAS7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAcjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAehG"} \ No newline at end of file diff --git a/dist/service/src/models/Token.js b/dist/service/src/models/Token.js deleted file mode 100644 index 028f5f9..0000000 --- a/dist/service/src/models/Token.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfToken = instanceOfToken; -exports.TokenFromJSON = TokenFromJSON; -exports.TokenFromJSONTyped = TokenFromJSONTyped; -exports.TokenToJSON = TokenToJSON; -exports.TokenToJSONTyped = TokenToJSONTyped; -const Symbol_1 = require("./Symbol"); -/** - * Check if a given object implements the Token interface. - */ -function instanceOfToken(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('decimals' in value) || value['decimals'] === undefined) - return false; - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) - return false; - if (!('chainId' in value) || value['chainId'] === undefined) - return false; - if (!('persianName' in value) || value['persianName'] === undefined) - return false; - return true; -} -function TokenFromJSON(json) { - return TokenFromJSONTyped(json, false); -} -function TokenFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'decimals': json['decimals'], - 'address': json['address'], - 'logoUri': json['logoUri'], - 'chainId': json['chainId'], - 'persianName': json['persianName'], - }; -} -function TokenToJSON(json) { - return TokenToJSONTyped(json, false); -} -function TokenToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'decimals': value['decimals'], - 'address': value['address'], - 'logoUri': value['logoUri'], - 'chainId': value['chainId'], - 'persianName': value['persianName'], - }; -} -//# sourceMappingURL=Token.js.map \ No newline at end of file diff --git a/dist/service/src/models/Token.js.map b/dist/service/src/models/Token.js.map deleted file mode 100644 index 6bd90cc..0000000 --- a/dist/service/src/models/Token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../../src/service/src/models/Token.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkEH,0CASC;AAED,sCAEC;AAED,gDAcC;AAED,kCAEC;AAED,4CAeC;AAhHD,qCAKkB;AAsDlB;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,aA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C;QAC3B,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/TradeType.d.ts b/dist/service/src/models/TradeType.d.ts deleted file mode 100644 index 22acee6..0000000 --- a/dist/service/src/models/TradeType.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const TradeType: { - readonly EXACT_INPUT: "ExactInput"; - readonly EXACT_OUTPUT: "ExactOutput"; -}; -export type TradeType = typeof TradeType[keyof typeof TradeType]; -export declare function instanceOfTradeType(value: any): boolean; -export declare function TradeTypeFromJSON(json: any): TradeType; -export declare function TradeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeType; -export declare function TradeTypeToJSON(value?: TradeType | null): any; -export declare function TradeTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TradeType; -//# sourceMappingURL=TradeType.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/TradeType.d.ts.map b/dist/service/src/models/TradeType.d.ts.map deleted file mode 100644 index 4fdd0ea..0000000 --- a/dist/service/src/models/TradeType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TradeType.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/TradeType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/service/src/models/TradeType.js b/dist/service/src/models/TradeType.js deleted file mode 100644 index 0aeee97..0000000 --- a/dist/service/src/models/TradeType.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TradeType = void 0; -exports.instanceOfTradeType = instanceOfTradeType; -exports.TradeTypeFromJSON = TradeTypeFromJSON; -exports.TradeTypeFromJSONTyped = TradeTypeFromJSONTyped; -exports.TradeTypeToJSON = TradeTypeToJSON; -exports.TradeTypeToJSONTyped = TradeTypeToJSONTyped; -/** - * - * @export - */ -exports.TradeType = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -}; -function instanceOfTradeType(value) { - for (const key in exports.TradeType) { - if (Object.prototype.hasOwnProperty.call(exports.TradeType, key)) { - if (exports.TradeType[key] === value) { - return true; - } - } - } - return false; -} -function TradeTypeFromJSON(json) { - return TradeTypeFromJSONTyped(json, false); -} -function TradeTypeFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function TradeTypeToJSON(value) { - return value; -} -function TradeTypeToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=TradeType.js.map \ No newline at end of file diff --git a/dist/service/src/models/TradeType.js.map b/dist/service/src/models/TradeType.js.map deleted file mode 100644 index aa8557a..0000000 --- a/dist/service/src/models/TradeType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TradeType.js","sourceRoot":"","sources":["../../../../src/service/src/models/TradeType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AApCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Type.d.ts b/dist/service/src/models/Type.d.ts deleted file mode 100644 index 1077d53..0000000 --- a/dist/service/src/models/Type.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Type - */ -export interface Type { - /** - * - * @type {string} - * @memberof Type - */ - name: string; - /** - * - * @type {string} - * @memberof Type - */ - type: string; -} -/** - * Check if a given object implements the Type interface. - */ -export declare function instanceOfType(value: object): value is Type; -export declare function TypeFromJSON(json: any): Type; -export declare function TypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Type; -export declare function TypeToJSON(json: any): Type; -export declare function TypeToJSONTyped(value?: Type | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Type.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Type.d.ts.map b/dist/service/src/models/Type.d.ts.map deleted file mode 100644 index ca10aa8..0000000 --- a/dist/service/src/models/Type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/Type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAI3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAS/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9F"} \ No newline at end of file diff --git a/dist/service/src/models/Type.js b/dist/service/src/models/Type.js deleted file mode 100644 index e9ddaed..0000000 --- a/dist/service/src/models/Type.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfType = instanceOfType; -exports.TypeFromJSON = TypeFromJSON; -exports.TypeFromJSONTyped = TypeFromJSONTyped; -exports.TypeToJSON = TypeToJSON; -exports.TypeToJSONTyped = TypeToJSONTyped; -/** - * Check if a given object implements the Type interface. - */ -function instanceOfType(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - return true; -} -function TypeFromJSON(json) { - return TypeFromJSONTyped(json, false); -} -function TypeFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'type': json['type'], - }; -} -function TypeToJSON(json) { - return TypeToJSONTyped(json, false); -} -function TypeToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'type': value['type'], - }; -} -//# sourceMappingURL=Type.js.map \ No newline at end of file diff --git a/dist/service/src/models/Type.js.map b/dist/service/src/models/Type.js.map deleted file mode 100644 index 63edb23..0000000 --- a/dist/service/src/models/Type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../../src/service/src/models/Type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wCAIC;AAED,oCAEC;AAED,8CASC;AAED,gCAEC;AAED,0CAUC;AAtCD;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/TypedData.d.ts b/dist/service/src/models/TypedData.d.ts deleted file mode 100644 index 5b25e13..0000000 --- a/dist/service/src/models/TypedData.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Type } from './Type'; -import type { TypedDataDomain } from './TypedDataDomain'; -/** - * - * @export - * @interface TypedData - */ -export interface TypedData { - /** - * A map where each key is a string and each value is a list of Type - * @type {{ [key: string]: Array | undefined; }} - * @memberof TypedData - */ - types: { - [key: string]: Array | undefined; - }; - /** - * - * @type {string} - * @memberof TypedData - */ - primaryType: string; - /** - * - * @type {TypedDataDomain} - * @memberof TypedData - */ - domain: TypedDataDomain; - /** - * - * @type {{ [key: string]: any | undefined; }} - * @memberof TypedData - */ - message: { - [key: string]: any | undefined; - }; -} -/** - * Check if a given object implements the TypedData interface. - */ -export declare function instanceOfTypedData(value: object): value is TypedData; -export declare function TypedDataFromJSON(json: any): TypedData; -export declare function TypedDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedData; -export declare function TypedDataToJSON(json: any): TypedData; -export declare function TypedDataToJSONTyped(value?: TypedData | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TypedData.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/TypedData.d.ts.map b/dist/service/src/models/TypedData.d.ts.map deleted file mode 100644 index b84a965..0000000 --- a/dist/service/src/models/TypedData.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypedData.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/TypedData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAChD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAWzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxG"} \ No newline at end of file diff --git a/dist/service/src/models/TypedData.js b/dist/service/src/models/TypedData.js deleted file mode 100644 index 9555457..0000000 --- a/dist/service/src/models/TypedData.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedData = instanceOfTypedData; -exports.TypedDataFromJSON = TypedDataFromJSON; -exports.TypedDataFromJSONTyped = TypedDataFromJSONTyped; -exports.TypedDataToJSON = TypedDataToJSON; -exports.TypedDataToJSONTyped = TypedDataToJSONTyped; -const TypedDataDomain_1 = require("./TypedDataDomain"); -/** - * Check if a given object implements the TypedData interface. - */ -function instanceOfTypedData(value) { - if (!('types' in value) || value['types'] === undefined) - return false; - if (!('primaryType' in value) || value['primaryType'] === undefined) - return false; - if (!('domain' in value) || value['domain'] === undefined) - return false; - if (!('message' in value) || value['message'] === undefined) - return false; - return true; -} -function TypedDataFromJSON(json) { - return TypedDataFromJSONTyped(json, false); -} -function TypedDataFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'types': json['types'], - 'primaryType': json['primaryType'], - 'domain': (0, TypedDataDomain_1.TypedDataDomainFromJSON)(json['domain']), - 'message': json['message'], - }; -} -function TypedDataToJSON(json) { - return TypedDataToJSONTyped(json, false); -} -function TypedDataToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'types': value['types'], - 'primaryType': value['primaryType'], - 'domain': (0, TypedDataDomain_1.TypedDataDomainToJSON)(value['domain']), - 'message': value['message'], - }; -} -//# sourceMappingURL=TypedData.js.map \ No newline at end of file diff --git a/dist/service/src/models/TypedData.js.map b/dist/service/src/models/TypedData.js.map deleted file mode 100644 index d25f191..0000000 --- a/dist/service/src/models/TypedData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypedData.js","sourceRoot":"","sources":["../../../../src/service/src/models/TypedData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAqDH,kDAMC;AAED,8CAEC;AAED,wDAWC;AAED,0CAEC;AAED,oDAYC;AAnFD,uDAK2B;AAkC3B;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,QAAQ,EAAE,IAAA,yCAAuB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/TypedDataDomain.d.ts b/dist/service/src/models/TypedDataDomain.d.ts deleted file mode 100644 index 292e84b..0000000 --- a/dist/service/src/models/TypedDataDomain.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TypedDataDomain - */ -export interface TypedDataDomain { - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - name: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - version?: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - chainId: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - verifyingContract: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - salt?: string; -} -/** - * Check if a given object implements the TypedDataDomain interface. - */ -export declare function instanceOfTypedDataDomain(value: object): value is TypedDataDomain; -export declare function TypedDataDomainFromJSON(json: any): TypedDataDomain; -export declare function TypedDataDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedDataDomain; -export declare function TypedDataDomainToJSON(json: any): TypedDataDomain; -export declare function TypedDataDomainToJSONTyped(value?: TypedDataDomain | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TypedDataDomain.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/TypedDataDomain.d.ts.map b/dist/service/src/models/TypedDataDomain.d.ts.map deleted file mode 100644 index a2e71f7..0000000 --- a/dist/service/src/models/TypedDataDomain.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypedDataDomain.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/TypedDataDomain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAYrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAapH"} \ No newline at end of file diff --git a/dist/service/src/models/TypedDataDomain.js b/dist/service/src/models/TypedDataDomain.js deleted file mode 100644 index 0b531eb..0000000 --- a/dist/service/src/models/TypedDataDomain.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedDataDomain = instanceOfTypedDataDomain; -exports.TypedDataDomainFromJSON = TypedDataDomainFromJSON; -exports.TypedDataDomainFromJSONTyped = TypedDataDomainFromJSONTyped; -exports.TypedDataDomainToJSON = TypedDataDomainToJSON; -exports.TypedDataDomainToJSONTyped = TypedDataDomainToJSONTyped; -/** - * Check if a given object implements the TypedDataDomain interface. - */ -function instanceOfTypedDataDomain(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('chainId' in value) || value['chainId'] === undefined) - return false; - if (!('verifyingContract' in value) || value['verifyingContract'] === undefined) - return false; - return true; -} -function TypedDataDomainFromJSON(json) { - return TypedDataDomainFromJSONTyped(json, false); -} -function TypedDataDomainFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'version': json['version'] == null ? undefined : json['version'], - 'chainId': json['chainId'], - 'verifyingContract': json['verifyingContract'], - 'salt': json['salt'] == null ? undefined : json['salt'], - }; -} -function TypedDataDomainToJSON(json) { - return TypedDataDomainToJSONTyped(json, false); -} -function TypedDataDomainToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'version': value['version'], - 'chainId': value['chainId'], - 'verifyingContract': value['verifyingContract'], - 'salt': value['salt'], - }; -} -//# sourceMappingURL=TypedDataDomain.js.map \ No newline at end of file diff --git a/dist/service/src/models/TypedDataDomain.js.map b/dist/service/src/models/TypedDataDomain.js.map deleted file mode 100644 index 96ea404..0000000 --- a/dist/service/src/models/TypedDataDomain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypedDataDomain.js","sourceRoot":"","sources":["../../../../src/service/src/models/TypedDataDomain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,8DAKC;AAED,0DAEC;AAED,oEAYC;AAED,sDAEC;AAED,gEAaC;AA7CD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,mBAAmB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC;QAC9C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UnclaimedReward.d.ts b/dist/service/src/models/UnclaimedReward.d.ts deleted file mode 100644 index 7d628e0..0000000 --- a/dist/service/src/models/UnclaimedReward.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * The amount of unclaimed reward in native token units - * @export - * @interface UnclaimedReward - */ -export interface UnclaimedReward { -} -/** - * Check if a given object implements the UnclaimedReward interface. - */ -export declare function instanceOfUnclaimedReward(value: object): value is UnclaimedReward; -export declare function UnclaimedRewardFromJSON(json: any): UnclaimedReward; -export declare function UnclaimedRewardFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnclaimedReward; -export declare function UnclaimedRewardToJSON(json: any): UnclaimedReward; -export declare function UnclaimedRewardToJSONTyped(value?: UnclaimedReward | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UnclaimedReward.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UnclaimedReward.d.ts.map b/dist/service/src/models/UnclaimedReward.d.ts.map deleted file mode 100644 index ccc7503..0000000 --- a/dist/service/src/models/UnclaimedReward.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnclaimedReward.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UnclaimedReward.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAErG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEpH"} \ No newline at end of file diff --git a/dist/service/src/models/UnclaimedReward.js b/dist/service/src/models/UnclaimedReward.js deleted file mode 100644 index be30db1..0000000 --- a/dist/service/src/models/UnclaimedReward.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUnclaimedReward = instanceOfUnclaimedReward; -exports.UnclaimedRewardFromJSON = UnclaimedRewardFromJSON; -exports.UnclaimedRewardFromJSONTyped = UnclaimedRewardFromJSONTyped; -exports.UnclaimedRewardToJSON = UnclaimedRewardToJSON; -exports.UnclaimedRewardToJSONTyped = UnclaimedRewardToJSONTyped; -/** - * Check if a given object implements the UnclaimedReward interface. - */ -function instanceOfUnclaimedReward(value) { - return true; -} -function UnclaimedRewardFromJSON(json) { - return UnclaimedRewardFromJSONTyped(json, false); -} -function UnclaimedRewardFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function UnclaimedRewardToJSON(json) { - return UnclaimedRewardToJSONTyped(json, false); -} -function UnclaimedRewardToJSONTyped(value, ignoreDiscriminator = false) { - return value; -} -//# sourceMappingURL=UnclaimedReward.js.map \ No newline at end of file diff --git a/dist/service/src/models/UnclaimedReward.js.map b/dist/service/src/models/UnclaimedReward.js.map deleted file mode 100644 index b200b74..0000000 --- a/dist/service/src/models/UnclaimedReward.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnclaimedReward.js","sourceRoot":"","sources":["../../../../src/service/src/models/UnclaimedReward.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,8DAEC;AAED,0DAEC;AAED,oEAEC;AAED,sDAEC;AAED,gEAEC;AArBD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UpdateOrderRequest.d.ts b/dist/service/src/models/UpdateOrderRequest.d.ts deleted file mode 100644 index 91ab8e3..0000000 --- a/dist/service/src/models/UpdateOrderRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface UpdateOrderRequest - */ -export interface UpdateOrderRequest { - /** - * - * @type {string} - * @memberof UpdateOrderRequest - */ - orderHash: string; -} -/** - * Check if a given object implements the UpdateOrderRequest interface. - */ -export declare function instanceOfUpdateOrderRequest(value: object): value is UpdateOrderRequest; -export declare function UpdateOrderRequestFromJSON(json: any): UpdateOrderRequest; -export declare function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequest; -export declare function UpdateOrderRequestToJSON(json: any): UpdateOrderRequest; -export declare function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UpdateOrderRequest.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UpdateOrderRequest.d.ts.map b/dist/service/src/models/UpdateOrderRequest.d.ts.map deleted file mode 100644 index ed18d58..0000000 --- a/dist/service/src/models/UpdateOrderRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateOrderRequest.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UpdateOrderRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/service/src/models/UpdateOrderRequest.js b/dist/service/src/models/UpdateOrderRequest.js deleted file mode 100644 index d5c2a33..0000000 --- a/dist/service/src/models/UpdateOrderRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUpdateOrderRequest = instanceOfUpdateOrderRequest; -exports.UpdateOrderRequestFromJSON = UpdateOrderRequestFromJSON; -exports.UpdateOrderRequestFromJSONTyped = UpdateOrderRequestFromJSONTyped; -exports.UpdateOrderRequestToJSON = UpdateOrderRequestToJSON; -exports.UpdateOrderRequestToJSONTyped = UpdateOrderRequestToJSONTyped; -/** - * Check if a given object implements the UpdateOrderRequest interface. - */ -function instanceOfUpdateOrderRequest(value) { - if (!('orderHash' in value) || value['orderHash'] === undefined) - return false; - return true; -} -function UpdateOrderRequestFromJSON(json) { - return UpdateOrderRequestFromJSONTyped(json, false); -} -function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'orderHash': json['orderHash'], - }; -} -function UpdateOrderRequestToJSON(json) { - return UpdateOrderRequestToJSONTyped(json, false); -} -function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'orderHash': value['orderHash'], - }; -} -//# sourceMappingURL=UpdateOrderRequest.js.map \ No newline at end of file diff --git a/dist/service/src/models/UpdateOrderRequest.js.map b/dist/service/src/models/UpdateOrderRequest.js.map deleted file mode 100644 index e8c7f2d..0000000 --- a/dist/service/src/models/UpdateOrderRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateOrderRequest.js","sourceRoot":"","sources":["../../../../src/service/src/models/UpdateOrderRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UserBorrowsResponse.d.ts b/dist/service/src/models/UserBorrowsResponse.d.ts deleted file mode 100644 index bddceeb..0000000 --- a/dist/service/src/models/UserBorrowsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolBorrow } from './LendingpoolBorrow'; -/** - * - * @export - * @interface UserBorrowsResponse - */ -export interface UserBorrowsResponse { - /** - * - * @type {Array} - * @memberof UserBorrowsResponse - */ - data: Array; -} -/** - * Check if a given object implements the UserBorrowsResponse interface. - */ -export declare function instanceOfUserBorrowsResponse(value: object): value is UserBorrowsResponse; -export declare function UserBorrowsResponseFromJSON(json: any): UserBorrowsResponse; -export declare function UserBorrowsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserBorrowsResponse; -export declare function UserBorrowsResponseToJSON(json: any): UserBorrowsResponse; -export declare function UserBorrowsResponseToJSONTyped(value?: UserBorrowsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserBorrowsResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UserBorrowsResponse.d.ts.map b/dist/service/src/models/UserBorrowsResponse.d.ts.map deleted file mode 100644 index d9858dd..0000000 --- a/dist/service/src/models/UserBorrowsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserBorrowsResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UserBorrowsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/service/src/models/UserBorrowsResponse.js b/dist/service/src/models/UserBorrowsResponse.js deleted file mode 100644 index 3cf94d9..0000000 --- a/dist/service/src/models/UserBorrowsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserBorrowsResponse = instanceOfUserBorrowsResponse; -exports.UserBorrowsResponseFromJSON = UserBorrowsResponseFromJSON; -exports.UserBorrowsResponseFromJSONTyped = UserBorrowsResponseFromJSONTyped; -exports.UserBorrowsResponseToJSON = UserBorrowsResponseToJSON; -exports.UserBorrowsResponseToJSONTyped = UserBorrowsResponseToJSONTyped; -const LendingpoolBorrow_1 = require("./LendingpoolBorrow"); -/** - * Check if a given object implements the UserBorrowsResponse interface. - */ -function instanceOfUserBorrowsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function UserBorrowsResponseFromJSON(json) { - return UserBorrowsResponseFromJSONTyped(json, false); -} -function UserBorrowsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(LendingpoolBorrow_1.LendingpoolBorrowFromJSON)), - }; -} -function UserBorrowsResponseToJSON(json) { - return UserBorrowsResponseToJSONTyped(json, false); -} -function UserBorrowsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(LendingpoolBorrow_1.LendingpoolBorrowToJSON)), - }; -} -//# sourceMappingURL=UserBorrowsResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/UserBorrowsResponse.js.map b/dist/service/src/models/UserBorrowsResponse.js.map deleted file mode 100644 index c3b0ba5..0000000 --- a/dist/service/src/models/UserBorrowsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserBorrowsResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/UserBorrowsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,2DAK6B;AAgB7B;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UserDepositsResponse.d.ts b/dist/service/src/models/UserDepositsResponse.d.ts deleted file mode 100644 index 87738c6..0000000 --- a/dist/service/src/models/UserDepositsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LendingpoolDeposit } from './LendingpoolDeposit'; -/** - * - * @export - * @interface UserDepositsResponse - */ -export interface UserDepositsResponse { - /** - * - * @type {Array} - * @memberof UserDepositsResponse - */ - data: Array; -} -/** - * Check if a given object implements the UserDepositsResponse interface. - */ -export declare function instanceOfUserDepositsResponse(value: object): value is UserDepositsResponse; -export declare function UserDepositsResponseFromJSON(json: any): UserDepositsResponse; -export declare function UserDepositsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDepositsResponse; -export declare function UserDepositsResponseToJSON(json: any): UserDepositsResponse; -export declare function UserDepositsResponseToJSONTyped(value?: UserDepositsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserDepositsResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UserDepositsResponse.d.ts.map b/dist/service/src/models/UserDepositsResponse.d.ts.map deleted file mode 100644 index b78f9b1..0000000 --- a/dist/service/src/models/UserDepositsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserDepositsResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UserDepositsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/service/src/models/UserDepositsResponse.js b/dist/service/src/models/UserDepositsResponse.js deleted file mode 100644 index 2ef3ed8..0000000 --- a/dist/service/src/models/UserDepositsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserDepositsResponse = instanceOfUserDepositsResponse; -exports.UserDepositsResponseFromJSON = UserDepositsResponseFromJSON; -exports.UserDepositsResponseFromJSONTyped = UserDepositsResponseFromJSONTyped; -exports.UserDepositsResponseToJSON = UserDepositsResponseToJSON; -exports.UserDepositsResponseToJSONTyped = UserDepositsResponseToJSONTyped; -const LendingpoolDeposit_1 = require("./LendingpoolDeposit"); -/** - * Check if a given object implements the UserDepositsResponse interface. - */ -function instanceOfUserDepositsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function UserDepositsResponseFromJSON(json) { - return UserDepositsResponseFromJSONTyped(json, false); -} -function UserDepositsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(LendingpoolDeposit_1.LendingpoolDepositFromJSON)), - }; -} -function UserDepositsResponseToJSON(json) { - return UserDepositsResponseToJSONTyped(json, false); -} -function UserDepositsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(LendingpoolDeposit_1.LendingpoolDepositToJSON)), - }; -} -//# sourceMappingURL=UserDepositsResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/UserDepositsResponse.js.map b/dist/service/src/models/UserDepositsResponse.js.map deleted file mode 100644 index ce71849..0000000 --- a/dist/service/src/models/UserDepositsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserDepositsResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/UserDepositsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,6DAK8B;AAgB9B;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+CAA0B,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6CAAwB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UserError.d.ts b/dist/service/src/models/UserError.d.ts deleted file mode 100644 index 136ffc7..0000000 --- a/dist/service/src/models/UserError.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ErrorMessage } from './ErrorMessage'; -/** - * - * @export - * @interface UserError - */ -export interface UserError { - /** - * Localized error messages - * @type {{ [key: string]: ErrorMessage | undefined; }} - * @memberof UserError - */ - messages: { - [key: string]: ErrorMessage | undefined; - }; - /** - * - * @type {Array} - * @memberof UserError - */ - reasons: Array; -} -/** - * Check if a given object implements the UserError interface. - */ -export declare function instanceOfUserError(value: object): value is UserError; -export declare function UserErrorFromJSON(json: any): UserError; -export declare function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError; -export declare function UserErrorToJSON(json: any): UserError; -export declare function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserError.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UserError.d.ts.map b/dist/service/src/models/UserError.d.ts.map deleted file mode 100644 index 6215254..0000000 --- a/dist/service/src/models/UserError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserError.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UserError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/service/src/models/UserError.js b/dist/service/src/models/UserError.js deleted file mode 100644 index 2c71576..0000000 --- a/dist/service/src/models/UserError.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserError = instanceOfUserError; -exports.UserErrorFromJSON = UserErrorFromJSON; -exports.UserErrorFromJSONTyped = UserErrorFromJSONTyped; -exports.UserErrorToJSON = UserErrorToJSON; -exports.UserErrorToJSONTyped = UserErrorToJSONTyped; -const runtime_1 = require("../runtime"); -const ErrorMessage_1 = require("./ErrorMessage"); -/** - * Check if a given object implements the UserError interface. - */ -function instanceOfUserError(value) { - if (!('messages' in value) || value['messages'] === undefined) - return false; - if (!('reasons' in value) || value['reasons'] === undefined) - return false; - return true; -} -function UserErrorFromJSON(json) { - return UserErrorFromJSONTyped(json, false); -} -function UserErrorFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'messages': ((0, runtime_1.mapValues)(json['messages'], ErrorMessage_1.ErrorMessageFromJSON)), - 'reasons': json['reasons'], - }; -} -function UserErrorToJSON(json) { - return UserErrorToJSONTyped(json, false); -} -function UserErrorToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'messages': ((0, runtime_1.mapValues)(value['messages'], ErrorMessage_1.ErrorMessageToJSON)), - 'reasons': value['reasons'], - }; -} -//# sourceMappingURL=UserError.js.map \ No newline at end of file diff --git a/dist/service/src/models/UserError.js.map b/dist/service/src/models/UserError.js.map deleted file mode 100644 index b1af2ee..0000000 --- a/dist/service/src/models/UserError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserError.js","sourceRoot":"","sources":["../../../../src/service/src/models/UserError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAnED,wCAAuC;AAEvC,iDAKwB;AAsBxB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,mCAAoB,CAAC,CAAC;QAC/D,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAkB,CAAC,CAAC;QAC9D,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UserStake.d.ts b/dist/service/src/models/UserStake.d.ts deleted file mode 100644 index 6b2ee47..0000000 --- a/dist/service/src/models/UserStake.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface UserStake - */ -export interface UserStake { - /** - * Ethereum address of the user - * @type {string} - * @memberof UserStake - */ - user: string; - /** - * The amount of asset staked in native token units - * @type {{ [key: string]: string | undefined; }} - * @memberof UserStake - */ - balance: { - [key: string]: string | undefined; - }; - /** - * The amount of unclaimed reward in native token units - * @type {{ [key: string]: string | undefined; }} - * @memberof UserStake - */ - unclaimedReward: { - [key: string]: string | undefined; - }; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof UserStake - */ - contractAddress: string; - /** - * Name of staking plan - * @type {string} - * @memberof UserStake - */ - planName: string; -} -/** - * Check if a given object implements the UserStake interface. - */ -export declare function instanceOfUserStake(value: object): value is UserStake; -export declare function UserStakeFromJSON(json: any): UserStake; -export declare function UserStakeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStake; -export declare function UserStakeToJSON(json: any): UserStake; -export declare function UserStakeToJSONTyped(value?: UserStake | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserStake.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UserStake.d.ts.map b/dist/service/src/models/UserStake.d.ts.map deleted file mode 100644 index 2de1f98..0000000 --- a/dist/service/src/models/UserStake.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserStake.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UserStake.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAOrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAYzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxG"} \ No newline at end of file diff --git a/dist/service/src/models/UserStake.js b/dist/service/src/models/UserStake.js deleted file mode 100644 index addfb27..0000000 --- a/dist/service/src/models/UserStake.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserStake = instanceOfUserStake; -exports.UserStakeFromJSON = UserStakeFromJSON; -exports.UserStakeFromJSONTyped = UserStakeFromJSONTyped; -exports.UserStakeToJSON = UserStakeToJSON; -exports.UserStakeToJSONTyped = UserStakeToJSONTyped; -/** - * Check if a given object implements the UserStake interface. - */ -function instanceOfUserStake(value) { - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('balance' in value) || value['balance'] === undefined) - return false; - if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) - return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) - return false; - if (!('planName' in value) || value['planName'] === undefined) - return false; - return true; -} -function UserStakeFromJSON(json) { - return UserStakeFromJSONTyped(json, false); -} -function UserStakeFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'user': json['user'], - 'balance': json['balance'], - 'unclaimedReward': json['unclaimedReward'], - 'contractAddress': json['contractAddress'], - 'planName': json['planName'], - }; -} -function UserStakeToJSON(json) { - return UserStakeToJSONTyped(json, false); -} -function UserStakeToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'user': value['user'], - 'balance': value['balance'], - 'unclaimedReward': value['unclaimedReward'], - 'contractAddress': value['contractAddress'], - 'planName': value['planName'], - }; -} -//# sourceMappingURL=UserStake.js.map \ No newline at end of file diff --git a/dist/service/src/models/UserStake.js.map b/dist/service/src/models/UserStake.js.map deleted file mode 100644 index 987fcc4..0000000 --- a/dist/service/src/models/UserStake.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserStake.js","sourceRoot":"","sources":["../../../../src/service/src/models/UserStake.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,kDAOC;AAED,8CAEC;AAED,wDAYC;AAED,0CAEC;AAED,oDAaC;AA/CD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/UserStakesResponse.d.ts b/dist/service/src/models/UserStakesResponse.d.ts deleted file mode 100644 index 220e79e..0000000 --- a/dist/service/src/models/UserStakesResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { UserStake } from './UserStake'; -/** - * - * @export - * @interface UserStakesResponse - */ -export interface UserStakesResponse { - /** - * - * @type {Array} - * @memberof UserStakesResponse - */ - data: Array; -} -/** - * Check if a given object implements the UserStakesResponse interface. - */ -export declare function instanceOfUserStakesResponse(value: object): value is UserStakesResponse; -export declare function UserStakesResponseFromJSON(json: any): UserStakesResponse; -export declare function UserStakesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStakesResponse; -export declare function UserStakesResponseToJSON(json: any): UserStakesResponse; -export declare function UserStakesResponseToJSONTyped(value?: UserStakesResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserStakesResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/UserStakesResponse.d.ts.map b/dist/service/src/models/UserStakesResponse.d.ts.map deleted file mode 100644 index 164e327..0000000 --- a/dist/service/src/models/UserStakesResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserStakesResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/UserStakesResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/service/src/models/UserStakesResponse.js b/dist/service/src/models/UserStakesResponse.js deleted file mode 100644 index bc114e7..0000000 --- a/dist/service/src/models/UserStakesResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserStakesResponse = instanceOfUserStakesResponse; -exports.UserStakesResponseFromJSON = UserStakesResponseFromJSON; -exports.UserStakesResponseFromJSONTyped = UserStakesResponseFromJSONTyped; -exports.UserStakesResponseToJSON = UserStakesResponseToJSON; -exports.UserStakesResponseToJSONTyped = UserStakesResponseToJSONTyped; -const UserStake_1 = require("./UserStake"); -/** - * Check if a given object implements the UserStakesResponse interface. - */ -function instanceOfUserStakesResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function UserStakesResponseFromJSON(json) { - return UserStakesResponseFromJSONTyped(json, false); -} -function UserStakesResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(UserStake_1.UserStakeFromJSON)), - }; -} -function UserStakesResponseToJSON(json) { - return UserStakesResponseToJSONTyped(json, false); -} -function UserStakesResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(UserStake_1.UserStakeToJSON)), - }; -} -//# sourceMappingURL=UserStakesResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/UserStakesResponse.js.map b/dist/service/src/models/UserStakesResponse.js.map deleted file mode 100644 index ad03bc5..0000000 --- a/dist/service/src/models/UserStakesResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserStakesResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/UserStakesResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,2CAKqB;AAgBrB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/V3PoolInRoute.d.ts b/dist/service/src/models/V3PoolInRoute.d.ts deleted file mode 100644 index 7ab27f0..0000000 --- a/dist/service/src/models/V3PoolInRoute.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Token } from './Token'; -/** - * - * @export - * @interface V3PoolInRoute - */ -export interface V3PoolInRoute { - /** - * - * @type {string} - * @memberof V3PoolInRoute - */ - address: string; - /** - * - * @type {Token} - * @memberof V3PoolInRoute - */ - tokenIn: Token; - /** - * - * @type {Token} - * @memberof V3PoolInRoute - */ - tokenOut: Token; - /** - * - * @type {string} - * @memberof V3PoolInRoute - */ - fee: string; -} -/** - * Check if a given object implements the V3PoolInRoute interface. - */ -export declare function instanceOfV3PoolInRoute(value: object): value is V3PoolInRoute; -export declare function V3PoolInRouteFromJSON(json: any): V3PoolInRoute; -export declare function V3PoolInRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PoolInRoute; -export declare function V3PoolInRouteToJSON(json: any): V3PoolInRoute; -export declare function V3PoolInRouteToJSONTyped(value?: V3PoolInRoute | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=V3PoolInRoute.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/V3PoolInRoute.d.ts.map b/dist/service/src/models/V3PoolInRoute.d.ts.map deleted file mode 100644 index 558e468..0000000 --- a/dist/service/src/models/V3PoolInRoute.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"V3PoolInRoute.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/V3PoolInRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"} \ No newline at end of file diff --git a/dist/service/src/models/V3PoolInRoute.js b/dist/service/src/models/V3PoolInRoute.js deleted file mode 100644 index 6ab471a..0000000 --- a/dist/service/src/models/V3PoolInRoute.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfV3PoolInRoute = instanceOfV3PoolInRoute; -exports.V3PoolInRouteFromJSON = V3PoolInRouteFromJSON; -exports.V3PoolInRouteFromJSONTyped = V3PoolInRouteFromJSONTyped; -exports.V3PoolInRouteToJSON = V3PoolInRouteToJSON; -exports.V3PoolInRouteToJSONTyped = V3PoolInRouteToJSONTyped; -const Token_1 = require("./Token"); -/** - * Check if a given object implements the V3PoolInRoute interface. - */ -function instanceOfV3PoolInRoute(value) { - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('tokenIn' in value) || value['tokenIn'] === undefined) - return false; - if (!('tokenOut' in value) || value['tokenOut'] === undefined) - return false; - if (!('fee' in value) || value['fee'] === undefined) - return false; - return true; -} -function V3PoolInRouteFromJSON(json) { - return V3PoolInRouteFromJSONTyped(json, false); -} -function V3PoolInRouteFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'address': json['address'], - 'tokenIn': (0, Token_1.TokenFromJSON)(json['tokenIn']), - 'tokenOut': (0, Token_1.TokenFromJSON)(json['tokenOut']), - 'fee': json['fee'], - }; -} -function V3PoolInRouteToJSON(json) { - return V3PoolInRouteToJSONTyped(json, false); -} -function V3PoolInRouteToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'address': value['address'], - 'tokenIn': (0, Token_1.TokenToJSON)(value['tokenIn']), - 'tokenOut': (0, Token_1.TokenToJSON)(value['tokenOut']), - 'fee': value['fee'], - }; -} -//# sourceMappingURL=V3PoolInRoute.js.map \ No newline at end of file diff --git a/dist/service/src/models/V3PoolInRoute.js.map b/dist/service/src/models/V3PoolInRoute.js.map deleted file mode 100644 index 1c79901..0000000 --- a/dist/service/src/models/V3PoolInRoute.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"V3PoolInRoute.js","sourceRoot":"","sources":["../../../../src/service/src/models/V3PoolInRoute.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,0DAMC;AAED,sDAEC;AAED,gEAWC;AAED,kDAEC;AAED,4DAYC;AAnFD,mCAKiB;AAkCjB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,UAAU,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;KACrB,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC,UAAU,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/Vault.d.ts b/dist/service/src/models/Vault.d.ts deleted file mode 100644 index 4caf95e..0000000 --- a/dist/service/src/models/Vault.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Ilk } from './Ilk'; -/** - * - * @export - * @interface Vault - */ -export interface Vault { - /** - * Identifier for the vault. - * @type {number} - * @memberof Vault - */ - id: number; - /** - * Ethereum address of the vault owner. - * @type {string} - * @memberof Vault - */ - owner: string; - /** - * Ethereum address of the vault urn. - * @type {string} - * @memberof Vault - */ - urn: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - liquidationPrice: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - collateralLocked: { - [key: string]: string | undefined; - }; - /** - * The collateralization ratio of the vault. - * @type {string} - * @memberof Vault - */ - collateralizationRatio: string; - /** - * The loan to value of the vault. - * @type {string} - * @memberof Vault - */ - loanToValue: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - debt: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - availableToWithdraw: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - availableToMint: { - [key: string]: string | undefined; - }; - /** - * - * @type {Ilk} - * @memberof Vault - */ - ilk: Ilk; -} -/** - * Check if a given object implements the Vault interface. - */ -export declare function instanceOfVault(value: object): value is Vault; -export declare function VaultFromJSON(json: any): Vault; -export declare function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vault; -export declare function VaultToJSON(json: any): Vault; -export declare function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Vault.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/Vault.d.ts.map b/dist/service/src/models/Vault.d.ts.map deleted file mode 100644 index 6d8a62d..0000000 --- a/dist/service/src/models/Vault.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Vault.d.ts","sourceRoot":"","sources":["../../../../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AE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBhG"} \ No newline at end of file diff --git a/dist/service/src/models/Vault.js b/dist/service/src/models/Vault.js deleted file mode 100644 index a444d84..0000000 --- a/dist/service/src/models/Vault.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVault = instanceOfVault; -exports.VaultFromJSON = VaultFromJSON; -exports.VaultFromJSONTyped = VaultFromJSONTyped; -exports.VaultToJSON = VaultToJSON; -exports.VaultToJSONTyped = VaultToJSONTyped; -const Ilk_1 = require("./Ilk"); -/** - * Check if a given object implements the Vault interface. - */ -function instanceOfVault(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('owner' in value) || value['owner'] === undefined) - return false; - if (!('urn' in value) || value['urn'] === undefined) - return false; - if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) - return false; - if (!('collateralLocked' in value) || value['collateralLocked'] === undefined) - return false; - if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) - return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) - return false; - if (!('debt' in value) || value['debt'] === undefined) - return false; - if (!('availableToWithdraw' in value) || value['availableToWithdraw'] === undefined) - return false; - if (!('availableToMint' in value) || value['availableToMint'] === undefined) - return false; - if (!('ilk' in value) || value['ilk'] === undefined) - return false; - return true; -} -function VaultFromJSON(json) { - return VaultFromJSONTyped(json, false); -} -function VaultFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'owner': json['owner'], - 'urn': json['urn'], - 'liquidationPrice': json['liquidationPrice'], - 'collateralLocked': json['collateralLocked'], - 'collateralizationRatio': json['collateralizationRatio'], - 'loanToValue': json['loanToValue'], - 'debt': json['debt'], - 'availableToWithdraw': json['availableToWithdraw'], - 'availableToMint': json['availableToMint'], - 'ilk': (0, Ilk_1.IlkFromJSON)(json['ilk']), - }; -} -function VaultToJSON(json) { - return VaultToJSONTyped(json, false); -} -function VaultToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'owner': value['owner'], - 'urn': value['urn'], - 'liquidationPrice': value['liquidationPrice'], - 'collateralLocked': value['collateralLocked'], - 'collateralizationRatio': value['collateralizationRatio'], - 'loanToValue': value['loanToValue'], - 'debt': value['debt'], - 'availableToWithdraw': value['availableToWithdraw'], - 'availableToMint': value['availableToMint'], - 'ilk': (0, Ilk_1.IlkToJSON)(value['ilk']), - }; -} -//# sourceMappingURL=Vault.js.map \ No newline at end of file diff --git a/dist/service/src/models/Vault.js.map b/dist/service/src/models/Vault.js.map deleted file mode 100644 index f8c5930..0000000 --- a/dist/service/src/models/Vault.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Vault.js","sourceRoot":"","sources":["../../../../src/service/src/models/Vault.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwFH,0CAaC;AAED,sCAEC;AAED,gDAkBC;AAED,kCAEC;AAED,4CAmBC;AAlJD,+BAKe;AA4Ef;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,C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AAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEvent.d.ts b/dist/service/src/models/VaultEvent.d.ts deleted file mode 100644 index c57dee0..0000000 --- a/dist/service/src/models/VaultEvent.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Ilk } from './Ilk'; -/** - * - * @export - * @interface VaultEvent - */ -export interface VaultEvent { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof VaultEvent - */ - deltaCollateral: { - [key: string]: string | undefined; - }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof VaultEvent - */ - deltaDebt: { - [key: string]: string | undefined; - }; - /** - * - * @type {Ilk} - * @memberof VaultEvent - */ - ilk: Ilk; -} -/** - * Check if a given object implements the VaultEvent interface. - */ -export declare function instanceOfVaultEvent(value: object): value is VaultEvent; -export declare function VaultEventFromJSON(json: any): VaultEvent; -export declare function VaultEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEvent; -export declare function VaultEventToJSON(json: any): VaultEvent; -export declare function VaultEventToJSONTyped(value?: VaultEvent | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=VaultEvent.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEvent.d.ts.map b/dist/service/src/models/VaultEvent.d.ts.map deleted file mode 100644 index 86f24f4..0000000 --- a/dist/service/src/models/VaultEvent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEvent.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAKvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAU3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1G"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEvent.js b/dist/service/src/models/VaultEvent.js deleted file mode 100644 index cee81e5..0000000 --- a/dist/service/src/models/VaultEvent.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVaultEvent = instanceOfVaultEvent; -exports.VaultEventFromJSON = VaultEventFromJSON; -exports.VaultEventFromJSONTyped = VaultEventFromJSONTyped; -exports.VaultEventToJSON = VaultEventToJSON; -exports.VaultEventToJSONTyped = VaultEventToJSONTyped; -const Ilk_1 = require("./Ilk"); -/** - * Check if a given object implements the VaultEvent interface. - */ -function instanceOfVaultEvent(value) { - if (!('deltaCollateral' in value) || value['deltaCollateral'] === undefined) - return false; - if (!('deltaDebt' in value) || value['deltaDebt'] === undefined) - return false; - if (!('ilk' in value) || value['ilk'] === undefined) - return false; - return true; -} -function VaultEventFromJSON(json) { - return VaultEventFromJSONTyped(json, false); -} -function VaultEventFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'deltaCollateral': json['deltaCollateral'], - 'deltaDebt': json['deltaDebt'], - 'ilk': (0, Ilk_1.IlkFromJSON)(json['ilk']), - }; -} -function VaultEventToJSON(json) { - return VaultEventToJSONTyped(json, false); -} -function VaultEventToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'deltaCollateral': value['deltaCollateral'], - 'deltaDebt': value['deltaDebt'], - 'ilk': (0, Ilk_1.IlkToJSON)(value['ilk']), - }; -} -//# sourceMappingURL=VaultEvent.js.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEvent.js.map b/dist/service/src/models/VaultEvent.js.map deleted file mode 100644 index 3488674..0000000 --- a/dist/service/src/models/VaultEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEvent.js","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEvent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,oDAKC;AAED,gDAEC;AAED,0DAUC;AAED,4CAEC;AAED,sDAWC;AA1ED,+BAKe;AA4Bf;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,KAAK,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAClC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventExtension.d.ts b/dist/service/src/models/VaultEventExtension.d.ts deleted file mode 100644 index d19b075..0000000 --- a/dist/service/src/models/VaultEventExtension.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { VaultEvent } from './VaultEvent'; -/** - * - * @export - * @interface VaultEventExtension - */ -export interface VaultEventExtension { - /** - * - * @type {VaultEvent} - * @memberof VaultEventExtension - */ - payload?: VaultEvent; -} -/** - * Check if a given object implements the VaultEventExtension interface. - */ -export declare function instanceOfVaultEventExtension(value: object): value is VaultEventExtension; -export declare function VaultEventExtensionFromJSON(json: any): VaultEventExtension; -export declare function VaultEventExtensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventExtension; -export declare function VaultEventExtensionToJSON(json: any): VaultEventExtension; -export declare function VaultEventExtensionToJSONTyped(value?: VaultEventExtension | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=VaultEventExtension.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventExtension.d.ts.map b/dist/service/src/models/VaultEventExtension.d.ts.map deleted file mode 100644 index 1d3784a..0000000 --- a/dist/service/src/models/VaultEventExtension.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventExtension.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventExtension.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventExtension.js b/dist/service/src/models/VaultEventExtension.js deleted file mode 100644 index 778a1ab..0000000 --- a/dist/service/src/models/VaultEventExtension.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVaultEventExtension = instanceOfVaultEventExtension; -exports.VaultEventExtensionFromJSON = VaultEventExtensionFromJSON; -exports.VaultEventExtensionFromJSONTyped = VaultEventExtensionFromJSONTyped; -exports.VaultEventExtensionToJSON = VaultEventExtensionToJSON; -exports.VaultEventExtensionToJSONTyped = VaultEventExtensionToJSONTyped; -const VaultEvent_1 = require("./VaultEvent"); -/** - * Check if a given object implements the VaultEventExtension interface. - */ -function instanceOfVaultEventExtension(value) { - return true; -} -function VaultEventExtensionFromJSON(json) { - return VaultEventExtensionFromJSONTyped(json, false); -} -function VaultEventExtensionFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'payload': json['payload'] == null ? undefined : (0, VaultEvent_1.VaultEventFromJSON)(json['payload']), - }; -} -function VaultEventExtensionToJSON(json) { - return VaultEventExtensionToJSONTyped(json, false); -} -function VaultEventExtensionToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'payload': (0, VaultEvent_1.VaultEventToJSON)(value['payload']), - }; -} -//# sourceMappingURL=VaultEventExtension.js.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventExtension.js.map b/dist/service/src/models/VaultEventExtension.js.map deleted file mode 100644 index 1de3f30..0000000 --- a/dist/service/src/models/VaultEventExtension.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventExtension.js","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventExtension.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAEC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAvDD,6CAKsB;AAgBtB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACvF,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventItem.d.ts b/dist/service/src/models/VaultEventItem.d.ts deleted file mode 100644 index 0b47f27..0000000 --- a/dist/service/src/models/VaultEventItem.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { VaultEvent } from './VaultEvent'; -import type { EventDomain } from './EventDomain'; -import type { EventType } from './EventType'; -import type { Log } from './Log'; -import type { EventName } from './EventName'; -/** - * - * @export - * @interface VaultEventItem - */ -export interface VaultEventItem { - /** - * Identifier for the event. - * @type {number} - * @memberof VaultEventItem - */ - id: number; - /** - * - * @type {EventName} - * @memberof VaultEventItem - */ - name: EventName; - /** - * - * @type {EventType} - * @memberof VaultEventItem - */ - type: EventType; - /** - * - * @type {EventDomain} - * @memberof VaultEventItem - */ - domain: EventDomain; - /** - * - * @type {Log} - * @memberof VaultEventItem - */ - raw: Log; - /** - * - * @type {VaultEvent} - * @memberof VaultEventItem - */ - payload?: VaultEvent; -} -/** - * Check if a given object implements the VaultEventItem interface. - */ -export declare function instanceOfVaultEventItem(value: object): value is VaultEventItem; -export declare function VaultEventItemFromJSON(json: any): VaultEventItem; -export declare function VaultEventItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventItem; -export declare function VaultEventItemToJSON(json: any): VaultEventItem; -export declare function VaultEventItemToJSONTyped(value?: VaultEventItem | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=VaultEventItem.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventItem.d.ts.map b/dist/service/src/models/VaultEventItem.d.ts.map deleted file mode 100644 index 4bfeebd..0000000 --- a/dist/service/src/models/VaultEventItem.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventItem.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAO/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAanG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAclH"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventItem.js b/dist/service/src/models/VaultEventItem.js deleted file mode 100644 index 9aaa6f0..0000000 --- a/dist/service/src/models/VaultEventItem.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVaultEventItem = instanceOfVaultEventItem; -exports.VaultEventItemFromJSON = VaultEventItemFromJSON; -exports.VaultEventItemFromJSONTyped = VaultEventItemFromJSONTyped; -exports.VaultEventItemToJSON = VaultEventItemToJSON; -exports.VaultEventItemToJSONTyped = VaultEventItemToJSONTyped; -const VaultEvent_1 = require("./VaultEvent"); -const EventDomain_1 = require("./EventDomain"); -const EventType_1 = require("./EventType"); -const Log_1 = require("./Log"); -const EventName_1 = require("./EventName"); -/** - * Check if a given object implements the VaultEventItem interface. - */ -function instanceOfVaultEventItem(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('domain' in value) || value['domain'] === undefined) - return false; - if (!('raw' in value) || value['raw'] === undefined) - return false; - return true; -} -function VaultEventItemFromJSON(json) { - return VaultEventItemFromJSONTyped(json, false); -} -function VaultEventItemFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'name': (0, EventName_1.EventNameFromJSON)(json['name']), - 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), - 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), - 'raw': (0, Log_1.LogFromJSON)(json['raw']), - 'payload': json['payload'] == null ? undefined : (0, VaultEvent_1.VaultEventFromJSON)(json['payload']), - }; -} -function VaultEventItemToJSON(json) { - return VaultEventItemToJSONTyped(json, false); -} -function VaultEventItemToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'name': (0, EventName_1.EventNameToJSON)(value['name']), - 'type': (0, EventType_1.EventTypeToJSON)(value['type']), - 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), - 'raw': (0, Log_1.LogToJSON)(value['raw']), - 'payload': (0, VaultEvent_1.VaultEventToJSON)(value['payload']), - }; -} -//# sourceMappingURL=VaultEventItem.js.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventItem.js.map b/dist/service/src/models/VaultEventItem.js.map deleted file mode 100644 index bf02c41..0000000 --- a/dist/service/src/models/VaultEventItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventItem.js","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventItem.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwFH,4DAOC;AAED,wDAEC;AAED,kEAaC;AAED,oDAEC;AAED,8DAcC;AAlID,6CAKsB;AAEtB,+CAKuB;AAEvB,2CAKqB;AAErB,+BAKe;AAEf,2CAKqB;AAgDrB;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC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AC;QACtC,QAAQ,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,SAAS,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventsResponse.d.ts b/dist/service/src/models/VaultEventsResponse.d.ts deleted file mode 100644 index 1ea8a7b..0000000 --- a/dist/service/src/models/VaultEventsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ExtendedEvent } from './ExtendedEvent'; -/** - * - * @export - * @interface VaultEventsResponse - */ -export interface VaultEventsResponse { - /** - * - * @type {Array} - * @memberof VaultEventsResponse - */ - data: Array; -} -/** - * Check if a given object implements the VaultEventsResponse interface. - */ -export declare function instanceOfVaultEventsResponse(value: object): value is VaultEventsResponse; -export declare function VaultEventsResponseFromJSON(json: any): VaultEventsResponse; -export declare function VaultEventsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventsResponse; -export declare function VaultEventsResponseToJSON(json: any): VaultEventsResponse; -export declare function VaultEventsResponseToJSONTyped(value?: VaultEventsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=VaultEventsResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventsResponse.d.ts.map b/dist/service/src/models/VaultEventsResponse.d.ts.map deleted file mode 100644 index 94c1bb4..0000000 --- a/dist/service/src/models/VaultEventsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventsResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/service/src/models/VaultEventsResponse.js b/dist/service/src/models/VaultEventsResponse.js deleted file mode 100644 index 4f78c27..0000000 --- a/dist/service/src/models/VaultEventsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVaultEventsResponse = instanceOfVaultEventsResponse; -exports.VaultEventsResponseFromJSON = VaultEventsResponseFromJSON; -exports.VaultEventsResponseFromJSONTyped = VaultEventsResponseFromJSONTyped; -exports.VaultEventsResponseToJSON = VaultEventsResponseToJSON; -exports.VaultEventsResponseToJSONTyped = VaultEventsResponseToJSONTyped; -const ExtendedEvent_1 = require("./ExtendedEvent"); -/** - * Check if a given object implements the VaultEventsResponse interface. - */ -function instanceOfVaultEventsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function VaultEventsResponseFromJSON(json) { - return VaultEventsResponseFromJSONTyped(json, false); -} -function VaultEventsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(ExtendedEvent_1.ExtendedEventFromJSON)), - }; -} -function VaultEventsResponseToJSON(json) { - return VaultEventsResponseToJSONTyped(json, false); -} -function VaultEventsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(ExtendedEvent_1.ExtendedEventToJSON)), - }; -} -//# sourceMappingURL=VaultEventsResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/VaultEventsResponse.js.map b/dist/service/src/models/VaultEventsResponse.js.map deleted file mode 100644 index 66f0171..0000000 --- a/dist/service/src/models/VaultEventsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultEventsResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/VaultEventsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qCAAqB,CAAC,CAAC;KACpE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAmB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/VaultsResponse.d.ts b/dist/service/src/models/VaultsResponse.d.ts deleted file mode 100644 index c0f7d37..0000000 --- a/dist/service/src/models/VaultsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Vault } from './Vault'; -/** - * - * @export - * @interface VaultsResponse - */ -export interface VaultsResponse { - /** - * - * @type {Array} - * @memberof VaultsResponse - */ - data: Array; -} -/** - * Check if a given object implements the VaultsResponse interface. - */ -export declare function instanceOfVaultsResponse(value: object): value is VaultsResponse; -export declare function VaultsResponseFromJSON(json: any): VaultsResponse; -export declare function VaultsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultsResponse; -export declare function VaultsResponseToJSON(json: any): VaultsResponse; -export declare function VaultsResponseToJSONTyped(value?: VaultsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=VaultsResponse.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/VaultsResponse.d.ts.map b/dist/service/src/models/VaultsResponse.d.ts.map deleted file mode 100644 index 9133ea6..0000000 --- a/dist/service/src/models/VaultsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultsResponse.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/VaultsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/service/src/models/VaultsResponse.js b/dist/service/src/models/VaultsResponse.js deleted file mode 100644 index 95e3f4d..0000000 --- a/dist/service/src/models/VaultsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVaultsResponse = instanceOfVaultsResponse; -exports.VaultsResponseFromJSON = VaultsResponseFromJSON; -exports.VaultsResponseFromJSONTyped = VaultsResponseFromJSONTyped; -exports.VaultsResponseToJSON = VaultsResponseToJSON; -exports.VaultsResponseToJSONTyped = VaultsResponseToJSONTyped; -const Vault_1 = require("./Vault"); -/** - * Check if a given object implements the VaultsResponse interface. - */ -function instanceOfVaultsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function VaultsResponseFromJSON(json) { - return VaultsResponseFromJSONTyped(json, false); -} -function VaultsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Vault_1.VaultFromJSON)), - }; -} -function VaultsResponseToJSON(json) { - return VaultsResponseToJSONTyped(json, false); -} -function VaultsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Vault_1.VaultToJSON)), - }; -} -//# sourceMappingURL=VaultsResponse.js.map \ No newline at end of file diff --git a/dist/service/src/models/VaultsResponse.js.map b/dist/service/src/models/VaultsResponse.js.map deleted file mode 100644 index 2c04669..0000000 --- a/dist/service/src/models/VaultsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VaultsResponse.js","sourceRoot":"","sources":["../../../../src/service/src/models/VaultsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/WalletBalance.d.ts b/dist/service/src/models/WalletBalance.d.ts deleted file mode 100644 index 67fedde..0000000 --- a/dist/service/src/models/WalletBalance.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Balance } from './Balance'; -/** - * - * @export - * @interface WalletBalance - */ -export interface WalletBalance { - /** - * - * @type {Array} - * @memberof WalletBalance - */ - balances: Array; -} -/** - * Check if a given object implements the WalletBalance interface. - */ -export declare function instanceOfWalletBalance(value: object): value is WalletBalance; -export declare function WalletBalanceFromJSON(json: any): WalletBalance; -export declare function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance; -export declare function WalletBalanceToJSON(json: any): WalletBalance; -export declare function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WalletBalance.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/WalletBalance.d.ts.map b/dist/service/src/models/WalletBalance.d.ts.map deleted file mode 100644 index 8fd460d..0000000 --- a/dist/service/src/models/WalletBalance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WalletBalance.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/WalletBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAG7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAQjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShH"} \ No newline at end of file diff --git a/dist/service/src/models/WalletBalance.js b/dist/service/src/models/WalletBalance.js deleted file mode 100644 index 43e2b4e..0000000 --- a/dist/service/src/models/WalletBalance.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWalletBalance = instanceOfWalletBalance; -exports.WalletBalanceFromJSON = WalletBalanceFromJSON; -exports.WalletBalanceFromJSONTyped = WalletBalanceFromJSONTyped; -exports.WalletBalanceToJSON = WalletBalanceToJSON; -exports.WalletBalanceToJSONTyped = WalletBalanceToJSONTyped; -const Balance_1 = require("./Balance"); -/** - * Check if a given object implements the WalletBalance interface. - */ -function instanceOfWalletBalance(value) { - if (!('balances' in value) || value['balances'] === undefined) - return false; - return true; -} -function WalletBalanceFromJSON(json) { - return WalletBalanceFromJSONTyped(json, false); -} -function WalletBalanceFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'balances': (json['balances'].map(Balance_1.BalanceFromJSON)), - }; -} -function WalletBalanceToJSON(json) { - return WalletBalanceToJSONTyped(json, false); -} -function WalletBalanceToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'balances': (value['balances'].map(Balance_1.BalanceToJSON)), - }; -} -//# sourceMappingURL=WalletBalance.js.map \ No newline at end of file diff --git a/dist/service/src/models/WalletBalance.js.map b/dist/service/src/models/WalletBalance.js.map deleted file mode 100644 index cb41a34..0000000 --- a/dist/service/src/models/WalletBalance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WalletBalance.js","sourceRoot":"","sources":["../../../../src/service/src/models/WalletBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,0DAGC;AAED,sDAEC;AAED,gEAQC;AAED,kDAEC;AAED,4DASC;AAxDD,uCAKmB;AAgBnB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/index.d.ts b/dist/service/src/models/index.d.ts deleted file mode 100644 index e9683e8..0000000 --- a/dist/service/src/models/index.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -export * from './Account'; -export * from './AccountLendingpoolSummary'; -export * from './AccountStablecoinSystemSummary'; -export * from './AccountStakingSummary'; -export * from './Address'; -export * from './AddressResponse'; -export * from './Balance'; -export * from './BasicEvent'; -export * from './ChainActivity'; -export * from './ChainActivityStep'; -export * from './ChainActivityStepData'; -export * from './DutchAmount'; -export * from './EIP712SignRequest'; -export * from './ErrorMessage'; -export * from './EventDetailsResponse'; -export * from './EventDomain'; -export * from './EventName'; -export * from './EventType'; -export * from './ExtendedEvent'; -export * from './FormattedReserveData'; -export * from './Ilk'; -export * from './IlksResponse'; -export * from './LendingpoolBorrow'; -export * from './LendingpoolBorrowTxRequest'; -export * from './LendingpoolBorrowTxResponse'; -export * from './LendingpoolDeposit'; -export * from './LendingpoolDepositTxRequest'; -export * from './LendingpoolDepositTxResponse'; -export * from './LendingpoolRepayTxRequest'; -export * from './LendingpoolRepayTxResponse'; -export * from './LendingpoolStats'; -export * from './LendingpoolTxResponse'; -export * from './LendingpoolUseAssetAsCollateralTxRequest'; -export * from './LendingpoolUseAssetAsCollateralTxResponse'; -export * from './LendingpoolWithdrawTxRequest'; -export * from './LendingpoolWithdrawTxResponse'; -export * from './Log'; -export * from './MethodParameters'; -export * from './ModelError'; -export * from './Order'; -export * from './OrderInfo'; -export * from './OrderResponse'; -export * from './OrderType'; -export * from './PermitSingle'; -export * from './PersonalSignRequest'; -export * from './PreparedTx'; -export * from './Price'; -export * from './PriceListResponse'; -export * from './QuoteRequest'; -export * from './QuoteRequestOptions'; -export * from './QuoteResponse'; -export * from './RawDutchAmount'; -export * from './RouteItem'; -export * from './Scoreboard'; -export * from './ScoreboardItem'; -export * from './StablecoinSystemBarkTxRequest'; -export * from './StablecoinSystemCreateVaultTxRequest'; -export * from './StablecoinSystemDepositCollateralTxRequest'; -export * from './StablecoinSystemGemexitTxRequest'; -export * from './StablecoinSystemMintZarTxRequest'; -export * from './StablecoinSystemRedoTxRequest'; -export * from './StablecoinSystemRepayZarTxRequest'; -export * from './StablecoinSystemStats'; -export * from './StablecoinSystemTakeTxRequest'; -export * from './StablecoinSystemWithdrawCollateralTxRequest'; -export * from './StablecoinSystemZarexitTxRequest'; -export * from './StablecoinSystemZarjoinTxRequest'; -export * from './StakeBalance'; -export * from './StakePlan'; -export * from './StakePlansResponse'; -export * from './StakingCollectRewardTxRequest'; -export * from './StakingCollectRewardTxResponse'; -export * from './StakingStakeTxRequest'; -export * from './StakingStakeTxResponse'; -export * from './StakingWithdrawTxRequest'; -export * from './StakingWithdrawTxResponse'; -export * from './Stats'; -export * from './Symbol'; -export * from './SystemBadDebt'; -export * from './SystemDebt'; -export * from './SystemDebtCeiling'; -export * from './SystemSurplus'; -export * from './SystemSurplusBuffer'; -export * from './SystemSurplusLotSize'; -export * from './TimeRange'; -export * from './Timestamp'; -export * from './Token'; -export * from './TradeType'; -export * from './Type'; -export * from './TypedData'; -export * from './TypedDataDomain'; -export * from './UnclaimedReward'; -export * from './UpdateOrderRequest'; -export * from './UserBorrowsResponse'; -export * from './UserDepositsResponse'; -export * from './UserError'; -export * from './UserStake'; -export * from './UserStakesResponse'; -export * from './V3PoolInRoute'; -export * from './Vault'; -export * from './VaultEvent'; -export * from './VaultEventExtension'; -export * from './VaultEventItem'; -export * from './VaultEventsResponse'; -export * from './VaultsResponse'; -export * from './WalletBalance'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/service/src/models/index.d.ts.map b/dist/service/src/models/index.d.ts.map deleted file mode 100644 index 4bf8860..0000000 --- a/dist/service/src/models/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC;A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BAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/service/src/models/index.js b/dist/service/src/models/index.js deleted file mode 100644 index 847043b..0000000 --- a/dist/service/src/models/index.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -tslib_1.__exportStar(require("./Account"), exports); -tslib_1.__exportStar(require("./AccountLendingpoolSummary"), exports); -tslib_1.__exportStar(require("./AccountStablecoinSystemSummary"), exports); -tslib_1.__exportStar(require("./AccountStakingSummary"), exports); -tslib_1.__exportStar(require("./Address"), exports); -tslib_1.__exportStar(require("./AddressResponse"), exports); -tslib_1.__exportStar(require("./Balance"), exports); -tslib_1.__exportStar(require("./BasicEvent"), exports); -tslib_1.__exportStar(require("./ChainActivity"), exports); -tslib_1.__exportStar(require("./ChainActivityStep"), exports); -tslib_1.__exportStar(require("./ChainActivityStepData"), exports); -tslib_1.__exportStar(require("./DutchAmount"), exports); -tslib_1.__exportStar(require("./EIP712SignRequest"), exports); -tslib_1.__exportStar(require("./ErrorMessage"), exports); -tslib_1.__exportStar(require("./EventDetailsResponse"), exports); -tslib_1.__exportStar(require("./EventDomain"), exports); -tslib_1.__exportStar(require("./EventName"), exports); -tslib_1.__exportStar(require("./EventType"), exports); -tslib_1.__exportStar(require("./ExtendedEvent"), exports); -tslib_1.__exportStar(require("./FormattedReserveData"), exports); -tslib_1.__exportStar(require("./Ilk"), exports); -tslib_1.__exportStar(require("./IlksResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolBorrow"), exports); -tslib_1.__exportStar(require("./LendingpoolBorrowTxRequest"), exports); -tslib_1.__exportStar(require("./LendingpoolBorrowTxResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolDeposit"), exports); -tslib_1.__exportStar(require("./LendingpoolDepositTxRequest"), exports); -tslib_1.__exportStar(require("./LendingpoolDepositTxResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolRepayTxRequest"), exports); -tslib_1.__exportStar(require("./LendingpoolRepayTxResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolStats"), exports); -tslib_1.__exportStar(require("./LendingpoolTxResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolUseAssetAsCollateralTxRequest"), exports); -tslib_1.__exportStar(require("./LendingpoolUseAssetAsCollateralTxResponse"), exports); -tslib_1.__exportStar(require("./LendingpoolWithdrawTxRequest"), exports); -tslib_1.__exportStar(require("./LendingpoolWithdrawTxResponse"), exports); -tslib_1.__exportStar(require("./Log"), exports); -tslib_1.__exportStar(require("./MethodParameters"), exports); -tslib_1.__exportStar(require("./ModelError"), exports); -tslib_1.__exportStar(require("./Order"), exports); -tslib_1.__exportStar(require("./OrderInfo"), exports); -tslib_1.__exportStar(require("./OrderResponse"), exports); -tslib_1.__exportStar(require("./OrderType"), exports); -tslib_1.__exportStar(require("./PermitSingle"), exports); -tslib_1.__exportStar(require("./PersonalSignRequest"), exports); -tslib_1.__exportStar(require("./PreparedTx"), exports); -tslib_1.__exportStar(require("./Price"), exports); -tslib_1.__exportStar(require("./PriceListResponse"), exports); -tslib_1.__exportStar(require("./QuoteRequest"), exports); -tslib_1.__exportStar(require("./QuoteRequestOptions"), exports); -tslib_1.__exportStar(require("./QuoteResponse"), exports); -tslib_1.__exportStar(require("./RawDutchAmount"), exports); -tslib_1.__exportStar(require("./RouteItem"), exports); -tslib_1.__exportStar(require("./Scoreboard"), exports); -tslib_1.__exportStar(require("./ScoreboardItem"), exports); -tslib_1.__exportStar(require("./StablecoinSystemBarkTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemCreateVaultTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemDepositCollateralTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemGemexitTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemMintZarTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemRedoTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemRepayZarTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemStats"), exports); -tslib_1.__exportStar(require("./StablecoinSystemTakeTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemWithdrawCollateralTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemZarexitTxRequest"), exports); -tslib_1.__exportStar(require("./StablecoinSystemZarjoinTxRequest"), exports); -tslib_1.__exportStar(require("./StakeBalance"), exports); -tslib_1.__exportStar(require("./StakePlan"), exports); -tslib_1.__exportStar(require("./StakePlansResponse"), exports); -tslib_1.__exportStar(require("./StakingCollectRewardTxRequest"), exports); -tslib_1.__exportStar(require("./StakingCollectRewardTxResponse"), exports); -tslib_1.__exportStar(require("./StakingStakeTxRequest"), exports); -tslib_1.__exportStar(require("./StakingStakeTxResponse"), exports); -tslib_1.__exportStar(require("./StakingWithdrawTxRequest"), exports); -tslib_1.__exportStar(require("./StakingWithdrawTxResponse"), exports); -tslib_1.__exportStar(require("./Stats"), exports); -tslib_1.__exportStar(require("./Symbol"), exports); -tslib_1.__exportStar(require("./SystemBadDebt"), exports); -tslib_1.__exportStar(require("./SystemDebt"), exports); -tslib_1.__exportStar(require("./SystemDebtCeiling"), exports); -tslib_1.__exportStar(require("./SystemSurplus"), exports); -tslib_1.__exportStar(require("./SystemSurplusBuffer"), exports); -tslib_1.__exportStar(require("./SystemSurplusLotSize"), exports); -tslib_1.__exportStar(require("./TimeRange"), exports); -tslib_1.__exportStar(require("./Timestamp"), exports); -tslib_1.__exportStar(require("./Token"), exports); -tslib_1.__exportStar(require("./TradeType"), exports); -tslib_1.__exportStar(require("./Type"), exports); -tslib_1.__exportStar(require("./TypedData"), exports); -tslib_1.__exportStar(require("./TypedDataDomain"), exports); -tslib_1.__exportStar(require("./UnclaimedReward"), exports); -tslib_1.__exportStar(require("./UpdateOrderRequest"), exports); -tslib_1.__exportStar(require("./UserBorrowsResponse"), exports); -tslib_1.__exportStar(require("./UserDepositsResponse"), exports); -tslib_1.__exportStar(require("./UserError"), exports); -tslib_1.__exportStar(require("./UserStake"), exports); -tslib_1.__exportStar(require("./UserStakesResponse"), exports); -tslib_1.__exportStar(require("./V3PoolInRoute"), exports); -tslib_1.__exportStar(require("./Vault"), exports); -tslib_1.__exportStar(require("./VaultEvent"), exports); -tslib_1.__exportStar(require("./VaultEventExtension"), exports); -tslib_1.__exportStar(require("./VaultEventItem"), exports); -tslib_1.__exportStar(require("./VaultEventsResponse"), exports); -tslib_1.__exportStar(require("./VaultsResponse"), exports); -tslib_1.__exportStar(require("./WalletBalance"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/service/src/models/index.js.map b/dist/service/src/models/index.js.map deleted file mode 100644 index 79b2b83..0000000 --- a/dist/service/src/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/src/models/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,sEAA4C;AAC5C,2EAAiD;AACjD,kEAAwC;AACxC,oDAA0B;AAC1B,4DAAkC;AAClC,oDAA0B;AAC1B,uDAA6B;AAC7B,0DAAgC;AAChC,8DAAoC;AACpC,kEAAwC;AACxC,wDAA8B;AAC9B,8DAAoC;AACpC,yDAA+B;AAC/B,iEAAuC;AACvC,wDAA8B;AAC9B,sDAA4B;AAC5B,sDAA4B;AAC5B,0DAAgC;AAChC,iEAAuC;AACvC,gDAAsB;AACtB,yDAA+B;AAC/B,8DAAoC;AACpC,uEAA6C;AAC7C,wEAA8C;AAC9C,+DAAqC;AACrC,wEAA8C;AAC9C,yEAA+C;AAC/C,sEAA4C;AAC5C,uEAA6C;AAC7C,6DAAmC;AACnC,kEAAwC;AACxC,qFAA2D;AAC3D,sFAA4D;AAC5D,yEAA+C;AAC/C,0EAAgD;AAChD,gDAAsB;AACtB,6DAAmC;AACnC,uDAA6B;AAC7B,kDAAwB;AACxB,sDAA4B;AAC5B,0DAAgC;AAChC,sDAA4B;AAC5B,yDAA+B;AAC/B,gEAAsC;AACtC,uDAA6B;AAC7B,kDAAwB;AACxB,8DAAoC;AACpC,yDAA+B;AAC/B,gEAAsC;AACtC,0DAAgC;AAChC,2DAAiC;AACjC,sDAA4B;AAC5B,uDAA6B;AAC7B,2DAAiC;AACjC,0EAAgD;AAChD,iFAAuD;AACvD,uFAA6D;AAC7D,6EAAmD;AACnD,6EAAmD;AACnD,0EAAgD;AAChD,8EAAoD;AACpD,kEAAwC;AACxC,0EAAgD;AAChD,wFAA8D;AAC9D,6EAAmD;AACnD,6EAAmD;AACnD,yDAA+B;AAC/B,sDAA4B;AAC5B,+DAAqC;AACrC,0EAAgD;AAChD,2EAAiD;AACjD,kEAAwC;AACxC,mEAAyC;AACzC,qEAA2C;AAC3C,sEAA4C;AAC5C,kDAAwB;AACxB,mDAAyB;AACzB,0DAAgC;AAChC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,gEAAsC;AACtC,iEAAuC;AACvC,sDAA4B;AAC5B,sDAA4B;AAC5B,kDAAwB;AACxB,sDAA4B;AAC5B,iDAAuB;AACvB,sDAA4B;AAC5B,4DAAkC;AAClC,4DAAkC;AAClC,+DAAqC;AACrC,gEAAsC;AACtC,iEAAuC;AACvC,sDAA4B;AAC5B,sDAA4B;AAC5B,+DAAqC;AACrC,0DAAgC;AAChC,kDAAwB;AACxB,uDAA6B;AAC7B,gEAAsC;AACtC,2DAAiC;AACjC,gEAAsC;AACtC,2DAAiC;AACjC,0DAAgC"} \ No newline at end of file diff --git a/dist/service/src/runtime.d.ts b/dist/service/src/runtime.d.ts deleted file mode 100644 index 4a4cd6e..0000000 --- a/dist/service/src/runtime.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export declare const BASE_PATH: string; -export interface ConfigurationParameters { - basePath?: string; - fetchApi?: FetchAPI; - middleware?: Middleware[]; - queryParamsStringify?: (params: HTTPQuery) => string; - username?: string; - password?: string; - apiKey?: string | Promise | ((name: string) => string | Promise); - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); - headers?: HTTPHeaders; - credentials?: RequestCredentials; -} -export declare class Configuration { - private configuration; - constructor(configuration?: ConfigurationParameters); - set config(configuration: Configuration); - get basePath(): string; - get fetchApi(): FetchAPI | undefined; - get middleware(): Middleware[]; - get queryParamsStringify(): (params: HTTPQuery) => string; - get username(): string | undefined; - get password(): string | undefined; - get apiKey(): ((name: string) => string | Promise) | undefined; - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; - get headers(): HTTPHeaders | undefined; - get credentials(): RequestCredentials | undefined; -} -export declare const DefaultConfig: Configuration; -/** - * This is the base class for all generated API classes. - */ -export declare class BaseAPI { - protected configuration: Configuration; - private static readonly jsonRegex; - private middleware; - constructor(configuration?: Configuration); - withMiddleware(this: T, ...middlewares: Middleware[]): T; - withPreMiddleware(this: T, ...preMiddlewares: Array): T; - withPostMiddleware(this: T, ...postMiddlewares: Array): T; - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean; - protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; - private createFetchParams; - private fetchApi; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone; -} -export declare class ResponseError extends Error { - response: Response; - name: "ResponseError"; - constructor(response: Response, msg?: string); -} -export declare class FetchError extends Error { - cause: Error; - name: "FetchError"; - constructor(cause: Error, msg?: string); -} -export declare class RequiredError extends Error { - field: string; - name: "RequiredError"; - constructor(field: string, msg?: string); -} -export declare const COLLECTION_FORMATS: { - csv: string; - ssv: string; - tsv: string; - pipes: string; -}; -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { - [key: string]: string; -}; -export type HTTPQuery = { - [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; -}; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { - headers?: HTTPHeaders; - method: HTTPMethod; - credentials?: RequestCredentials; - body?: HTTPBody; -}; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; -export type InitOverrideFunction = (requestContext: { - init: HTTPRequestInit; - context: RequestOpts; -}) => Promise; -export interface FetchParams { - url: string; - init: RequestInit; -} -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} -export declare function querystring(params: HTTPQuery, prefix?: string): string; -export declare function exists(json: any, key: string): boolean; -export declare function mapValues(data: any, fn: (item: any) => any): {}; -export declare function canConsumeForm(consumes: Consume[]): boolean; -export interface Consume { - contentType: string; -} -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} -export interface ApiResponse { - raw: Response; - value(): Promise; -} -export interface ResponseTransformer { - (json: any): T; -} -export declare class JSONApiResponse { - raw: Response; - private transformer; - constructor(raw: Response, transformer?: ResponseTransformer); - value(): Promise; -} -export declare class VoidApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -export declare class BlobApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -export declare class TextApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -//# sourceMappingURL=runtime.d.ts.map \ No newline at end of file diff --git a/dist/service/src/runtime.d.ts.map b/dist/service/src/runtime.d.ts.map deleted file mode 100644 index e1d450a..0000000 --- a/dist/service/src/runtime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime.d.ts","sourceRoot":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/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAGjC"} \ No newline at end of file diff --git a/dist/service/src/runtime.js b/dist/service/src/runtime.js deleted file mode 100644 index 24d2232..0000000 --- a/dist/service/src/runtime.js +++ /dev/null @@ -1,346 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; -exports.querystring = querystring; -exports.exists = exists; -exports.mapValues = mapValues; -exports.canConsumeForm = canConsumeForm; -exports.BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); -class Configuration { - configuration; - constructor(configuration = {}) { - this.configuration = configuration; - } - set config(configuration) { - this.configuration = configuration; - } - get basePath() { - return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; - } - get fetchApi() { - return this.configuration.fetchApi; - } - get middleware() { - return this.configuration.middleware || []; - } - get queryParamsStringify() { - return this.configuration.queryParamsStringify || querystring; - } - get username() { - return this.configuration.username; - } - get password() { - return this.configuration.password; - } - get apiKey() { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - get accessToken() { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - get headers() { - return this.configuration.headers; - } - get credentials() { - return this.configuration.credentials; - } -} -exports.Configuration = Configuration; -exports.DefaultConfig = new Configuration(); -/** - * This is the base class for all generated API classes. - */ -class BaseAPI { - configuration; - static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - middleware; - constructor(configuration = exports.DefaultConfig) { - this.configuration = configuration; - this.middleware = configuration.middleware; - } - withMiddleware(...middlewares) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - withPreMiddleware(...preMiddlewares) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - withPostMiddleware(...postMiddlewares) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime) { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - async request(context, initOverrides) { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - async createFetchParams(context, initOverrides) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - const initOverrideFn = typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - const overriddenInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - let body; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } - else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); - } - else { - body = overriddenInit.body; - } - const init = { - ...overriddenInit, - body - }; - return { url, init }; - } - fetchApi = async (url, init) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } - catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } - else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - }; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - clone() { - const constructor = this.constructor; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -} -exports.BaseAPI = BaseAPI; -; -function isBlob(value) { - return typeof Blob !== 'undefined' && value instanceof Blob; -} -function isFormData(value) { - return typeof FormData !== "undefined" && value instanceof FormData; -} -class ResponseError extends Error { - response; - name = "ResponseError"; - constructor(response, msg) { - super(msg); - this.response = response; - } -} -exports.ResponseError = ResponseError; -class FetchError extends Error { - cause; - name = "FetchError"; - constructor(cause, msg) { - super(msg); - this.cause = cause; - } -} -exports.FetchError = FetchError; -class RequiredError extends Error { - field; - name = "RequiredError"; - constructor(field, msg) { - super(msg); - this.field = field; - } -} -exports.RequiredError = RequiredError; -exports.COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; -function querystring(params, prefix = '') { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} -function querystringSingleKey(key, value, keyPrefix = '') { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} -function exists(json, key) { - const value = json[key]; - return value !== null && value !== undefined; -} -function mapValues(data, fn) { - return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); -} -function canConsumeForm(consumes) { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} -class JSONApiResponse { - raw; - transformer; - constructor(raw, transformer = (jsonValue) => jsonValue) { - this.raw = raw; - this.transformer = transformer; - } - async value() { - return this.transformer(await this.raw.json()); - } -} -exports.JSONApiResponse = JSONApiResponse; -class VoidApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return undefined; - } -} -exports.VoidApiResponse = VoidApiResponse; -class BlobApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.blob(); - } - ; -} -exports.BlobApiResponse = BlobApiResponse; -class TextApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.text(); - } - ; -} -exports.TextApiResponse = TextApiResponse; -//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/dist/service/src/runtime.js.map b/dist/service/src/runtime.js.map deleted file mode 100644 index b5f219c..0000000 --- a/dist/service/src/runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/service/src/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA4SH,kCAKC;AAsBD,wBAGC;AAED,8BAKC;AAED,wCAOC;AAvVY,QAAA,SAAS,GAAG,uBAAuB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAerE,MAAa,aAAa;IACF;IAApB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAS,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,IAAI,WAAW,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,MAAM;QACN,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QACzC,IAAI,MAAM,EAAE,CAAC;YACT,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,M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M,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAND,0CAMC"} \ No newline at end of file diff --git a/dist/wallet/api.d.ts b/dist/wallet/api.d.ts new file mode 100644 index 0000000..a831051 --- /dev/null +++ b/dist/wallet/api.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * as AuthApi from './api/auth-api'; +export * as BalanceApi from './api/balance-api'; +export * as CoinsApi from './api/coins-api'; +export * as DepositApi from './api/deposit-api'; +export * as HealthApi from './api/health-api'; +export * as LoansApi from './api/loans-api'; +export * as PaymentApi from './api/payment-api'; +export * as PointsApi from './api/points-api'; +export * as RedemptionsApi from './api/redemptions-api'; +export * as ReferralsApi from './api/referrals-api'; +export * as SwapApi from './api/swap-api'; +export * as TasksApi from './api/tasks-api'; +export * as TransactionsApi from './api/transactions-api'; +export * as UserApi from './api/user-api'; +export * as WithdrawApi from './api/withdraw-api'; +//# sourceMappingURL=api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api.d.ts.map b/dist/wallet/api.d.ts.map new file mode 100644 index 0000000..86fe869 --- /dev/null +++ b/dist/wallet/api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/wallet/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api.js b/dist/wallet/api.js new file mode 100644 index 0000000..50cff9f --- /dev/null +++ b/dist/wallet/api.js @@ -0,0 +1,33 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawApi = exports.UserApi = exports.TransactionsApi = exports.TasksApi = exports.SwapApi = exports.ReferralsApi = exports.RedemptionsApi = exports.PointsApi = exports.PaymentApi = exports.LoansApi = exports.HealthApi = exports.DepositApi = exports.CoinsApi = exports.BalanceApi = exports.AuthApi = void 0; +const tslib_1 = require("tslib"); +exports.AuthApi = tslib_1.__importStar(require("./api/auth-api")); +exports.BalanceApi = tslib_1.__importStar(require("./api/balance-api")); +exports.CoinsApi = tslib_1.__importStar(require("./api/coins-api")); +exports.DepositApi = tslib_1.__importStar(require("./api/deposit-api")); +exports.HealthApi = tslib_1.__importStar(require("./api/health-api")); +exports.LoansApi = tslib_1.__importStar(require("./api/loans-api")); +exports.PaymentApi = tslib_1.__importStar(require("./api/payment-api")); +exports.PointsApi = tslib_1.__importStar(require("./api/points-api")); +exports.RedemptionsApi = tslib_1.__importStar(require("./api/redemptions-api")); +exports.ReferralsApi = tslib_1.__importStar(require("./api/referrals-api")); +exports.SwapApi = tslib_1.__importStar(require("./api/swap-api")); +exports.TasksApi = tslib_1.__importStar(require("./api/tasks-api")); +exports.TransactionsApi = tslib_1.__importStar(require("./api/transactions-api")); +exports.UserApi = tslib_1.__importStar(require("./api/user-api")); +exports.WithdrawApi = tslib_1.__importStar(require("./api/withdraw-api")); +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/wallet/api.js.map b/dist/wallet/api.js.map new file mode 100644 index 0000000..6f57861 --- /dev/null +++ b/dist/wallet/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/wallet/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAIH,kEAA0C;AAC1C,wEAAgD;AAChD,oEAA4C;AAC5C,wEAAgD;AAChD,sEAA8C;AAC9C,oEAA4C;AAC5C,wEAAgD;AAChD,sEAA8C;AAC9C,gFAAwD;AACxD,4EAAoD;AACpD,kEAA0C;AAC1C,oEAA4C;AAC5C,kFAA0D;AAC1D,kEAA0C;AAC1C,0EAAkD"} \ No newline at end of file diff --git a/dist/wallet/api/auth-api.d.ts b/dist/wallet/api/auth-api.d.ts new file mode 100644 index 0000000..a0dc679 --- /dev/null +++ b/dist/wallet/api/auth-api.d.ts @@ -0,0 +1,322 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AuthTelegramRequest } from '../model'; +import type { JwtResponse } from '../model'; +import type { LoginRequest } from '../model'; +import type { SignUpRequest } from '../model'; +import type { SimpleResponse } from '../model'; +/** + * AuthApi - axios parameter creator + * @export + */ +export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram: (authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken: (duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp: (channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword: (loginRequest: LoginRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword: (signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail: (token: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * AuthApi - functional programming interface + * @export + */ +export declare const AuthApiFp: (configuration?: Configuration) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * AuthApi - factory interface + * @export + */ +export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * AuthApi - interface + * @export + * @interface AuthApi + */ +export interface AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * AuthApi - object-oriented interface + * @export + * @class AuthApi + * @extends {BaseAPI} + */ +export declare class AuthApi extends BaseAPI implements AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GenerateJwtTokenDurationEnum: { + readonly NUMBER_7: 7; + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_90: 90; +}; +export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; +/** + * @export + */ +export declare const GetOtpChannelEnum: { + readonly PHONE: "phone"; +}; +export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; +//# sourceMappingURL=auth-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/auth-api.d.ts.map b/dist/wallet/api/auth-api.d.ts.map new file mode 100644 index 0000000..6980c71 --- /dev/null +++ b/dist/wallet/api/auth-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/auth-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YA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,CAAC,EAAE,qBAAqB;IAIzE;;;;;;;OAOG;IACI,yBAAyB,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI5F;;;;;;;OAOG;IACI,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/F;;;;;;;OAOG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxE;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAC1H;;GAEG;AACH,eAAO,MAAM,iBAAiB;;CAEpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/auth-api.js b/dist/wallet/api/auth-api.js new file mode 100644 index 0000000..02594db --- /dev/null +++ b/dist/wallet/api/auth-api.js @@ -0,0 +1,491 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetOtpChannelEnum = exports.GenerateJwtTokenDurationEnum = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * AuthApi - axios parameter creator + * @export + */ +const AuthApiAxiosParamCreator = function (configuration) { + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram: (authTelegramRequest_1, ...args_1) => tslib_1.__awaiter(this, [authTelegramRequest_1, ...args_1], void 0, function* (authTelegramRequest, options = {}) { + // verify required parameter 'authTelegramRequest' is not null or undefined + (0, common_1.assertParamExists)('authenticateWithTelegram', 'authTelegramRequest', authTelegramRequest); + const localVarPath = `/auth/telegram`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authTelegramRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken: (duration_1, ...args_1) => tslib_1.__awaiter(this, [duration_1, ...args_1], void 0, function* (duration, options = {}) { + // verify required parameter 'duration' is not null or undefined + (0, common_1.assertParamExists)('generateJwtToken', 'duration', duration); + const localVarPath = `/auth/token`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (duration !== undefined) { + localVarQueryParameter['duration'] = duration; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp: (channel_1, ...args_1) => tslib_1.__awaiter(this, [channel_1, ...args_1], void 0, function* (channel, options = {}) { + // verify required parameter 'channel' is not null or undefined + (0, common_1.assertParamExists)('getOtp', 'channel', channel); + const localVarPath = `/auth/otp`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (channel !== undefined) { + localVarQueryParameter['channel'] = channel; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword: (loginRequest_1, ...args_1) => tslib_1.__awaiter(this, [loginRequest_1, ...args_1], void 0, function* (loginRequest, options = {}) { + // verify required parameter 'loginRequest' is not null or undefined + (0, common_1.assertParamExists)('loginWithEmailAndPassword', 'loginRequest', loginRequest); + const localVarPath = `/auth/login`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword: (signUpRequest_1, ...args_1) => tslib_1.__awaiter(this, [signUpRequest_1, ...args_1], void 0, function* (signUpRequest, options = {}) { + // verify required parameter 'signUpRequest' is not null or undefined + (0, common_1.assertParamExists)('signupWithEmailAndPassword', 'signUpRequest', signUpRequest); + const localVarPath = `/auth/signup`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(signUpRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail: (token_1, ...args_1) => tslib_1.__awaiter(this, [token_1, ...args_1], void 0, function* (token, options = {}) { + // verify required parameter 'token' is not null or undefined + (0, common_1.assertParamExists)('verifyUserEmail', 'token', token); + const localVarPath = `/verify-email`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator; +/** + * AuthApi - functional programming interface + * @export + */ +const AuthApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration); + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.authenticateWithTelegram(authTelegramRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authenticateWithTelegram']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.generateJwtToken(duration, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.generateJwtToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getOtp(channel, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.getOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.loginWithEmailAndPassword(loginRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.loginWithEmailAndPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.signupWithEmailAndPassword(signUpRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.signupWithEmailAndPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyUserEmail(token, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.verifyUserEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.AuthApiFp = AuthApiFp; +/** + * AuthApi - factory interface + * @export + */ +const AuthApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.AuthApiFp)(configuration); + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest, options) { + return localVarFp.authenticateWithTelegram(authTelegramRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration, options) { + return localVarFp.generateJwtToken(duration, options).then((request) => request(axios, basePath)); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel, options) { + return localVarFp.getOtp(channel, options).then((request) => request(axios, basePath)); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest, options) { + return localVarFp.loginWithEmailAndPassword(loginRequest, options).then((request) => request(axios, basePath)); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest, options) { + return localVarFp.signupWithEmailAndPassword(signUpRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token, options) { + return localVarFp.verifyUserEmail(token, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.AuthApiFactory = AuthApiFactory; +/** + * AuthApi - object-oriented interface + * @export + * @class AuthApi + * @extends {BaseAPI} + */ +class AuthApi extends base_1.BaseAPI { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + authenticateWithTelegram(authTelegramRequest, options) { + return (0, exports.AuthApiFp)(this.configuration).authenticateWithTelegram(authTelegramRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + generateJwtToken(duration, options) { + return (0, exports.AuthApiFp)(this.configuration).generateJwtToken(duration, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + getOtp(channel, options) { + return (0, exports.AuthApiFp)(this.configuration).getOtp(channel, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + loginWithEmailAndPassword(loginRequest, options) { + return (0, exports.AuthApiFp)(this.configuration).loginWithEmailAndPassword(loginRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + signupWithEmailAndPassword(signUpRequest, options) { + return (0, exports.AuthApiFp)(this.configuration).signupWithEmailAndPassword(signUpRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + verifyUserEmail(token, options) { + return (0, exports.AuthApiFp)(this.configuration).verifyUserEmail(token, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.AuthApi = AuthApi; +/** + * @export + */ +exports.GenerateJwtTokenDurationEnum = { + NUMBER_7: 7, + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_90: 90 +}; +/** + * @export + */ +exports.GetOtpChannelEnum = { + PHONE: 'phone' +}; +//# sourceMappingURL=auth-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/auth-api.js.map b/dist/wallet/api/auth-api.js.map new file mode 100644 index 0000000..6e4276e --- /dev/null +++ b/dist/wallet/api/auth-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-api.js","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A0B,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClJ,CAAC;IAED;;;;;;;OAOG;IACI,eAAe,CAAC,KAAa,EAAE,OAA+B;QACjE,OAAO,IAAA,iBAAS,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/H,CAAC;CACJ;AAxED,0BAwEC;AAED;;GAEG;AACU,QAAA,4BAA4B,GAAG;IACxC,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;CACP,CAAC;AAEX;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC7B,KAAK,EAAE,OAAO;CACR,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/balance-api.d.ts b/dist/wallet/api/balance-api.d.ts new file mode 100644 index 0000000..b441de0 --- /dev/null +++ b/dist/wallet/api/balance-api.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Balance } from '../model'; +import type { Symbol } from '../model'; +import type { WalletBalance } from '../model'; +/** + * BalanceApi - axios parameter creator + * @export + */ +export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol: (symbol: Symbol, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * BalanceApi - functional programming interface + * @export + */ +export declare const BalanceApiFp: (configuration?: Configuration) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * BalanceApi - factory interface + * @export + */ +export declare const BalanceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * BalanceApi - interface + * @export + * @interface BalanceApi + */ +export interface BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * BalanceApi - object-oriented interface + * @export + * @class BalanceApi + * @extends {BaseAPI} + */ +export declare class BalanceApi extends BaseAPI implements BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getWalletBalance(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=balance-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/balance-api.d.ts.map b/dist/wallet/api/balance-api.d.ts.map new file mode 100644 index 0000000..9d9b33d --- /dev/null +++ b/dist/wallet/api/balance-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/balance-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;OAMG;iCACgC,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW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-api.js b/dist/wallet/api/balance-api.js new file mode 100644 index 0000000..5d22358 --- /dev/null +++ b/dist/wallet/api/balance-api.js @@ -0,0 +1,196 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * BalanceApi - axios parameter creator + * @export + */ +const BalanceApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol: (symbol_1, ...args_1) => tslib_1.__awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + // verify required parameter 'symbol' is not null or undefined + (0, common_1.assertParamExists)('getBalanceBySymbol', 'symbol', symbol); + const localVarPath = `/balance/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/balance`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.BalanceApiAxiosParamCreator = BalanceApiAxiosParamCreator; +/** + * BalanceApi - functional programming interface + * @export + */ +const BalanceApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.BalanceApiAxiosParamCreator)(configuration); + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalanceBySymbol(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BalanceApi.getBalanceBySymbol']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getWalletBalance(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BalanceApi.getWalletBalance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.BalanceApiFp = BalanceApiFp; +/** + * BalanceApi - factory interface + * @export + */ +const BalanceApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.BalanceApiFp)(configuration); + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol, options) { + return localVarFp.getBalanceBySymbol(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options) { + return localVarFp.getWalletBalance(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.BalanceApiFactory = BalanceApiFactory; +/** + * BalanceApi - object-oriented interface + * @export + * @class BalanceApi + * @extends {BaseAPI} + */ +class BalanceApi extends base_1.BaseAPI { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getBalanceBySymbol(symbol, options) { + return (0, exports.BalanceApiFp)(this.configuration).getBalanceBySymbol(symbol, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + getWalletBalance(options) { + return (0, exports.BalanceApiFp)(this.configuration).getWalletBalance(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.BalanceApi = BalanceApi; +//# sourceMappingURL=balance-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/balance-api.js.map b/dist/wallet/api/balance-api.js.map new file mode 100644 index 0000000..52a4c8c --- /dev/null +++ b/dist/wallet/api/balance-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance-api.js","sourceRoot":"","sources":["../../../src/wallet/api/balance-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;WAMG;QACH,kBAAkB,EAAE,sBAAkF,EAAE,mEAA7E,MAAc,EAAE,UAAiC,EAAE;YAC1E,8DAA8D;YAC9D,IAAA,0BAAiB,EAAC,oBAAoB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;YACzD,MAAM,YAAY,GAAG,mBAAmB;iBACnC,OAAO,CAAC,IAAI,QAAQ,GA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C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAvBW,QAAA,iBAAiB,qBAuB5B;AA6BF;;;;;GAKG;AACH,MAAa,UAAW,SAAQ,cAAO;IACnC;;;;;;;OAOG;IACI,kBAAkB,CAAC,MAAc,EAAE,OAA+B;QACrE,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtI,CAAC;IAED;;;;;;OAMG;IACI,gBAAgB,CAAC,OAA+B;QACnD,OAAO,IAAA,oBAAY,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5H,CAAC;CACJ;AAvBD,gCAuBC"} \ No newline at end of file diff --git a/dist/wallet/api/coins-api.d.ts b/dist/wallet/api/coins-api.d.ts new file mode 100644 index 0000000..32158e2 --- /dev/null +++ b/dist/wallet/api/coins-api.d.ts @@ -0,0 +1,130 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Coin } from '../model'; +import type { CoinResponse } from '../model'; +import type { Symbol } from '../model'; +/** + * CoinsApi - axios parameter creator + * @export + */ +export declare const CoinsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails: (symbol: Symbol, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * CoinsApi - functional programming interface + * @export + */ +export declare const CoinsApiFp: (configuration?: Configuration) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * CoinsApi - factory interface + * @export + */ +export declare const CoinsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * CoinsApi - interface + * @export + * @interface CoinsApi + */ +export interface CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * CoinsApi - object-oriented interface + * @export + * @class CoinsApi + * @extends {BaseAPI} + */ +export declare class CoinsApi extends BaseAPI implements CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getSupportedCoins(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=coins-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/coins-api.d.ts.map b/dist/wallet/api/coins-api.d.ts.map new file mode 100644 index 0000000..ea8e8ab --- /dev/null +++ b/dist/wallet/api/coins-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coins-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/coins-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAA6B,aAAa;IAExE;;;;;;OAMG;6BAC4B,MAA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D"} \ No newline at end of file diff --git a/dist/wallet/api/coins-api.js b/dist/wallet/api/coins-api.js new file mode 100644 index 0000000..273ba62 --- /dev/null +++ b/dist/wallet/api/coins-api.js @@ -0,0 +1,190 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CoinsApi = exports.CoinsApiFactory = exports.CoinsApiFp = exports.CoinsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * CoinsApi - axios parameter creator + * @export + */ +const CoinsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails: (symbol_1, ...args_1) => tslib_1.__awaiter(this, [symbol_1, ...args_1], void 0, function* (symbol, options = {}) { + // verify required parameter 'symbol' is not null or undefined + (0, common_1.assertParamExists)('getCoinDetails', 'symbol', symbol); + const localVarPath = `/coins/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/coins`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.CoinsApiAxiosParamCreator = CoinsApiAxiosParamCreator; +/** + * CoinsApi - functional programming interface + * @export + */ +const CoinsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.CoinsApiAxiosParamCreator)(configuration); + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getCoinDetails(symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CoinsApi.getCoinDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getSupportedCoins(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CoinsApi.getSupportedCoins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.CoinsApiFp = CoinsApiFp; +/** + * CoinsApi - factory interface + * @export + */ +const CoinsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.CoinsApiFp)(configuration); + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol, options) { + return localVarFp.getCoinDetails(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options) { + return localVarFp.getSupportedCoins(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.CoinsApiFactory = CoinsApiFactory; +/** + * CoinsApi - object-oriented interface + * @export + * @class CoinsApi + * @extends {BaseAPI} + */ +class CoinsApi extends base_1.BaseAPI { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getCoinDetails(symbol, options) { + return (0, exports.CoinsApiFp)(this.configuration).getCoinDetails(symbol, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + getSupportedCoins(options) { + return (0, exports.CoinsApiFp)(this.configuration).getSupportedCoins(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.CoinsApi = CoinsApi; +//# sourceMappingURL=coins-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/coins-api.js.map b/dist/wallet/api/coins-api.js.map new file mode 100644 index 0000000..1b1c958 --- /dev/null +++ b/dist/wallet/api/coins-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coins-api.js","sourceRoot":"","sources":["../../../src/wallet/api/coins-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;WAMG;QACH,cAAc,EAAE,sBAAkF,EAAE,mEAA7E,MAAc,EAAE,UAAiC,EAAE;YACtE,8DAA8D;YAC9D,IAAA,0BAAiB,EAAC,gBAAgB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;YACrD,MAAM,YAAY,GAAG,iBAAiB;iBACjC,OAAO,CAAC,IAAI,QAAQ,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAClE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,I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IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CAAC,OAA+B;QACpD,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ;AAvBD,4BAuBC"} \ No newline at end of file diff --git a/dist/wallet/api/deposit-api.d.ts b/dist/wallet/api/deposit-api.d.ts new file mode 100644 index 0000000..47150cc --- /dev/null +++ b/dist/wallet/api/deposit-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { DepositResponse } from '../model'; +/** + * DepositApi - axios parameter creator + * @export + */ +export declare const DepositApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney: (network: string, symbol: string, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * DepositApi - functional programming interface + * @export + */ +export declare const DepositApiFp: (configuration?: Configuration) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * DepositApi - factory interface + * @export + */ +export declare const DepositApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * DepositApi - interface + * @export + * @interface DepositApi + */ +export interface DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApiInterface + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * DepositApi - object-oriented interface + * @export + * @class DepositApi + * @extends {BaseAPI} + */ +export declare class DepositApi extends BaseAPI implements DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApi + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=deposit-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/deposit-api.d.ts.map b/dist/wallet/api/deposit-api.d.ts.map new file mode 100644 index 0000000..a0c673e --- /dev/null +++ b/dist/wallet/api/deposit-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/deposit-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;;OAOG;4BAC2B,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyCvH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;;OAOG;0BACyB,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,eAAe,CAAC,CAAC;CAOjL,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;;OAOG;0BACmB,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,eAAe,CAAC;CAIpH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;CAEjH;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;;OAQG;IACI,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGvF"} \ No newline at end of file diff --git a/dist/wallet/api/deposit-api.js b/dist/wallet/api/deposit-api.js new file mode 100644 index 0000000..3d0c65c --- /dev/null +++ b/dist/wallet/api/deposit-api.js @@ -0,0 +1,145 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DepositApi = exports.DepositApiFactory = exports.DepositApiFp = exports.DepositApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * DepositApi - axios parameter creator + * @export + */ +const DepositApiAxiosParamCreator = function (configuration) { + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney: (network_1, symbol_1, ...args_1) => tslib_1.__awaiter(this, [network_1, symbol_1, ...args_1], void 0, function* (network, symbol, options = {}) { + // verify required parameter 'network' is not null or undefined + (0, common_1.assertParamExists)('depositMoney', 'network', network); + // verify required parameter 'symbol' is not null or undefined + (0, common_1.assertParamExists)('depositMoney', 'symbol', symbol); + const localVarPath = `/deposit`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (network !== undefined) { + localVarQueryParameter['network'] = network; + } + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.DepositApiAxiosParamCreator = DepositApiAxiosParamCreator; +/** + * DepositApi - functional programming interface + * @export + */ +const DepositApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.DepositApiAxiosParamCreator)(configuration); + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network, symbol, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.depositMoney(network, symbol, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DepositApi.depositMoney']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.DepositApiFp = DepositApiFp; +/** + * DepositApi - factory interface + * @export + */ +const DepositApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.DepositApiFp)(configuration); + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network, symbol, options) { + return localVarFp.depositMoney(network, symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.DepositApiFactory = DepositApiFactory; +/** + * DepositApi - object-oriented interface + * @export + * @class DepositApi + * @extends {BaseAPI} + */ +class DepositApi extends base_1.BaseAPI { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApi + */ + depositMoney(network, symbol, options) { + return (0, exports.DepositApiFp)(this.configuration).depositMoney(network, symbol, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.DepositApi = DepositApi; +//# sourceMappingURL=deposit-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/deposit-api.js.map b/dist/wallet/api/deposit-api.js.map new file mode 100644 index 0000000..91feecc --- /dev/null +++ b/dist/wallet/api/deposit-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-api.js","sourceRoot":"","sources":["../../../src/wallet/api/deposit-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;;WAOG;QACH,YAAY,EAAE,iCAAmG,EAAE,8EAA9F,OAAe,EAAE,MAAc,EAAE,UAAiC,EAAE;YACrF,+DAA+D;YAC/D,IAAA,0BAAiB,EAAC,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YACrD,8DAA8D;YAC9D,IAAA,0BAAiB,EAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;YACnD,MAAM,YAAY,GAAG,UAAU,CAAC;YAChC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WA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AAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ;AAbD,gCAaC"} \ No newline at end of file diff --git a/dist/wallet/api/health-api.d.ts b/dist/wallet/api/health-api.d.ts new file mode 100644 index 0000000..82bbf22 --- /dev/null +++ b/dist/wallet/api/health-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { HealthStatus } from '../model'; +/** + * HealthApi - axios parameter creator + * @export + */ +export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * HealthApi - functional programming interface + * @export + */ +export declare const HealthApiFp: (configuration?: Configuration) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * HealthApi - factory interface + * @export + */ +export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * HealthApi - interface + * @export + * @interface HealthApi + */ +export interface HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApiInterface + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * HealthApi - object-oriented interface + * @export + * @class HealthApi + * @extends {BaseAPI} + */ +export declare class HealthApi extends BaseAPI implements HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApi + */ + checkApiHealth(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=health-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/health-api.d.ts.map b/dist/wallet/api/health-api.d.ts.map new file mode 100644 index 0000000..38d991a --- /dev/null +++ b/dist/wallet/api/health-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"health-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/health-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;+BAC6B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAyBxF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;6BAC4B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAO/I,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;6BACsB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAIlF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAE/E;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGxD"} \ No newline at end of file diff --git a/dist/wallet/api/health-api.js b/dist/wallet/api/health-api.js new file mode 100644 index 0000000..b528b8c --- /dev/null +++ b/dist/wallet/api/health-api.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * HealthApi - axios parameter creator + * @export + */ +const HealthApiAxiosParamCreator = function (configuration) { + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/healthz`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator; +/** + * HealthApi - functional programming interface + * @export + */ +const HealthApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration); + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.checkApiHealth(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.checkApiHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.HealthApiFp = HealthApiFp; +/** + * HealthApi - factory interface + * @export + */ +const HealthApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.HealthApiFp)(configuration); + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options) { + return localVarFp.checkApiHealth(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.HealthApiFactory = HealthApiFactory; +/** + * HealthApi - object-oriented interface + * @export + * @class HealthApi + * @extends {BaseAPI} + */ +class HealthApi extends base_1.BaseAPI { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApi + */ + checkApiHealth(options) { + return (0, exports.HealthApiFp)(this.configuration).checkApiHealth(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.HealthApi = HealthApi; +//# sourceMappingURL=health-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/health-api.js.map b/dist/wallet/api/health-api.js.map new file mode 100644 index 0000000..2915489 --- /dev/null +++ b/dist/wallet/api/health-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"health-api.js","sourceRoot":"","sources":["../../../src/wallet/api/health-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,cAAc,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YACtD,MAAM,YAAY,GAAG,UAAU,CAAC;YAChC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAIzC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,IAAI,sBAAsB,GAAG,WA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O;QACH;;;;;WAKG;QACH,cAAc,CAAC,OAA+B;YAC1C,OAAO,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AAmBF;;;;;GAKG;AACH,MAAa,SAAU,SAAQ,cAAO;IAClC;;;;;;OAMG;IACI,cAAc,CAAC,OAA+B;QACjD,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzH,CAAC;CACJ;AAXD,8BAWC"} \ No newline at end of file diff --git a/dist/wallet/api/loans-api.d.ts b/dist/wallet/api/loans-api.d.ts new file mode 100644 index 0000000..ed552c1 --- /dev/null +++ b/dist/wallet/api/loans-api.d.ts @@ -0,0 +1,342 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Currency } from '../model'; +import type { LoanCreateRequest } from '../model'; +import type { LoanPlanResponse } from '../model'; +import type { LoanToValueOptions } from '../model'; +import type { LoansResponse } from '../model'; +import type { LoansResponseList } from '../model'; +import type { RepayLoanRequest } from '../model'; +/** + * LoansApi - axios parameter creator + * @export + */ +export declare const LoansApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault: (loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral: (planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails: (id: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans: (state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan: (repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * LoansApi - functional programming interface + * @export + */ +export declare const LoansApiFp: (configuration?: Configuration) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * LoansApi - factory interface + * @export + */ +export declare const LoansApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * LoansApi - interface + * @export + * @interface LoansApi + */ +export interface LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * LoansApi - object-oriented interface + * @export + * @class LoansApi + * @extends {BaseAPI} + */ +export declare class LoansApi extends BaseAPI implements LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): Promise>; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const EstimateLoanCollateralInputTypeEnum: { + readonly LOAN: "loan"; + readonly COLLATERAL: "collateral"; +}; +export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; +/** + * @export + */ +export declare const GetUserLoansStateEnum: { + readonly PENDING: "pending"; + readonly ACTIVE: "active"; + readonly REPAYMENT_ONGOING: "repayment-ongoing"; + readonly SETTLED: "settled"; + readonly CREATION_FAILED: "creation-failed"; + readonly SETTLEMENT_FAILED: "settlement-failed"; +}; +export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; +//# sourceMappingURL=loans-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/loans-api.d.ts.map b/dist/wallet/api/loans-api.d.ts.map new file mode 100644 index 0000000..b3de27a --- /dev/null +++ b/dist/wallet/api/loans-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/loans-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAA6B,aAAa;IAExE;;;;;;OAMG;yCACwC,iBAAiB,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;IAiCxH;;;;;;;;;OASG;uCACsC,MAAM,qBAAqB,kBAAkB,UAAU,MAAM,aAAa,mCAAmC,YAAW,qBAAqB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AGvF;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAC/I;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/loans-api.js b/dist/wallet/api/loans-api.js new file mode 100644 index 0000000..2854a65 --- /dev/null +++ b/dist/wallet/api/loans-api.js @@ -0,0 +1,522 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetUserLoansStateEnum = exports.EstimateLoanCollateralInputTypeEnum = exports.LoansApi = exports.LoansApiFactory = exports.LoansApiFp = exports.LoansApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * LoansApi - axios parameter creator + * @export + */ +const LoansApiAxiosParamCreator = function (configuration) { + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault: (loanCreateRequest_1, ...args_1) => tslib_1.__awaiter(this, [loanCreateRequest_1, ...args_1], void 0, function* (loanCreateRequest, options = {}) { + // verify required parameter 'loanCreateRequest' is not null or undefined + (0, common_1.assertParamExists)('createLoanVault', 'loanCreateRequest', loanCreateRequest); + const localVarPath = `/loans/create`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loanCreateRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral: (planName_1, loanToValueOption_1, amount_1, inputType_1, ...args_1) => tslib_1.__awaiter(this, [planName_1, loanToValueOption_1, amount_1, inputType_1, ...args_1], void 0, function* (planName, loanToValueOption, amount, inputType, options = {}) { + // verify required parameter 'planName' is not null or undefined + (0, common_1.assertParamExists)('estimateLoanCollateral', 'planName', planName); + // verify required parameter 'loanToValueOption' is not null or undefined + (0, common_1.assertParamExists)('estimateLoanCollateral', 'loanToValueOption', loanToValueOption); + // verify required parameter 'amount' is not null or undefined + (0, common_1.assertParamExists)('estimateLoanCollateral', 'amount', amount); + // verify required parameter 'inputType' is not null or undefined + (0, common_1.assertParamExists)('estimateLoanCollateral', 'inputType', inputType); + const localVarPath = `/loans/estimate`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + if (loanToValueOption !== undefined) { + localVarQueryParameter['loanToValueOption'] = loanToValueOption; + } + if (amount !== undefined) { + localVarQueryParameter['amount'] = amount; + } + if (inputType !== undefined) { + localVarQueryParameter['inputType'] = inputType; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/loans/plans`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails: (id_1, ...args_1) => tslib_1.__awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getLoanDetails', 'id', id); + const localVarPath = `/loans/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans: (state_1, planName_1, ...args_1) => tslib_1.__awaiter(this, [state_1, planName_1, ...args_1], void 0, function* (state, planName, options = {}) { + const localVarPath = `/loans`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan: (repayLoanRequest_1, ...args_1) => tslib_1.__awaiter(this, [repayLoanRequest_1, ...args_1], void 0, function* (repayLoanRequest, options = {}) { + // verify required parameter 'repayLoanRequest' is not null or undefined + (0, common_1.assertParamExists)('repayLoan', 'repayLoanRequest', repayLoanRequest); + const localVarPath = `/loans/repay`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(repayLoanRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.LoansApiAxiosParamCreator = LoansApiAxiosParamCreator; +/** + * LoansApi - functional programming interface + * @export + */ +const LoansApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.LoansApiAxiosParamCreator)(configuration); + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createLoanVault(loanCreateRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.createLoanVault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.estimateLoanCollateral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllLoanPlans(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.getAllLoanPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getLoanDetails(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.getLoanDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state, planName, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserLoans(state, planName, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.getUserLoans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.repayLoan(repayLoanRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LoansApi.repayLoan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.LoansApiFp = LoansApiFp; +/** + * LoansApi - factory interface + * @export + */ +const LoansApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.LoansApiFp)(configuration); + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest, options) { + return localVarFp.createLoanVault(loanCreateRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return localVarFp.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options) { + return localVarFp.getAllLoanPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id, options) { + return localVarFp.getLoanDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state, planName, options) { + return localVarFp.getUserLoans(state, planName, options).then((request) => request(axios, basePath)); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest, options) { + return localVarFp.repayLoan(repayLoanRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.LoansApiFactory = LoansApiFactory; +/** + * LoansApi - object-oriented interface + * @export + * @class LoansApi + * @extends {BaseAPI} + */ +class LoansApi extends base_1.BaseAPI { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + createLoanVault(loanCreateRequest, options) { + return (0, exports.LoansApiFp)(this.configuration).createLoanVault(loanCreateRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options) { + return (0, exports.LoansApiFp)(this.configuration).estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getAllLoanPlans(options) { + return (0, exports.LoansApiFp)(this.configuration).getAllLoanPlans(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getLoanDetails(id, options) { + return (0, exports.LoansApiFp)(this.configuration).getLoanDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + getUserLoans(state, planName, options) { + return (0, exports.LoansApiFp)(this.configuration).getUserLoans(state, planName, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + repayLoan(repayLoanRequest, options) { + return (0, exports.LoansApiFp)(this.configuration).repayLoan(repayLoanRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.LoansApi = LoansApi; +/** + * @export + */ +exports.EstimateLoanCollateralInputTypeEnum = { + LOAN: 'loan', + COLLATERAL: 'collateral' +}; +/** + * @export + */ +exports.GetUserLoansStateEnum = { + PENDING: 'pending', + ACTIVE: 'active', + REPAYMENT_ONGOING: 'repayment-ongoing', + SETTLED: 'settled', + CREATION_FAILED: 'creation-failed', + SETTLEMENT_FAILED: 'settlement-failed' +}; +//# sourceMappingURL=loans-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/loans-api.js.map b/dist/wallet/api/loans-api.js.map new file mode 100644 index 0000000..c66a0c6 --- /dev/null +++ b/dist/wallet/api/loans-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-api.js","sourceRoot":"","sources":["../../../src/wallet/api/loans-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAiBtH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;WAMG;QACH,eAAe,EAAE,iCAAwG,EAAE,8EAAnG,iBAAoC,EAAE,UAAiC,EAAE;YAC7F,yEAAyE;YACzE,IAAA,0BAAiB,EAAC,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC,CAAA;YAC5E,MAAM,YAAY,GAAG,eAAe,CAAC;YACrC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM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A+B;QACjG,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvI,CAAC;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,gBAAkC,EAAE,OAA+B;QAChF,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrI,CAAC;CACJ;AA3ED,4BA2EC;AAED;;GAEG;AACU,QAAA,mCAAmC,GAAG;IAC/C,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;CAClB,CAAC;AAEX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;CAChC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/payment-api.d.ts b/dist/wallet/api/payment-api.d.ts new file mode 100644 index 0000000..dd71dce --- /dev/null +++ b/dist/wallet/api/payment-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Payment } from '../model'; +import type { PaymentRequest } from '../model'; +/** + * PaymentApi - axios parameter creator + * @export + */ +export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment: (paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PaymentApi - functional programming interface + * @export + */ +export declare const PaymentApiFp: (configuration?: Configuration) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PaymentApi - factory interface + * @export + */ +export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PaymentApi - interface + * @export + * @interface PaymentApi + */ +export interface PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApiInterface + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PaymentApi - object-oriented interface + * @export + * @class PaymentApi + * @extends {BaseAPI} + */ +export declare class PaymentApi extends BaseAPI implements PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApi + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=payment-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/payment-api.d.ts.map b/dist/wallet/api/payment-api.d.ts.map new file mode 100644 index 0000000..320cfb5 --- /dev/null +++ b/dist/wallet/api/payment-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/payment-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,mBAA6B,aAAa;IAE1E;;;;;;OAMG;oCACmC,cAAc,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAkCvH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAA4B,aAAa;IAG1D;;;;;;OAMG;kCACiC,cAAc,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;CAOzK,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG1G;;;;;;OAMG;kCAC2B,cAAc,YAAY,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC;CAI5G,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,aAAa,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAEzG;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,OAAQ,YAAW,mBAAmB;IAClE;;;;;;;OAOG;IACI,aAAa,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGvF"} \ No newline at end of file diff --git a/dist/wallet/api/payment-api.js b/dist/wallet/api/payment-api.js new file mode 100644 index 0000000..14f7150 --- /dev/null +++ b/dist/wallet/api/payment-api.js @@ -0,0 +1,135 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * PaymentApi - axios parameter creator + * @export + */ +const PaymentApiAxiosParamCreator = function (configuration) { + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment: (paymentRequest_1, ...args_1) => tslib_1.__awaiter(this, [paymentRequest_1, ...args_1], void 0, function* (paymentRequest, options = {}) { + // verify required parameter 'paymentRequest' is not null or undefined + (0, common_1.assertParamExists)('createPayment', 'paymentRequest', paymentRequest); + const localVarPath = `/payments`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(paymentRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.PaymentApiAxiosParamCreator = PaymentApiAxiosParamCreator; +/** + * PaymentApi - functional programming interface + * @export + */ +const PaymentApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.PaymentApiAxiosParamCreator)(configuration); + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(paymentRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.createPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.PaymentApiFp = PaymentApiFp; +/** + * PaymentApi - factory interface + * @export + */ +const PaymentApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.PaymentApiFp)(configuration); + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest, options) { + return localVarFp.createPayment(paymentRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.PaymentApiFactory = PaymentApiFactory; +/** + * PaymentApi - object-oriented interface + * @export + * @class PaymentApi + * @extends {BaseAPI} + */ +class PaymentApi extends base_1.BaseAPI { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApi + */ + createPayment(paymentRequest, options) { + return (0, exports.PaymentApiFp)(this.configuration).createPayment(paymentRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.PaymentApi = PaymentApi; +//# sourceMappingURL=payment-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/payment-api.js.map b/dist/wallet/api/payment-api.js.map new file mode 100644 index 0000000..8fae474 --- /dev/null +++ b/dist/wallet/api/payment-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-api.js","sourceRoot":"","sources":["../../../src/wallet/api/payment-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAOtH;;;GAGG;AACI,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACH;;;;;;WAMG;QACH,aAAa,EAAE,8BAAkG,EAAE,2EAA7F,cAA8B,EAAE,UAAiC,EAAE;YACrF,sEAAsE;YACtE,IAAA,0BAAiB,EAAC,eAAe,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;YACpE,MAAM,YAA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AC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzI,CAAC;CACJ;AAZD,gCAYC"} \ No newline at end of file diff --git a/dist/wallet/api/points-api.d.ts b/dist/wallet/api/points-api.d.ts new file mode 100644 index 0000000..8f0accc --- /dev/null +++ b/dist/wallet/api/points-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { FriendPointsResponse } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export declare const PointsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * PointsApi - functional programming interface + * @export + */ +export declare const PointsApiFp: (configuration?: Configuration) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * PointsApi - factory interface + * @export + */ +export declare const PointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export declare class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getFriendsPoints(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=points-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/points-api.d.ts.map b/dist/wallet/api/points-api.d.ts.map new file mode 100644 index 0000000..1f780d7 --- /dev/null +++ b/dist/wallet/api/points-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/points-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;OAKG;iCAC+B,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6B1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;OAKG;+BAC8B,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAOzJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;OAKG;+BACwB,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC;CAI5F,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEzF;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAQ,YAAW,kBAAkB;IAChE;;;;;;OAMG;IACI,gBAAgB,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAG1D"} \ No newline at end of file diff --git a/dist/wallet/api/points-api.js b/dist/wallet/api/points-api.js new file mode 100644 index 0000000..313f04c --- /dev/null +++ b/dist/wallet/api/points-api.js @@ -0,0 +1,127 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PointsApi = exports.PointsApiFactory = exports.PointsApiFp = exports.PointsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * PointsApi - axios parameter creator + * @export + */ +const PointsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/points/frineds`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.PointsApiAxiosParamCreator = PointsApiAxiosParamCreator; +/** + * PointsApi - functional programming interface + * @export + */ +const PointsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.PointsApiAxiosParamCreator)(configuration); + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getFriendsPoints(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PointsApi.getFriendsPoints']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.PointsApiFp = PointsApiFp; +/** + * PointsApi - factory interface + * @export + */ +const PointsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.PointsApiFp)(configuration); + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options) { + return localVarFp.getFriendsPoints(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.PointsApiFactory = PointsApiFactory; +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +class PointsApi extends base_1.BaseAPI { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + getFriendsPoints(options) { + return (0, exports.PointsApiFp)(this.configuration).getFriendsPoints(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.PointsApi = PointsApi; +//# sourceMappingURL=points-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/points-api.js.map b/dist/wallet/api/points-api.js.map new file mode 100644 index 0000000..3904214 --- /dev/null +++ b/dist/wallet/api/points-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"points-api.js","sourceRoot":"","sources":["../../../src/wallet/api/points-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YACxD,MAAM,YAAY,GAAG,iBAAiB,CAAC;YACvC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAA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CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;YACpK,CAAC;SAAA;KACJ,CAAA;AACL,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB;AAEF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC7G,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,aAAa,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;WAKG;QACH,gBAAgB,CAAC,OAA+B;YAC5C,OAAO,UAAU,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AAmBF;;;;;GAKG;AACH,MAAa,SAAU,SAAQ,cAAO;IAClC;;;;;;OAMG;IACI,gBAAgB,CAAC,OAA+B;QACnD,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3H,CAAC;CACJ;AAXD,8BAWC"} \ No newline at end of file diff --git a/dist/wallet/api/redemptions-api.d.ts b/dist/wallet/api/redemptions-api.d.ts new file mode 100644 index 0000000..e8ac387 --- /dev/null +++ b/dist/wallet/api/redemptions-api.d.ts @@ -0,0 +1,235 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { AdminRedemptionUpdateRequest } from '../model'; +import type { Redemption } from '../model'; +import type { RedemptionRequest } from '../model'; +import type { RedemptionResponse } from '../model'; +/** + * RedemptionsApi - axios parameter creator + * @export + */ +export declare const RedemptionsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions: (state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar: (redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus: (id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * RedemptionsApi - functional programming interface + * @export + */ +export declare const RedemptionsApiFp: (configuration?: Configuration) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * RedemptionsApi - factory interface + * @export + */ +export declare const RedemptionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * RedemptionsApi - interface + * @export + * @interface RedemptionsApi + */ +export interface RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * RedemptionsApi - object-oriented interface + * @export + * @class RedemptionsApi + * @extends {BaseAPI} + */ +export declare class RedemptionsApi extends BaseAPI implements RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): Promise>; +} +/** + * @export + */ +export declare const GetAllRedemptionsStateEnum: { + readonly PENDING: "pending"; + readonly APPROVED: "approved"; + readonly COMPLETED: "completed"; + readonly REJECTED: "rejected"; +}; +export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; +//# sourceMappingURL=redemptions-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/redemptions-api.d.ts.map b/dist/wallet/api/redemptions-api.d.ts.map new file mode 100644 index 0000000..9e55f7f --- /dev/null +++ b/dist/wallet/api/redemptions-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemptions-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/redemptions-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,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5F;;;;;;;OAOG;IACI,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIvE;;;;;;;OAOG;IACI,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItF;;;;;;;;OAQG;IACI,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxI;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/redemptions-api.js b/dist/wallet/api/redemptions-api.js new file mode 100644 index 0000000..420d51f --- /dev/null +++ b/dist/wallet/api/redemptions-api.js @@ -0,0 +1,359 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetAllRedemptionsStateEnum = exports.RedemptionsApi = exports.RedemptionsApiFactory = exports.RedemptionsApiFp = exports.RedemptionsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * RedemptionsApi - axios parameter creator + * @export + */ +const RedemptionsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions: (state_1, ...args_1) => tslib_1.__awaiter(this, [state_1, ...args_1], void 0, function* (state, options = {}) { + const localVarPath = `/admin/redemptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails: (id_1, ...args_1) => tslib_1.__awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getRedemptionDetails', 'id', id); + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar: (redemptionRequest_1, ...args_1) => tslib_1.__awaiter(this, [redemptionRequest_1, ...args_1], void 0, function* (redemptionRequest, options = {}) { + // verify required parameter 'redemptionRequest' is not null or undefined + (0, common_1.assertParamExists)('redeemZar', 'redemptionRequest', redemptionRequest); + const localVarPath = `/redemptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(redemptionRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus: (id_1, adminRedemptionUpdateRequest_1, ...args_1) => tslib_1.__awaiter(this, [id_1, adminRedemptionUpdateRequest_1, ...args_1], void 0, function* (id, adminRedemptionUpdateRequest, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('updateRedemptionStatus', 'id', id); + // verify required parameter 'adminRedemptionUpdateRequest' is not null or undefined + (0, common_1.assertParamExists)('updateRedemptionStatus', 'adminRedemptionUpdateRequest', adminRedemptionUpdateRequest); + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminRedemptionUpdateRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.RedemptionsApiAxiosParamCreator = RedemptionsApiAxiosParamCreator; +/** + * RedemptionsApi - functional programming interface + * @export + */ +const RedemptionsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.RedemptionsApiAxiosParamCreator)(configuration); + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllRedemptions(state, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RedemptionsApi.getAllRedemptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getRedemptionDetails(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RedemptionsApi.getRedemptionDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.redeemZar(redemptionRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RedemptionsApi.redeemZar']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RedemptionsApi.updateRedemptionStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.RedemptionsApiFp = RedemptionsApiFp; +/** + * RedemptionsApi - factory interface + * @export + */ +const RedemptionsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.RedemptionsApiFp)(configuration); + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state, options) { + return localVarFp.getAllRedemptions(state, options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id, options) { + return localVarFp.getRedemptionDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest, options) { + return localVarFp.redeemZar(redemptionRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return localVarFp.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.RedemptionsApiFactory = RedemptionsApiFactory; +/** + * RedemptionsApi - object-oriented interface + * @export + * @class RedemptionsApi + * @extends {BaseAPI} + */ +class RedemptionsApi extends base_1.BaseAPI { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getAllRedemptions(state, options) { + return (0, exports.RedemptionsApiFp)(this.configuration).getAllRedemptions(state, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + getRedemptionDetails(id, options) { + return (0, exports.RedemptionsApiFp)(this.configuration).getRedemptionDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + redeemZar(redemptionRequest, options) { + return (0, exports.RedemptionsApiFp)(this.configuration).redeemZar(redemptionRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + updateRedemptionStatus(id, adminRedemptionUpdateRequest, options) { + return (0, exports.RedemptionsApiFp)(this.configuration).updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.RedemptionsApi = RedemptionsApi; +/** + * @export + */ +exports.GetAllRedemptionsStateEnum = { + PENDING: 'pending', + APPROVED: 'approved', + COMPLETED: 'completed', + REJECTED: 'rejected' +}; +//# sourceMappingURL=redemptions-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/redemptions-api.js.map b/dist/wallet/api/redemptions-api.js.map new file mode 100644 index 0000000..30f51a5 --- /dev/null +++ b/dist/wallet/api/redemptions-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemptions-api.js","sourceRoot":"","sources":["../../../src/wallet/api/redemptions-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAWtH;;;GAGG;AACI,MAAM,+BAA+B,GAAG,UAAU,aAA6B;IAClF,OAAO;QACH;;;;;;WAMG;QACH,iBAAiB,EAAE,qBAAsG,EAAE,kEAAjG,KAAkC,EAAE,UAAiC,EAAE;YAC7F,MAAM,YAAY,GAAG,oBAAoB,CAAC;YAC1C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC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gB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,iBAAoC,EAAE,OAA+B;QAClF,OAAO,IAAA,wBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5I,CAAC;IAED;;;;;;;;OAQG;IACI,sBAAsB,CAAC,EAAU,EAAE,4BAA0D,EAAE,OAA+B;QACjI,OAAO,IAAA,wBAAgB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,EAAE,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxK,CAAC;CACJ;AAjDD,wCAiDC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/wallet/api/referrals-api.d.ts b/dist/wallet/api/referrals-api.d.ts new file mode 100644 index 0000000..2b9e292 --- /dev/null +++ b/dist/wallet/api/referrals-api.d.ts @@ -0,0 +1,218 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { Referral } from '../model'; +import type { ReferralResponse } from '../model'; +/** + * ReferralsApi - axios parameter creator + * @export + */ +export declare const ReferralsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById: (referralId: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals: (name?: string, options?: RawAxiosRequestConfig) => Promise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral: (referralId: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral: (referralId: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * ReferralsApi - functional programming interface + * @export + */ +export declare const ReferralsApiFp: (configuration?: Configuration) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * ReferralsApi - factory interface + * @export + */ +export declare const ReferralsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * ReferralsApi - interface + * @export + * @interface ReferralsApi + */ +export interface ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * ReferralsApi - object-oriented interface + * @export + * @class ReferralsApi + * @extends {BaseAPI} + */ +export declare class ReferralsApi extends BaseAPI implements ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): Promise>; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=referrals-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/referrals-api.d.ts.map b/dist/wallet/api/referrals-api.d.ts.map new file mode 100644 index 0000000..ed7e424 --- /dev/null +++ b/dist/wallet/api/referrals-api.d.ts.map @@ -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,YAAY,CAAC,IAAI,CAAC,CAAC;CAE7F;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAQ,YAAW,qBAAqB;IACtE;;;;;;;OAOG;IACI,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI1E;;;;;;;OAOG;IACI,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIlE;;;;;;;OAOG;IACI,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIzE;;;;;;;OAOG;IACI,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9E"} \ No newline at end of file diff --git a/dist/wallet/api/referrals-api.js b/dist/wallet/api/referrals-api.js new file mode 100644 index 0000000..a53c809 --- /dev/null +++ b/dist/wallet/api/referrals-api.js @@ -0,0 +1,341 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferralsApi = exports.ReferralsApiFactory = exports.ReferralsApiFp = exports.ReferralsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * ReferralsApi - axios parameter creator + * @export + */ +const ReferralsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById: (referralId_1, ...args_1) => tslib_1.__awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + (0, common_1.assertParamExists)('getReferralById', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals: (name_1, ...args_1) => tslib_1.__awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) { + const localVarPath = `/referrals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral: (referralId_1, ...args_1) => tslib_1.__awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + (0, common_1.assertParamExists)('redeemReferral', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}/redeem` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral: (referralId_1, ...args_1) => tslib_1.__awaiter(this, [referralId_1, ...args_1], void 0, function* (referralId, options = {}) { + // verify required parameter 'referralId' is not null or undefined + (0, common_1.assertParamExists)('validateReferral', 'referralId', referralId); + const localVarPath = `/referrals/{referralId}/validate` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.ReferralsApiAxiosParamCreator = ReferralsApiAxiosParamCreator; +/** + * ReferralsApi - functional programming interface + * @export + */ +const ReferralsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.ReferralsApiAxiosParamCreator)(configuration); + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getReferralById(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReferralsApi.getReferralById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getReferrals(name, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReferralsApi.getReferrals']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.redeemReferral(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReferralsApi.redeemReferral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.validateReferral(referralId, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReferralsApi.validateReferral']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.ReferralsApiFp = ReferralsApiFp; +/** + * ReferralsApi - factory interface + * @export + */ +const ReferralsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.ReferralsApiFp)(configuration); + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId, options) { + return localVarFp.getReferralById(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name, options) { + return localVarFp.getReferrals(name, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId, options) { + return localVarFp.redeemReferral(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId, options) { + return localVarFp.validateReferral(referralId, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.ReferralsApiFactory = ReferralsApiFactory; +/** + * ReferralsApi - object-oriented interface + * @export + * @class ReferralsApi + * @extends {BaseAPI} + */ +class ReferralsApi extends base_1.BaseAPI { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferralById(referralId, options) { + return (0, exports.ReferralsApiFp)(this.configuration).getReferralById(referralId, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + getReferrals(name, options) { + return (0, exports.ReferralsApiFp)(this.configuration).getReferrals(name, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + redeemReferral(referralId, options) { + return (0, exports.ReferralsApiFp)(this.configuration).redeemReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + validateReferral(referralId, options) { + return (0, exports.ReferralsApiFp)(this.configuration).validateReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.ReferralsApi = ReferralsApi; +//# sourceMappingURL=referrals-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/referrals-api.js.map b/dist/wallet/api/referrals-api.js.map new file mode 100644 index 0000000..5698103 --- /dev/null +++ b/dist/wallet/api/referrals-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referrals-api.js","sourceRoot":"","sources":["../../../src/wallet/api/referrals-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAKtH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B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AAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;;;;;OAOG;IACI,cAAc,CAAC,UAAkB,EAAE,OAA+B;QACrE,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxI,CAAC;IAED;;;;;;;OAOG;IACI,gBAAgB,CAAC,UAAkB,EAAE,OAA+B;QACvE,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1I,CAAC;CACJ;AAhDD,oCAgDC"} \ No newline at end of file diff --git a/dist/wallet/api/swap-api.d.ts b/dist/wallet/api/swap-api.d.ts new file mode 100644 index 0000000..9e9ba52 --- /dev/null +++ b/dist/wallet/api/swap-api.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { SwapRequest } from '../model'; +import type { SwapResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export declare const SwapApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins: (swapRequest: SwapRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * SwapApi - functional programming interface + * @export + */ +export declare const SwapApiFp: (configuration?: Configuration) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * SwapApi - factory interface + * @export + */ +export declare const SwapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export declare class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=swap-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/swap-api.d.ts.map b/dist/wallet/api/swap-api.d.ts.map new file mode 100644 index 0000000..ec72bcb --- /dev/null +++ b/dist/wallet/api/swap-api.d.ts.map @@ -0,0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AAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7E"} \ No newline at end of file diff --git a/dist/wallet/api/swap-api.js b/dist/wallet/api/swap-api.js new file mode 100644 index 0000000..6874846 --- /dev/null +++ b/dist/wallet/api/swap-api.js @@ -0,0 +1,135 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapApi = exports.SwapApiFactory = exports.SwapApiFp = exports.SwapApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * SwapApi - axios parameter creator + * @export + */ +const SwapApiAxiosParamCreator = function (configuration) { + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins: (swapRequest_1, ...args_1) => tslib_1.__awaiter(this, [swapRequest_1, ...args_1], void 0, function* (swapRequest, options = {}) { + // verify required parameter 'swapRequest' is not null or undefined + (0, common_1.assertParamExists)('swapCoins', 'swapRequest', swapRequest); + const localVarPath = `/swap`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(swapRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.SwapApiAxiosParamCreator = SwapApiAxiosParamCreator; +/** + * SwapApi - functional programming interface + * @export + */ +const SwapApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.SwapApiAxiosParamCreator)(configuration); + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.swapCoins(swapRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SwapApi.swapCoins']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.SwapApiFp = SwapApiFp; +/** + * SwapApi - factory interface + * @export + */ +const SwapApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.SwapApiFp)(configuration); + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest, options) { + return localVarFp.swapCoins(swapRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.SwapApiFactory = SwapApiFactory; +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +class SwapApi extends base_1.BaseAPI { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + swapCoins(swapRequest, options) { + return (0, exports.SwapApiFp)(this.configuration).swapCoins(swapRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.SwapApi = SwapApi; +//# sourceMappingURL=swap-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/swap-api.js.map b/dist/wallet/api/swap-api.js.map new file mode 100644 index 0000000..3fb576e --- /dev/null +++ b/dist/wallet/api/swap-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-api.js","sourceRoot":"","sources":["../../../src/wallet/api/swap-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAKtH;;;GAGG;AACI,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,SAAS,EAAE,2BAA4F,EAAE,wEAAvF,WAAwB,EAAE,UAAiC,EAAE;YAC3E,mEAAmE;YACnE,IAAA,0BAAiB,EAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAA;YAC1D,MAAM,YAAY,GAAG,OAAO,CAAC;YAC7B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,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ks-api.d.ts b/dist/wallet/api/tasks-api.d.ts new file mode 100644 index 0000000..8154c92 --- /dev/null +++ b/dist/wallet/api/tasks-api.d.ts @@ -0,0 +1,86 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { TaskResponse } from '../model'; +/** + * TasksApi - axios parameter creator + * @export + */ +export declare const TasksApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks: (options?: RawAxiosRequestConfig) => Promise; +}; +/** + * TasksApi - functional programming interface + * @export + */ +export declare const TasksApiFp: (configuration?: Configuration) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * TasksApi - factory interface + * @export + */ +export declare const TasksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * TasksApi - interface + * @export + * @interface TasksApi + */ +export interface TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApiInterface + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +export declare class TasksApi extends BaseAPI implements TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApi + */ + getTasks(options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=tasks-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/tasks-api.d.ts.map b/dist/wallet/api/tasks-api.d.ts.map new file mode 100644 index 0000000..3394bcc --- /dev/null +++ b/dist/wallet/api/tasks-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tasks-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/tasks-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAA6B,aAAa;IAExE;;;;;OAKG;yBACuB,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CA6BlF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,mBAA4B,aAAa;IAGxD;;;;;OAKG;uBACsB,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,YAAY,CAAC,CAAC;CAOzI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGxG;;;;;OAKG;uBACgB,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC;CAI5E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;CAEzE;AAED;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,OAAQ,YAAW,iBAAiB;IAC9D;;;;;;OAMG;IACI,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB;CAGlD"} \ No newline at end of file diff --git a/dist/wallet/api/tasks-api.js b/dist/wallet/api/tasks-api.js new file mode 100644 index 0000000..cf1bba7 --- /dev/null +++ b/dist/wallet/api/tasks-api.js @@ -0,0 +1,127 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TasksApi = exports.TasksApiFactory = exports.TasksApiFp = exports.TasksApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * TasksApi - axios parameter creator + * @export + */ +const TasksApiAxiosParamCreator = function (configuration) { + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/tasks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator; +/** + * TasksApi - functional programming interface + * @export + */ +const TasksApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.TasksApiAxiosParamCreator)(configuration); + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TasksApi.getTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.TasksApiFp = TasksApiFp; +/** + * TasksApi - factory interface + * @export + */ +const TasksApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.TasksApiFp)(configuration); + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options) { + return localVarFp.getTasks(options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.TasksApiFactory = TasksApiFactory; +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +class TasksApi extends base_1.BaseAPI { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApi + */ + getTasks(options) { + return (0, exports.TasksApiFp)(this.configuration).getTasks(options).then((request) => request(this.axios, this.basePath)); + } +} +exports.TasksApi = TasksApi; +//# sourceMappingURL=tasks-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/tasks-api.js.map b/dist/wallet/api/tasks-api.js.map new file mode 100644 index 0000000..aeb0b35 --- /dev/null +++ b/dist/wallet/api/tasks-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tasks-api.js","sourceRoot":"","sources":["../../../src/wallet/api/tasks-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAGtH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;WAKG;QACH,QAAQ,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YAChD,MAAM,YAAY,GAAG,QAAQ,CAAC;YAC9B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,qCAAqC;YACrC,sCAAsC;YACtC,MAAM,IAAA,8BAAqB,EAAC,uBAAuB,EAAE,aAAa,CAAC,CAAA;YAIn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E,KAAqB;IAC5G,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAA;IAC5C,OAAO;QACH;;;;;WAKG;QACH,QAAQ,CAAC,OAA+B;YACpC,OAAO,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpF,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B;AAmBF;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,cAAO;IACjC;;;;;;OAMG;IACI,QAAQ,CAAC,OAA+B;QAC3C,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClH,CAAC;CACJ;AAXD,4BAWC"} \ No newline at end of file diff --git a/dist/wallet/api/transactions-api.d.ts b/dist/wallet/api/transactions-api.d.ts new file mode 100644 index 0000000..b574f76 --- /dev/null +++ b/dist/wallet/api/transactions-api.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { TransactionResponse } from '../model'; +/** + * TransactionsApi - axios parameter creator + * @export + */ +export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions: (cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * TransactionsApi - functional programming interface + * @export + */ +export declare const TransactionsApiFp: (configuration?: Configuration) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * TransactionsApi - factory interface + * @export + */ +export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * TransactionsApi - interface + * @export + * @interface TransactionsApi + */ +export interface TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApiInterface + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * TransactionsApi - object-oriented interface + * @export + * @class TransactionsApi + * @extends {BaseAPI} + */ +export declare class TransactionsApi extends BaseAPI implements TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApi + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=transactions-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/transactions-api.d.ts.map b/dist/wallet/api/transactions-api.d.ts.map new file mode 100644 index 0000000..3f24afd --- /dev/null +++ b/dist/wallet/api/transactions-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transactions-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/transactions-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAShF,OAAO,EAAiC,KAAK,WAAW,EAAE,OAAO,EAAqC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,gCAAgC,mBAA6B,aAAa;IAE/E;;;;;;;OAOG;mCACkC,MAAM,UAAU,MAAM,YAAW,qBAAqB,KAAQ,OAAO,CAAC,WAAW,CAAC;CAqC9H,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mBAA4B,aAAa;IAG/D;;;;;;;OAOG;iCACgC,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAO5L,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAG/G;;;;;;;OAOG;iCAC0B,MAAM,UAAU,MAAM,YAAY,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC;CAI/H,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;OAQG;IACH,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;CAE5H;AAED;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,OAAQ,YAAW,wBAAwB;IAC5E;;;;;;;;OAQG;IACI,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG9F"} \ No newline at end of file diff --git a/dist/wallet/api/transactions-api.js b/dist/wallet/api/transactions-api.js new file mode 100644 index 0000000..d32b263 --- /dev/null +++ b/dist/wallet/api/transactions-api.js @@ -0,0 +1,141 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * TransactionsApi - axios parameter creator + * @export + */ +const TransactionsApiAxiosParamCreator = function (configuration) { + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions: (cursor_1, limit_1, ...args_1) => tslib_1.__awaiter(this, [cursor_1, limit_1, ...args_1], void 0, function* (cursor, limit, options = {}) { + const localVarPath = `/transactions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.TransactionsApiAxiosParamCreator = TransactionsApiAxiosParamCreator; +/** + * TransactionsApi - functional programming interface + * @export + */ +const TransactionsApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.TransactionsApiAxiosParamCreator)(configuration); + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor, limit, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserTransactions(cursor, limit, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TransactionsApi.getUserTransactions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.TransactionsApiFp = TransactionsApiFp; +/** + * TransactionsApi - factory interface + * @export + */ +const TransactionsApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.TransactionsApiFp)(configuration); + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor, limit, options) { + return localVarFp.getUserTransactions(cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.TransactionsApiFactory = TransactionsApiFactory; +/** + * TransactionsApi - object-oriented interface + * @export + * @class TransactionsApi + * @extends {BaseAPI} + */ +class TransactionsApi extends base_1.BaseAPI { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApi + */ + getUserTransactions(cursor, limit, options) { + return (0, exports.TransactionsApiFp)(this.configuration).getUserTransactions(cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.TransactionsApi = TransactionsApi; +//# sourceMappingURL=transactions-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/transactions-api.js.map b/dist/wallet/api/transactions-api.js.map new file mode 100644 index 0000000..b797da7 --- /dev/null +++ b/dist/wallet/api/transactions-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transactions-api.js","sourceRoot":"","sources":["../../../src/wallet/api/transactions-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AAC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OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC9G,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,sBAAsB,0BAejC;AAqBF;;;;;GAKG;AACH,MAAa,eAAgB,SAAQ,cAAO;IACxC;;;;;;;;OAQG;IACI,mBAAmB,CAAC,MAAe,EAAE,KAAc,EAAE,OAA+B;QACvF,OAAO,IAAA,yBAAiB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ;AAbD,0CAaC"} \ No newline at end of file diff --git a/dist/wallet/api/user-api.d.ts b/dist/wallet/api/user-api.d.ts new file mode 100644 index 0000000..6fd0cf0 --- /dev/null +++ b/dist/wallet/api/user-api.d.ts @@ -0,0 +1,390 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { CreateChildUserRequest } from '../model'; +import type { EmailOtpSubmitRequest } from '../model'; +import type { KycConfirmRequest } from '../model'; +import type { KycRequest } from '../model'; +import type { KycResponse } from '../model'; +import type { PhoneOtpSubmitRequest } from '../model'; +import type { ProfileResponse } from '../model'; +import type { SimpleResponse } from '../model'; +import type { UpdateEmailRequest } from '../model'; +import type { UpdatePhoneRequest } from '../model'; +import type { User } from '../model'; +/** + * UserApi - axios parameter creator + * @export + */ +export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc: (kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber: (phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser: (createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile: (options?: RawAxiosRequestConfig) => Promise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp: (emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc: (kycRequest: KycRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber: (updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig) => Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress: (updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * UserApi - functional programming interface + * @export + */ +export declare const UserApiFp: (configuration?: Configuration) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * UserApi - factory interface + * @export + */ +export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * UserApi - interface + * @export + * @interface UserApi + */ +export interface UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export declare class UserApi extends BaseAPI implements UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + getUserProfile(options?: RawAxiosRequestConfig): Promise>; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): Promise>; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=user-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/user-api.d.ts.map b/dist/wallet/api/user-api.d.ts.map new file mode 100644 index 0000000..a0d4c43 --- /dev/null +++ b/dist/wallet/api/user-api.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-api.d.ts","sourceRoot":"","sources":["../../../src/wallet/api/user-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KA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,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItG;;;;;;OAMG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAIrD;;;;;;;OAOG;IACI,0BAA0B,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAI/G;;;;;;;OAOG;IACI,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIxE;;;;;;;OAOG;IACI,iBAAiB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIhG;;;;;;;OAOG;IACI,sBAAsB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGxG"} \ No newline at end of file diff --git a/dist/wallet/api/user-api.js b/dist/wallet/api/user-api.js new file mode 100644 index 0000000..8e288b2 --- /dev/null +++ b/dist/wallet/api/user-api.js @@ -0,0 +1,617 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * UserApi - axios parameter creator + * @export + */ +const UserApiAxiosParamCreator = function (configuration) { + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc: (kycConfirmRequest_1, ...args_1) => tslib_1.__awaiter(this, [kycConfirmRequest_1, ...args_1], void 0, function* (kycConfirmRequest, options = {}) { + // verify required parameter 'kycConfirmRequest' is not null or undefined + (0, common_1.assertParamExists)('confirmKyc', 'kycConfirmRequest', kycConfirmRequest); + const localVarPath = `/users/kyc/confirm`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(kycConfirmRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber: (phoneOtpSubmitRequest_1, ...args_1) => tslib_1.__awaiter(this, [phoneOtpSubmitRequest_1, ...args_1], void 0, function* (phoneOtpSubmitRequest, options = {}) { + // verify required parameter 'phoneOtpSubmitRequest' is not null or undefined + (0, common_1.assertParamExists)('confirmPhoneNumber', 'phoneOtpSubmitRequest', phoneOtpSubmitRequest); + const localVarPath = `/users/phone/confirm`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(phoneOtpSubmitRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser: (createChildUserRequest_1, ...args_1) => tslib_1.__awaiter(this, [createChildUserRequest_1, ...args_1], void 0, function* (createChildUserRequest, options = {}) { + // verify required parameter 'createChildUserRequest' is not null or undefined + (0, common_1.assertParamExists)('createChildUser', 'createChildUserRequest', createChildUserRequest); + const localVarPath = `/users/children`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChildUserRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/profile`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp: (emailOtpSubmitRequest_1, ...args_1) => tslib_1.__awaiter(this, [emailOtpSubmitRequest_1, ...args_1], void 0, function* (emailOtpSubmitRequest, options = {}) { + // verify required parameter 'emailOtpSubmitRequest' is not null or undefined + (0, common_1.assertParamExists)('submitEmailConfirmationOtp', 'emailOtpSubmitRequest', emailOtpSubmitRequest); + const localVarPath = `/users/email/confirm`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailOtpSubmitRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc: (kycRequest_1, ...args_1) => tslib_1.__awaiter(this, [kycRequest_1, ...args_1], void 0, function* (kycRequest, options = {}) { + // verify required parameter 'kycRequest' is not null or undefined + (0, common_1.assertParamExists)('submitKyc', 'kycRequest', kycRequest); + const localVarPath = `/users/kyc`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(kycRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber: (updatePhoneRequest_1, ...args_1) => tslib_1.__awaiter(this, [updatePhoneRequest_1, ...args_1], void 0, function* (updatePhoneRequest, options = {}) { + // verify required parameter 'updatePhoneRequest' is not null or undefined + (0, common_1.assertParamExists)('verifyPhoneNumber', 'updatePhoneRequest', updatePhoneRequest); + const localVarPath = `/users/phone`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePhoneRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress: (updateEmailRequest_1, ...args_1) => tslib_1.__awaiter(this, [updateEmailRequest_1, ...args_1], void 0, function* (updateEmailRequest, options = {}) { + // verify required parameter 'updateEmailRequest' is not null or undefined + (0, common_1.assertParamExists)('verifyUserEmailAddress', 'updateEmailRequest', updateEmailRequest); + const localVarPath = `/users/email`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEmailRequest, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator; +/** + * UserApi - functional programming interface + * @export + */ +const UserApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration); + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmKyc(kycConfirmRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.confirmKyc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPhoneNumber(phoneOtpSubmitRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.confirmPhoneNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.createChildUser(createChildUserRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.createChildUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfile(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.submitEmailConfirmationOtp(emailOtpSubmitRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.submitEmailConfirmationOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.submitKyc(kycRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.submitKyc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyPhoneNumber(updatePhoneRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.verifyPhoneNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyUserEmailAddress(updateEmailRequest, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.verifyUserEmailAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.UserApiFp = UserApiFp; +/** + * UserApi - factory interface + * @export + */ +const UserApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.UserApiFp)(configuration); + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest, options) { + return localVarFp.confirmKyc(kycConfirmRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return localVarFp.confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest, options) { + return localVarFp.createChildUser(createChildUserRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options) { + return localVarFp.getUserProfile(options).then((request) => request(axios, basePath)); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return localVarFp.submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest, options) { + return localVarFp.submitKyc(kycRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return localVarFp.verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return localVarFp.verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.UserApiFactory = UserApiFactory; +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +class UserApi extends base_1.BaseAPI { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmKyc(kycConfirmRequest, options) { + return (0, exports.UserApiFp)(this.configuration).confirmKyc(kycConfirmRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + confirmPhoneNumber(phoneOtpSubmitRequest, options) { + return (0, exports.UserApiFp)(this.configuration).confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + createChildUser(createChildUserRequest, options) { + return (0, exports.UserApiFp)(this.configuration).createChildUser(createChildUserRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + getUserProfile(options) { + return (0, exports.UserApiFp)(this.configuration).getUserProfile(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest, options) { + return (0, exports.UserApiFp)(this.configuration).submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + submitKyc(kycRequest, options) { + return (0, exports.UserApiFp)(this.configuration).submitKyc(kycRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyPhoneNumber(updatePhoneRequest, options) { + return (0, exports.UserApiFp)(this.configuration).verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + verifyUserEmailAddress(updateEmailRequest, options) { + return (0, exports.UserApiFp)(this.configuration).verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.UserApi = UserApi; +//# sourceMappingURL=user-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/user-api.js.map b/dist/wallet/api/user-api.js.map new file mode 100644 index 0000000..e65ce87 --- /dev/null +++ b/dist/wallet/api/user-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-api.js","sourceRoot":"","sources":["../../../src/wallet/api/user-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAyBtH;;;GAGG;AACI,MAAM,wBAAwB,GAAG,UAAU,aAA6B;IAC3E,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,iCAAwG,EAAE,8EAAnG,iBAAoC,EAAE,UAAiC,EAAE;YACxF,yEAAyE;YACzE,IAAA,0BAAiB,EAAC,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,CAAC,CAAA;YACvE,MAAM,YAAY,GAAG,oBAAoB,CAAC;YAC1C,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,MAAM,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,qCAAqC;YACrC,sCAAsC;YACtC,MAAM,IAAA,8BAAqB,EAAC,uBAAuB,EAAE,aAAa,CAAC,CAAA;YAInE,uBAAuB,CAAC,c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;IAED;;;;;;;OAOG;IACI,iBAAiB,CAAC,kBAAsC,EAAE,OAA+B;QAC5F,OAAO,IAAA,iBAAS,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9I,CAAC;IAED;;;;;;;OAOG;IACI,sBAAsB,CAAC,kBAAsC,EAAE,OAA+B;QACjG,OAAO,IAAA,iBAAS,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ;AA/FD,0BA+FC"} \ No newline at end of file diff --git a/dist/wallet/api/withdraw-api.d.ts b/dist/wallet/api/withdraw-api.d.ts new file mode 100644 index 0000000..903af49 --- /dev/null +++ b/dist/wallet/api/withdraw-api.d.ts @@ -0,0 +1,216 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import { type RequestArgs, BaseAPI } from '../base'; +import type { WithdrawRequest } from '../model'; +import type { WithdrawRequestBody } from '../model'; +import type { WithdrawRequestPreview } from '../model'; +import type { WithdrawRequestResponse } from '../model'; +import type { WithdrawResponseBody } from '../model'; +/** + * WithdrawApi - axios parameter creator + * @export + */ +export declare const WithdrawApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests: (options?: RawAxiosRequestConfig) => Promise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus: (id: number, options?: RawAxiosRequestConfig) => Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal: (withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) => Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal: (withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) => Promise; +}; +/** + * WithdrawApi - functional programming interface + * @export + */ +export declare const WithdrawApiFp: (configuration?: Configuration) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; +}; +/** + * WithdrawApi - factory interface + * @export + */ +export declare const WithdrawApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; +}; +/** + * WithdrawApi - interface + * @export + * @interface WithdrawApi + */ +export interface WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; +} +/** + * WithdrawApi - object-oriented interface + * @export + * @class WithdrawApi + * @extends {BaseAPI} + */ +export declare class WithdrawApi extends BaseAPI implements WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): Promise>; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): Promise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise>; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise>; +} +//# sourceMappingURL=withdraw-api.d.ts.map \ No newline at end of file diff --git a/dist/wallet/api/withdraw-api.d.ts.map b/dist/wallet/api/withdraw-api.d.ts.map new file mode 100644 index 0000000..159cae3 --- /dev/null +++ b/dist/wallet/api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OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAEnI;;;;;;;OAOG;IACH,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAEpI;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,OAAQ,YAAW,oBAAoB;IACpE;;;;;;OAMG;IACI,uBAAuB,CAAC,OAAO,CAAC,EAAE,qBAAqB;IAI9D;;;;;;;OAOG;IACI,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAItE;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAIlG;;;;;;;OAOG;IACI,iBAAiB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAGrG"} \ No newline at end of file diff --git a/dist/wallet/api/withdraw-api.js b/dist/wallet/api/withdraw-api.js new file mode 100644 index 0000000..335efe7 --- /dev/null +++ b/dist/wallet/api/withdraw-api.js @@ -0,0 +1,336 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawApi = exports.WithdrawApiFactory = exports.WithdrawApiFp = exports.WithdrawApiAxiosParamCreator = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +// URLSearchParams not necessarily used +// @ts-ignore +const url_1 = require("url"); +// Some imports not used depending on template conditions +// @ts-ignore +const common_1 = require("../common"); +// @ts-ignore +const base_1 = require("../base"); +/** + * WithdrawApi - axios parameter creator + * @export + */ +const WithdrawApiAxiosParamCreator = function (configuration) { + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests: (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (options = {}) { + const localVarPath = `/withdraws`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus: (id_1, ...args_1) => tslib_1.__awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) { + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getWithdrawalStatus', 'id', id); + const localVarPath = `/withdraws/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal: (withdrawRequestBody_1, ...args_1) => tslib_1.__awaiter(this, [withdrawRequestBody_1, ...args_1], void 0, function* (withdrawRequestBody, options = {}) { + // verify required parameter 'withdrawRequestBody' is not null or undefined + (0, common_1.assertParamExists)('previewWithdrawal', 'withdrawRequestBody', withdrawRequestBody); + const localVarPath = `/withdraws/preview`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(withdrawRequestBody, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal: (withdrawRequestBody_1, ...args_1) => tslib_1.__awaiter(this, [withdrawRequestBody_1, ...args_1], void 0, function* (withdrawRequestBody, options = {}) { + // verify required parameter 'withdrawRequestBody' is not null or undefined + (0, common_1.assertParamExists)('requestWithdrawal', 'withdrawRequestBody', withdrawRequestBody); + const localVarPath = `/withdraws/request`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); + const localVarHeaderParameter = {}; + const localVarQueryParameter = {}; + // authentication bearerAuth required + // http bearer authentication required + yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(withdrawRequestBody, localVarRequestOptions, configuration); + return { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }; + }), + }; +}; +exports.WithdrawApiAxiosParamCreator = WithdrawApiAxiosParamCreator; +/** + * WithdrawApi - functional programming interface + * @export + */ +const WithdrawApiFp = function (configuration) { + const localVarAxiosParamCreator = (0, exports.WithdrawApiAxiosParamCreator)(configuration); + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserWithdrawRequests(options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WithdrawApi.getUserWithdrawRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.getWithdrawalStatus(id, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WithdrawApi.getWithdrawalStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.previewWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WithdrawApi.previewWithdrawal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody, options) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const localVarAxiosArgs = yield localVarAxiosParamCreator.requestWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; + const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WithdrawApi.requestWithdrawal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; + return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }); + }, + }; +}; +exports.WithdrawApiFp = WithdrawApiFp; +/** + * WithdrawApi - factory interface + * @export + */ +const WithdrawApiFactory = function (configuration, basePath, axios) { + const localVarFp = (0, exports.WithdrawApiFp)(configuration); + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options) { + return localVarFp.getUserWithdrawRequests(options).then((request) => request(axios, basePath)); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id, options) { + return localVarFp.getWithdrawalStatus(id, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody, options) { + return localVarFp.previewWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody, options) { + return localVarFp.requestWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + }; +}; +exports.WithdrawApiFactory = WithdrawApiFactory; +/** + * WithdrawApi - object-oriented interface + * @export + * @class WithdrawApi + * @extends {BaseAPI} + */ +class WithdrawApi extends base_1.BaseAPI { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getUserWithdrawRequests(options) { + return (0, exports.WithdrawApiFp)(this.configuration).getUserWithdrawRequests(options).then((request) => request(this.axios, this.basePath)); + } + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + getWithdrawalStatus(id, options) { + return (0, exports.WithdrawApiFp)(this.configuration).getWithdrawalStatus(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + previewWithdrawal(withdrawRequestBody, options) { + return (0, exports.WithdrawApiFp)(this.configuration).previewWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + requestWithdrawal(withdrawRequestBody, options) { + return (0, exports.WithdrawApiFp)(this.configuration).requestWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } +} +exports.WithdrawApi = WithdrawApi; +//# sourceMappingURL=withdraw-api.js.map \ No newline at end of file diff --git a/dist/wallet/api/withdraw-api.js.map b/dist/wallet/api/withdraw-api.js.map new file mode 100644 index 0000000..041e94d --- /dev/null +++ b/dist/wallet/api/withdraw-api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-api.js","sourceRoot":"","sources":["../../../src/wallet/api/withdraw-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAKH,0DAAgC;AAChC,uCAAuC;AACvC,aAAa;AACb,6BAA2C;AAC3C,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAatH;;;GAGG;AACI,MAAM,4BAA4B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACH;;;;;WAKG;QACH,uBAAuB,EAAE,YAAkE,EAAE,yDAA7D,UAAiC,EAAE;YAC/D,MAAM,YAAY,GAAG,YAAY,CAAC;YAClC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,SAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,iCAAK,MAAM,EAAE,KAAK,IAAK,WAAW,GAAK,OAAO,CAAC,CAAC;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAC;YAC1C,MAAM,sBAAsB,GAAG,EAAS,CAAC;YAEzC,qCAAqC;YACrC,sCAAsC;YACtC,MAAM,IAAA,8BAAqB,EAAC,uBAAuB,EAAE,aAAa,CAAC,CAAA;YAInE,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,IAAI,sBAAsB,GAAG,W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I,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnJ,CAAC;CACJ;AA/CD,kCA+CC"} \ No newline at end of file diff --git a/dist/wallet/base.d.ts b/dist/wallet/base.d.ts new file mode 100644 index 0000000..536620b --- /dev/null +++ b/dist/wallet/base.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from './configuration'; +import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; +export declare const BASE_PATH: string; +/** + * + * @export + */ +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} +/** + * + * @export + * @class BaseAPI + */ +export declare class BaseAPI { + protected basePath: string; + protected axios: AxiosInstance; + protected configuration: Configuration | undefined; + constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); +} +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export declare class RequiredError extends Error { + field: string; + constructor(field: string, msg?: string); +} +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} +/** + * + * @export + */ +export declare const operationServerMap: ServerMap; +export {}; +//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/dist/wallet/base.d.ts.map b/dist/wallet/base.d.ts.map new file mode 100644 index 0000000..8d4dc5d --- /dev/null +++ b/dist/wallet/base.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/wallet/base.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,KAAK,EAAgB,aAAa,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAGhF,eAAO,MAAM,SAAS,QAA+C,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAG2B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAAc,SAAS,CAAC,KAAK,EAAE,aAAa;IAFjH,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;gBAEvC,aAAa,CAAC,EAAE,aAAa,EAAY,QAAQ,GAAE,MAAkB,EAAY,KAAK,GAAE,aAA2B;CAMlI;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACjB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAIjD;AAED,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;CACP;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAChC,CAAA"} \ No newline at end of file diff --git a/dist/wallet/base.js b/dist/wallet/base.js new file mode 100644 index 0000000..45d02f4 --- /dev/null +++ b/dist/wallet/base.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; +const tslib_1 = require("tslib"); +const axios_1 = tslib_1.__importDefault(require("axios")); +exports.BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); +/** + * + * @export + */ +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +class BaseAPI { + constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) { + var _a; + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath; + } + } +} +exports.BaseAPI = BaseAPI; +; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +class RequiredError extends Error { + constructor(field, msg) { + super(msg); + this.field = field; + this.name = "RequiredError"; + } +} +exports.RequiredError = RequiredError; +/** + * + * @export + */ +exports.operationServerMap = {}; +//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/wallet/base.js.map b/dist/wallet/base.js.map new file mode 100644 index 0000000..2e96345 --- /dev/null +++ b/dist/wallet/base.js.map @@ -0,0 +1 @@ +{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/wallet/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAOH,0DAAgC;AAEnB,QAAA,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEtE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,MAAA,aAAa,CAAC,QAAQ,mCAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IACpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AALD,sCAKC;AASD;;;GAGG;AACU,QAAA,kBAAkB,GAAc,EAC5C,CAAA"} \ No newline at end of file diff --git a/dist/wallet/common.d.ts b/dist/wallet/common.d.ts new file mode 100644 index 0000000..b06941b --- /dev/null +++ b/dist/wallet/common.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { URL } from 'url'; +/** + * + * @export + */ +export declare const DUMMY_BASE_URL = "https://example.com"; +/** + * + * @throws {RequiredError} + * @export + */ +export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; +/** + * + * @export + */ +export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void; +/** + * + * @export + */ +export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise; +/** + * + * @export + */ +export declare const setSearchParams: (url: URL, ...objects: any[]) => void; +/** + * + * @export + */ +export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; +/** + * + * @export + */ +export declare const toPathString: (url: URL) => string; +/** + * + * @export + */ +export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/dist/wallet/common.d.ts.map b/dist/wallet/common.d.ts.map new file mode 100644 index 0000000..4494d49 --- /dev/null +++ b/dist/wallet/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/wallet/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,GAAG,EAAmB,MAAM,KAAK,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,kBAAkB,aAAa,kBAOhH,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,kBAAkB,aAAa,SAIvF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,kBAAkB,aAAa,kBAO9F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,kBAAkB,aAAa,kBAOzH,CAAA;AAwBD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAInE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,kBAAkB,aAAa,QAQ5G,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,kBAAkB,aAAa,MACvI,CAAC,YAAY,CAAC,kCAA4B,aAAa,aAA0B,MAAM,eAIlG,CAAA"} \ No newline at end of file diff --git a/dist/wallet/common.js b/dist/wallet/common.js new file mode 100644 index 0000000..2399e23 --- /dev/null +++ b/dist/wallet/common.js @@ -0,0 +1,155 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0; +const tslib_1 = require("tslib"); +const base_1 = require("./base"); +const url_1 = require("url"); +/** + * + * @export + */ +exports.DUMMY_BASE_URL = 'https://example.com'; +/** + * + * @throws {RequiredError} + * @export + */ +const assertParamExists = function (functionName, paramName, paramValue) { + if (paramValue === null || paramValue === undefined) { + throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +}; +exports.assertParamExists = assertParamExists; +/** + * + * @export + */ +const setApiKeyToObject = function (object, keyParamName, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? yield configuration.apiKey(keyParamName) + : yield configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } + }); +}; +exports.setApiKeyToObject = setApiKeyToObject; +/** + * + * @export + */ +const setBasicAuthToObject = function (object, configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +}; +exports.setBasicAuthToObject = setBasicAuthToObject; +/** + * + * @export + */ +const setBearerAuthToObject = function (object, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken() + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } + }); +}; +exports.setBearerAuthToObject = setBearerAuthToObject; +/** + * + * @export + */ +const setOAuthToObject = function (object, name, scopes, configuration) { + return tslib_1.__awaiter(this, void 0, void 0, function* () { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? yield configuration.accessToken(name, scopes) + : yield configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } + }); +}; +exports.setOAuthToObject = setOAuthToObject; +function setFlattenedQueryParams(urlSearchParams, parameter, key = "") { + if (parameter == null) + return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} +/** + * + * @export + */ +const setSearchParams = function (url, ...objects) { + const searchParams = new url_1.URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; +exports.setSearchParams = setSearchParams; +/** + * + * @export + */ +const serializeDataIfNeeded = function (value, requestOptions, configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +}; +exports.serializeDataIfNeeded = serializeDataIfNeeded; +/** + * + * @export + */ +const toPathString = function (url) { + return url.pathname + url.search + url.hash; +}; +exports.toPathString = toPathString; +/** + * + * @export + */ +const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { + return (axios = globalAxios, basePath = BASE_PATH) => { + var _a; + const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url }); + return axios.request(axiosRequestArgs); + }; +}; +exports.createRequestFunction = createRequestFunction; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/wallet/common.js.map b/dist/wallet/common.js.map new file mode 100644 index 0000000..195ad3e --- /dev/null +++ b/dist/wallet/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/wallet/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAMH,iCAAuC;AACvC,6BAA2C;AAE3C;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,MAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;QAC7G,IAAI,aA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C,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,mCAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,GAAC,CAAC;QAC1I,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA;AALY,QAAA,qBAAqB,yBAKjC"} \ No newline at end of file diff --git a/dist/wallet/configuration.d.ts b/dist/wallet/configuration.d.ts new file mode 100644 index 0000000..27c8cae --- /dev/null +++ b/dist/wallet/configuration.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} +export declare class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + constructor(param?: ConfigurationParameters); + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime: string): boolean; +} +//# sourceMappingURL=configuration.d.ts.map \ No newline at end of file diff --git a/dist/wallet/configuration.d.ts.map b/dist/wallet/configuration.d.ts.map new file mode 100644 index 0000000..b17b45c --- /dev/null +++ b/dist/wallet/configuration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/wallet/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;CAChC;AAED,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAW/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"} \ No newline at end of file diff --git a/dist/wallet/configuration.js b/dist/wallet/configuration.js new file mode 100644 index 0000000..29c183b --- /dev/null +++ b/dist/wallet/configuration.js @@ -0,0 +1,44 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Configuration = void 0; +class Configuration { + constructor(param = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} +exports.Configuration = Configuration; +//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/wallet/configuration.js.map b/dist/wallet/configuration.js.map new file mode 100644 index 0000000..fda5ed3 --- /dev/null +++ b/dist/wallet/configuration.js.map @@ -0,0 +1 @@ +{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/wallet/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,MAAa,aAAa;IA0DtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AAnFD,sCAmFC"} \ No newline at end of file diff --git a/dist/wallet/index.d.ts b/dist/wallet/index.d.ts new file mode 100644 index 0000000..6ad2f4b --- /dev/null +++ b/dist/wallet/index.d.ts @@ -0,0 +1,15 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; +export * from "./model"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/wallet/index.d.ts.map b/dist/wallet/index.d.ts.map new file mode 100644 index 0000000..e14b968 --- /dev/null +++ b/dist/wallet/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/wallet/index.js b/dist/wallet/index.js new file mode 100644 index 0000000..b7b4e3b --- /dev/null +++ b/dist/wallet/index.js @@ -0,0 +1,20 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./api"), exports); +tslib_1.__exportStar(require("./configuration"), exports); +tslib_1.__exportStar(require("./model"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/wallet/index.js.map b/dist/wallet/index.js.map new file mode 100644 index 0000000..1f56144 --- /dev/null +++ b/dist/wallet/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wallet/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,gDAAsB;AACtB,0DAAgC;AAChC,kDAAwB"} \ No newline at end of file diff --git a/dist/wallet/model/admin-redemption-update-request.d.ts b/dist/wallet/model/admin-redemption-update-request.d.ts new file mode 100644 index 0000000..18defbe --- /dev/null +++ b/dist/wallet/model/admin-redemption-update-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AdminRedemptionUpdateRequest + */ +export interface AdminRedemptionUpdateRequest { + /** + * The status of the redemption request + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'status': AdminRedemptionUpdateRequestStatusEnum; + /** + * The Paya tracking code + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'payaTrackingCode'?: string; +} +export declare const AdminRedemptionUpdateRequestStatusEnum: { + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly COMPLETED: "Completed"; +}; +export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; +//# sourceMappingURL=admin-redemption-update-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/admin-redemption-update-request.d.ts.map b/dist/wallet/model/admin-redemption-update-request.d.ts.map new file mode 100644 index 0000000..018bac4 --- /dev/null +++ b/dist/wallet/model/admin-redemption-update-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"admin-redemption-update-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/admin-redemption-update-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,QAAQ,EAAE,sCAAsC,CAAC;IACjD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC;AAEX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/admin-redemption-update-request.js b/dist/wallet/model/admin-redemption-update-request.js new file mode 100644 index 0000000..000abfe --- /dev/null +++ b/dist/wallet/model/admin-redemption-update-request.js @@ -0,0 +1,22 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AdminRedemptionUpdateRequestStatusEnum = void 0; +exports.AdminRedemptionUpdateRequestStatusEnum = { + APPROVED: 'Approved', + REJECTED: 'Rejected', + COMPLETED: 'Completed' +}; +//# sourceMappingURL=admin-redemption-update-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/admin-redemption-update-request.js.map b/dist/wallet/model/admin-redemption-update-request.js.map new file mode 100644 index 0000000..0e18746 --- /dev/null +++ b/dist/wallet/model/admin-redemption-update-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"admin-redemption-update-request.js","sourceRoot":"","sources":["../../../src/wallet/model/admin-redemption-update-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAwBU,QAAA,sCAAsC,GAAG;IAClD,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/auth-telegram-request.d.ts b/dist/wallet/model/auth-telegram-request.d.ts new file mode 100644 index 0000000..f49079c --- /dev/null +++ b/dist/wallet/model/auth-telegram-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AuthTelegramRequest + */ +export interface AuthTelegramRequest { + /** + * Telegram init data + * @type {string} + * @memberof AuthTelegramRequest + */ + 'initdata': string; +} +//# sourceMappingURL=auth-telegram-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/auth-telegram-request.d.ts.map b/dist/wallet/model/auth-telegram-request.d.ts.map new file mode 100644 index 0000000..bb2ff5a --- /dev/null +++ b/dist/wallet/model/auth-telegram-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-telegram-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/auth-telegram-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/wallet/model/auth-telegram-request.js b/dist/wallet/model/auth-telegram-request.js new file mode 100644 index 0000000..2b457a4 --- /dev/null +++ b/dist/wallet/model/auth-telegram-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=auth-telegram-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/auth-telegram-request.js.map b/dist/wallet/model/auth-telegram-request.js.map new file mode 100644 index 0000000..049912d --- /dev/null +++ b/dist/wallet/model/auth-telegram-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"auth-telegram-request.js","sourceRoot":"","sources":["../../../src/wallet/model/auth-telegram-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/balance.d.ts b/dist/wallet/model/balance.d.ts new file mode 100644 index 0000000..23795c2 --- /dev/null +++ b/dist/wallet/model/balance.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +import type { Currency } from './currency'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Currency} + * @memberof Balance + */ + 'locked': Currency; + /** + * + * @type {Coin} + * @memberof Balance + */ + 'coin': Coin; + /** + * + * @type {Currency} + * @memberof Balance + */ + 'balance': Currency; +} +//# sourceMappingURL=balance.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/balance.d.ts.map b/dist/wallet/model/balance.d.ts.map new file mode 100644 index 0000000..d0453e0 --- /dev/null +++ b/dist/wallet/model/balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/wallet/model/balance.js b/dist/wallet/model/balance.js new file mode 100644 index 0000000..914c865 --- /dev/null +++ b/dist/wallet/model/balance.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=balance.js.map \ No newline at end of file diff --git a/dist/wallet/model/balance.js.map b/dist/wallet/model/balance.js.map new file mode 100644 index 0000000..28114b9 --- /dev/null +++ b/dist/wallet/model/balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../src/wallet/model/balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/bank-info.d.ts b/dist/wallet/model/bank-info.d.ts new file mode 100644 index 0000000..886a166 --- /dev/null +++ b/dist/wallet/model/bank-info.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BankInfo + */ +export interface BankInfo { + /** + * Bank name + * @type {string} + * @memberof BankInfo + */ + 'bankName': string; + /** + * Card number + * @type {string} + * @memberof BankInfo + */ + 'cardNumber': string; + /** + * IBAN + * @type {string} + * @memberof BankInfo + */ + 'iban': string; +} +//# sourceMappingURL=bank-info.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/bank-info.d.ts.map b/dist/wallet/model/bank-info.d.ts.map new file mode 100644 index 0000000..2ec625a --- /dev/null +++ b/dist/wallet/model/bank-info.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bank-info.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/bank-info.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/wallet/model/bank-info.js b/dist/wallet/model/bank-info.js new file mode 100644 index 0000000..b313d68 --- /dev/null +++ b/dist/wallet/model/bank-info.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=bank-info.js.map \ No newline at end of file diff --git a/dist/wallet/model/bank-info.js.map b/dist/wallet/model/bank-info.js.map new file mode 100644 index 0000000..f517845 --- /dev/null +++ b/dist/wallet/model/bank-info.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bank-info.js","sourceRoot":"","sources":["../../../src/wallet/model/bank-info.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/bullet-content.d.ts b/dist/wallet/model/bullet-content.d.ts new file mode 100644 index 0000000..2b45636 --- /dev/null +++ b/dist/wallet/model/bullet-content.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BulletContent + */ +export interface BulletContent { + /** + * + * @type {string} + * @memberof BulletContent + */ + 'title': string; + /** + * + * @type {string} + * @memberof BulletContent + */ + 'text': string; + /** + * + * @type {Array} + * @memberof BulletContent + */ + 'bullets': Array; +} +//# sourceMappingURL=bullet-content.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/bullet-content.d.ts.map b/dist/wallet/model/bullet-content.d.ts.map new file mode 100644 index 0000000..24bf359 --- /dev/null +++ b/dist/wallet/model/bullet-content.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bullet-content.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/bullet-content.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/wallet/model/bullet-content.js b/dist/wallet/model/bullet-content.js new file mode 100644 index 0000000..3706abc --- /dev/null +++ b/dist/wallet/model/bullet-content.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=bullet-content.js.map \ No newline at end of file diff --git a/dist/wallet/model/bullet-content.js.map b/dist/wallet/model/bullet-content.js.map new file mode 100644 index 0000000..f6afb10 --- /dev/null +++ b/dist/wallet/model/bullet-content.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bullet-content.js","sourceRoot":"","sources":["../../../src/wallet/model/bullet-content.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/coin-config.d.ts b/dist/wallet/model/coin-config.d.ts new file mode 100644 index 0000000..d67f80f --- /dev/null +++ b/dist/wallet/model/coin-config.d.ts @@ -0,0 +1,47 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CoinConfig + */ +export interface CoinConfig { + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'isTradeable': boolean; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'withdrawFees': { + [key: string]: string | undefined; + }; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'minWithdrawal': { + [key: string]: string | undefined; + }; + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'needsMemo': boolean; +} +//# sourceMappingURL=coin-config.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/coin-config.d.ts.map b/dist/wallet/model/coin-config.d.ts.map new file mode 100644 index 0000000..5705069 --- /dev/null +++ b/dist/wallet/model/coin-config.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-config.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/coin-config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/wallet/model/coin-config.js b/dist/wallet/model/coin-config.js new file mode 100644 index 0000000..8bd8abd --- /dev/null +++ b/dist/wallet/model/coin-config.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=coin-config.js.map \ No newline at end of file diff --git a/dist/wallet/model/coin-config.js.map b/dist/wallet/model/coin-config.js.map new file mode 100644 index 0000000..000885d --- /dev/null +++ b/dist/wallet/model/coin-config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-config.js","sourceRoot":"","sources":["../../../src/wallet/model/coin-config.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/coin-response.d.ts b/dist/wallet/model/coin-response.d.ts new file mode 100644 index 0000000..94b8b2a --- /dev/null +++ b/dist/wallet/model/coin-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +/** + * + * @export + * @interface CoinResponse + */ +export interface CoinResponse { + /** + * + * @type {Array} + * @memberof CoinResponse + */ + 'data': Array; +} +//# sourceMappingURL=coin-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/coin-response.d.ts.map b/dist/wallet/model/coin-response.d.ts.map new file mode 100644 index 0000000..c4389d8 --- /dev/null +++ b/dist/wallet/model/coin-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/coin-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/wallet/model/coin-response.js b/dist/wallet/model/coin-response.js new file mode 100644 index 0000000..daf8290 --- /dev/null +++ b/dist/wallet/model/coin-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=coin-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/coin-response.js.map b/dist/wallet/model/coin-response.js.map new file mode 100644 index 0000000..7d336db --- /dev/null +++ b/dist/wallet/model/coin-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin-response.js","sourceRoot":"","sources":["../../../src/wallet/model/coin-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/coin.d.ts b/dist/wallet/model/coin.d.ts new file mode 100644 index 0000000..93c860b --- /dev/null +++ b/dist/wallet/model/coin.d.ts @@ -0,0 +1,67 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './bullet-content'; +import type { CoinConfig } from './coin-config'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface Coin + */ +export interface Coin { + /** + * + * @type {CoinConfig} + * @memberof Coin + */ + 'config': CoinConfig; + /** + * + * @type {Symbol} + * @memberof Coin + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Coin + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Coin + */ + 'logoUri': string; + /** + * + * @type {Array} + * @memberof Coin + */ + 'depositableNetworks': Array; + /** + * + * @type {Array} + * @memberof Coin + */ + 'withdrawableNetworks': Array; + /** + * + * @type {BulletContent} + * @memberof Coin + */ + 'content': BulletContent; +} +//# sourceMappingURL=coin.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/coin.d.ts.map b/dist/wallet/model/coin.d.ts.map new file mode 100644 index 0000000..f42af7c --- /dev/null +++ b/dist/wallet/model/coin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/coin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,qBAAqB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACtC;;;;OAIG;IACH,sBAAsB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvC;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/wallet/model/coin.js b/dist/wallet/model/coin.js new file mode 100644 index 0000000..7e642f1 --- /dev/null +++ b/dist/wallet/model/coin.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=coin.js.map \ No newline at end of file diff --git a/dist/wallet/model/coin.js.map b/dist/wallet/model/coin.js.map new file mode 100644 index 0000000..7b6997d --- /dev/null +++ b/dist/wallet/model/coin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"coin.js","sourceRoot":"","sources":["../../../src/wallet/model/coin.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/create-child-user-request.d.ts b/dist/wallet/model/create-child-user-request.d.ts new file mode 100644 index 0000000..9d83512 --- /dev/null +++ b/dist/wallet/model/create-child-user-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateChildUserRequest + */ +export interface CreateChildUserRequest { + /** + * the username of the child user + * @type {string} + * @memberof CreateChildUserRequest + */ + 'username': string; +} +//# sourceMappingURL=create-child-user-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/create-child-user-request.d.ts.map b/dist/wallet/model/create-child-user-request.d.ts.map new file mode 100644 index 0000000..fad19d2 --- /dev/null +++ b/dist/wallet/model/create-child-user-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"create-child-user-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/create-child-user-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/wallet/model/create-child-user-request.js b/dist/wallet/model/create-child-user-request.js new file mode 100644 index 0000000..023dde7 --- /dev/null +++ b/dist/wallet/model/create-child-user-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=create-child-user-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/create-child-user-request.js.map b/dist/wallet/model/create-child-user-request.js.map new file mode 100644 index 0000000..1424a77 --- /dev/null +++ b/dist/wallet/model/create-child-user-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"create-child-user-request.js","sourceRoot":"","sources":["../../../src/wallet/model/create-child-user-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/currency.d.ts b/dist/wallet/model/currency.d.ts new file mode 100644 index 0000000..6c9a93b --- /dev/null +++ b/dist/wallet/model/currency.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Currency + */ +export interface Currency { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Currency + */ + 'values'?: { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=currency.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/currency.d.ts.map b/dist/wallet/model/currency.d.ts.map new file mode 100644 index 0000000..cce30cb --- /dev/null +++ b/dist/wallet/model/currency.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/currency.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACrD"} \ No newline at end of file diff --git a/dist/wallet/model/currency.js b/dist/wallet/model/currency.js new file mode 100644 index 0000000..314272e --- /dev/null +++ b/dist/wallet/model/currency.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=currency.js.map \ No newline at end of file diff --git a/dist/wallet/model/currency.js.map b/dist/wallet/model/currency.js.map new file mode 100644 index 0000000..8fbe40d --- /dev/null +++ b/dist/wallet/model/currency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../src/wallet/model/currency.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/deposit-response.d.ts b/dist/wallet/model/deposit-response.d.ts new file mode 100644 index 0000000..f9eb43b --- /dev/null +++ b/dist/wallet/model/deposit-response.d.ts @@ -0,0 +1,38 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Network } from './network'; +/** + * + * @export + * @interface DepositResponse + */ +export interface DepositResponse { + /** + * Deposit address + * @type {string} + * @memberof DepositResponse + */ + 'address': string; + /** + * + * @type {Network} + * @memberof DepositResponse + */ + 'network': Network; + /** + * Coin symbol + * @type {string} + * @memberof DepositResponse + */ + 'symbol': string; +} +//# sourceMappingURL=deposit-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/deposit-response.d.ts.map b/dist/wallet/model/deposit-response.d.ts.map new file mode 100644 index 0000000..62f2a9d --- /dev/null +++ b/dist/wallet/model/deposit-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/deposit-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/wallet/model/deposit-response.js b/dist/wallet/model/deposit-response.js new file mode 100644 index 0000000..e92f1d7 --- /dev/null +++ b/dist/wallet/model/deposit-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=deposit-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/deposit-response.js.map b/dist/wallet/model/deposit-response.js.map new file mode 100644 index 0000000..23ce966 --- /dev/null +++ b/dist/wallet/model/deposit-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deposit-response.js","sourceRoot":"","sources":["../../../src/wallet/model/deposit-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/detailed-loan-to-value-options.d.ts b/dist/wallet/model/detailed-loan-to-value-options.d.ts new file mode 100644 index 0000000..d12b417 --- /dev/null +++ b/dist/wallet/model/detailed-loan-to-value-options.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DetailedLoanToValueOptions + */ +export interface DetailedLoanToValueOptions { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DetailedLoanToValueOptions + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * The loan to value of the vault. + * @type {string} + * @memberof DetailedLoanToValueOptions + */ + 'value': string; +} +//# sourceMappingURL=detailed-loan-to-value-options.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/detailed-loan-to-value-options.d.ts.map b/dist/wallet/model/detailed-loan-to-value-options.d.ts.map new file mode 100644 index 0000000..8b3dfee --- /dev/null +++ b/dist/wallet/model/detailed-loan-to-value-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"detailed-loan-to-value-options.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/detailed-loan-to-value-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/wallet/model/detailed-loan-to-value-options.js b/dist/wallet/model/detailed-loan-to-value-options.js new file mode 100644 index 0000000..5298810 --- /dev/null +++ b/dist/wallet/model/detailed-loan-to-value-options.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=detailed-loan-to-value-options.js.map \ No newline at end of file diff --git a/dist/wallet/model/detailed-loan-to-value-options.js.map b/dist/wallet/model/detailed-loan-to-value-options.js.map new file mode 100644 index 0000000..eef43ff --- /dev/null +++ b/dist/wallet/model/detailed-loan-to-value-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"detailed-loan-to-value-options.js","sourceRoot":"","sources":["../../../src/wallet/model/detailed-loan-to-value-options.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/email-otp-submit-request.d.ts b/dist/wallet/model/email-otp-submit-request.d.ts new file mode 100644 index 0000000..7e5d1b5 --- /dev/null +++ b/dist/wallet/model/email-otp-submit-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface EmailOtpSubmitRequest + */ +export interface EmailOtpSubmitRequest { + /** + * OTP code + * @type {number} + * @memberof EmailOtpSubmitRequest + */ + 'code': number; +} +//# sourceMappingURL=email-otp-submit-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/email-otp-submit-request.d.ts.map b/dist/wallet/model/email-otp-submit-request.d.ts.map new file mode 100644 index 0000000..48cec03 --- /dev/null +++ b/dist/wallet/model/email-otp-submit-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"email-otp-submit-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/email-otp-submit-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/wallet/model/email-otp-submit-request.js b/dist/wallet/model/email-otp-submit-request.js new file mode 100644 index 0000000..1c373c2 --- /dev/null +++ b/dist/wallet/model/email-otp-submit-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=email-otp-submit-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/email-otp-submit-request.js.map b/dist/wallet/model/email-otp-submit-request.js.map new file mode 100644 index 0000000..d6558c9 --- /dev/null +++ b/dist/wallet/model/email-otp-submit-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"email-otp-submit-request.js","sourceRoot":"","sources":["../../../src/wallet/model/email-otp-submit-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/error-detail.d.ts b/dist/wallet/model/error-detail.d.ts new file mode 100644 index 0000000..897b160 --- /dev/null +++ b/dist/wallet/model/error-detail.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorDetail + */ +export interface ErrorDetail { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorDetail + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorDetail + */ + 'solutions': Array; +} +//# sourceMappingURL=error-detail.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/error-detail.d.ts.map b/dist/wallet/model/error-detail.d.ts.map new file mode 100644 index 0000000..7c20566 --- /dev/null +++ b/dist/wallet/model/error-detail.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"error-detail.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/error-detail.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/wallet/model/error-detail.js b/dist/wallet/model/error-detail.js new file mode 100644 index 0000000..d516055 --- /dev/null +++ b/dist/wallet/model/error-detail.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=error-detail.js.map \ No newline at end of file diff --git a/dist/wallet/model/error-detail.js.map b/dist/wallet/model/error-detail.js.map new file mode 100644 index 0000000..84a4816 --- /dev/null +++ b/dist/wallet/model/error-detail.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error-detail.js","sourceRoot":"","sources":["../../../src/wallet/model/error-detail.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/external-transaction.d.ts b/dist/wallet/model/external-transaction.d.ts new file mode 100644 index 0000000..e8577b5 --- /dev/null +++ b/dist/wallet/model/external-transaction.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +import type { TransactionStatus } from './transaction-status'; +import type { TransactionType } from './transaction-type'; +/** + * + * @export + * @interface ExternalTransaction + */ +export interface ExternalTransaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof ExternalTransaction + */ + 'Id': number; + /** + * + * @type {Timestamp} + * @memberof ExternalTransaction + */ + 'Time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof ExternalTransaction + */ + 'Type': TransactionType; + /** + * The hash of the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Hash': string; + /** + * The address from which the transaction originated + * @type {string} + * @memberof ExternalTransaction + */ + 'From': string; + /** + * The address to which the transaction is sent + * @type {string} + * @memberof ExternalTransaction + */ + 'To': string; + /** + * A comment associated with the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Comment': string | null; + /** + * + * @type {Currency} + * @memberof ExternalTransaction + */ + 'Amount': Currency; + /** + * + * @type {Symbol} + * @memberof ExternalTransaction + */ + 'Symbol': Symbol; + /** + * + * @type {Network} + * @memberof ExternalTransaction + */ + 'Network': Network; + /** + * + * @type {TransactionStatus} + * @memberof ExternalTransaction + */ + 'Status': TransactionStatus; +} +//# sourceMappingURL=external-transaction.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/external-transaction.d.ts.map b/dist/wallet/model/external-transaction.d.ts.map new file mode 100644 index 0000000..763f86d --- /dev/null +++ b/dist/wallet/model/external-transaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"external-transaction.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/external-transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/wallet/model/external-transaction.js b/dist/wallet/model/external-transaction.js new file mode 100644 index 0000000..b5b0523 --- /dev/null +++ b/dist/wallet/model/external-transaction.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=external-transaction.js.map \ No newline at end of file diff --git a/dist/wallet/model/external-transaction.js.map b/dist/wallet/model/external-transaction.js.map new file mode 100644 index 0000000..1913718 --- /dev/null +++ b/dist/wallet/model/external-transaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"external-transaction.js","sourceRoot":"","sources":["../../../src/wallet/model/external-transaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/friend-points-response.d.ts b/dist/wallet/model/friend-points-response.d.ts new file mode 100644 index 0000000..cd73876 --- /dev/null +++ b/dist/wallet/model/friend-points-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FriendPoints } from './friend-points'; +/** + * + * @export + * @interface FriendPointsResponse + */ +export interface FriendPointsResponse { + /** + * + * @type {Array} + * @memberof FriendPointsResponse + */ + 'data': Array; +} +//# sourceMappingURL=friend-points-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/friend-points-response.d.ts.map b/dist/wallet/model/friend-points-response.d.ts.map new file mode 100644 index 0000000..0b5a6f1 --- /dev/null +++ b/dist/wallet/model/friend-points-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/friend-points-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/wallet/model/friend-points-response.js b/dist/wallet/model/friend-points-response.js new file mode 100644 index 0000000..5495359 --- /dev/null +++ b/dist/wallet/model/friend-points-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=friend-points-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/friend-points-response.js.map b/dist/wallet/model/friend-points-response.js.map new file mode 100644 index 0000000..bf3ff8a --- /dev/null +++ b/dist/wallet/model/friend-points-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points-response.js","sourceRoot":"","sources":["../../../src/wallet/model/friend-points-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/friend-points.d.ts b/dist/wallet/model/friend-points.d.ts new file mode 100644 index 0000000..d35eaea --- /dev/null +++ b/dist/wallet/model/friend-points.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FriendPoints + */ +export interface FriendPoints { + /** + * the first name of the friend + * @type {string} + * @memberof FriendPoints + */ + 'firstName': string; + /** + * the points of the friend + * @type {number} + * @memberof FriendPoints + */ + 'points': number; +} +//# sourceMappingURL=friend-points.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/friend-points.d.ts.map b/dist/wallet/model/friend-points.d.ts.map new file mode 100644 index 0000000..0d6f745 --- /dev/null +++ b/dist/wallet/model/friend-points.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/friend-points.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/wallet/model/friend-points.js b/dist/wallet/model/friend-points.js new file mode 100644 index 0000000..8039b71 --- /dev/null +++ b/dist/wallet/model/friend-points.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=friend-points.js.map \ No newline at end of file diff --git a/dist/wallet/model/friend-points.js.map b/dist/wallet/model/friend-points.js.map new file mode 100644 index 0000000..40b5f37 --- /dev/null +++ b/dist/wallet/model/friend-points.js.map @@ -0,0 +1 @@ +{"version":3,"file":"friend-points.js","sourceRoot":"","sources":["../../../src/wallet/model/friend-points.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/health-status.d.ts b/dist/wallet/model/health-status.d.ts new file mode 100644 index 0000000..9dd60d2 --- /dev/null +++ b/dist/wallet/model/health-status.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HealthStatus + */ +export interface HealthStatus { + /** + * + * @type {string} + * @memberof HealthStatus + */ + 'status'?: string; +} +//# sourceMappingURL=health-status.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/health-status.d.ts.map b/dist/wallet/model/health-status.d.ts.map new file mode 100644 index 0000000..93d3c19 --- /dev/null +++ b/dist/wallet/model/health-status.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"health-status.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/health-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/wallet/model/health-status.js b/dist/wallet/model/health-status.js new file mode 100644 index 0000000..64ff850 --- /dev/null +++ b/dist/wallet/model/health-status.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=health-status.js.map \ No newline at end of file diff --git a/dist/wallet/model/health-status.js.map b/dist/wallet/model/health-status.js.map new file mode 100644 index 0000000..e00a143 --- /dev/null +++ b/dist/wallet/model/health-status.js.map @@ -0,0 +1 @@ +{"version":3,"file":"health-status.js","sourceRoot":"","sources":["../../../src/wallet/model/health-status.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/index.d.ts b/dist/wallet/model/index.d.ts new file mode 100644 index 0000000..b11c02c --- /dev/null +++ b/dist/wallet/model/index.d.ts @@ -0,0 +1,65 @@ +export * from './admin-redemption-update-request'; +export * from './auth-telegram-request'; +export * from './balance'; +export * from './bank-info'; +export * from './bullet-content'; +export * from './coin'; +export * from './coin-config'; +export * from './coin-response'; +export * from './create-child-user-request'; +export * from './currency'; +export * from './deposit-response'; +export * from './detailed-loan-to-value-options'; +export * from './email-otp-submit-request'; +export * from './error-detail'; +export * from './external-transaction'; +export * from './friend-points'; +export * from './friend-points-response'; +export * from './health-status'; +export * from './jwt-response'; +export * from './kyc-confirm-request'; +export * from './kyc-request'; +export * from './kyc-response'; +export * from './loan-create-request'; +export * from './loan-plan'; +export * from './loan-plan-response'; +export * from './loan-to-value-options'; +export * from './loans-response'; +export * from './loans-response-list'; +export * from './login-request'; +export * from './model-error'; +export * from './network'; +export * from './payment'; +export * from './payment-request'; +export * from './phone-otp-submit-request'; +export * from './profile-response'; +export * from './redemption'; +export * from './redemption-request'; +export * from './redemption-response'; +export * from './referral'; +export * from './referral-response'; +export * from './repay-loan-request'; +export * from './sign-up-request'; +export * from './simple-response'; +export * from './swap-request'; +export * from './swap-response'; +export * from './symbol'; +export * from './task'; +export * from './task-response'; +export * from './telegram-profile'; +export * from './timestamp'; +export * from './transaction'; +export * from './transaction-response'; +export * from './transaction-status'; +export * from './transaction-type'; +export * from './update-email-request'; +export * from './update-phone-request'; +export * from './user'; +export * from './user-error'; +export * from './wallet-balance'; +export * from './withdraw-request'; +export * from './withdraw-request-body'; +export * from './withdraw-request-preview'; +export * from './withdraw-request-response'; +export * from './withdraw-response-body'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/index.d.ts.map b/dist/wallet/model/index.d.ts.map new file mode 100644 index 0000000..c69610f --- /dev/null +++ b/dist/wallet/model/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,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B,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/index.js b/dist/wallet/model/index.js new file mode 100644 index 0000000..9834e75 --- /dev/null +++ b/dist/wallet/model/index.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./admin-redemption-update-request"), exports); +tslib_1.__exportStar(require("./auth-telegram-request"), exports); +tslib_1.__exportStar(require("./balance"), exports); +tslib_1.__exportStar(require("./bank-info"), exports); +tslib_1.__exportStar(require("./bullet-content"), exports); +tslib_1.__exportStar(require("./coin"), exports); +tslib_1.__exportStar(require("./coin-config"), exports); +tslib_1.__exportStar(require("./coin-response"), exports); +tslib_1.__exportStar(require("./create-child-user-request"), exports); +tslib_1.__exportStar(require("./currency"), exports); +tslib_1.__exportStar(require("./deposit-response"), exports); +tslib_1.__exportStar(require("./detailed-loan-to-value-options"), exports); +tslib_1.__exportStar(require("./email-otp-submit-request"), exports); +tslib_1.__exportStar(require("./error-detail"), exports); +tslib_1.__exportStar(require("./external-transaction"), exports); +tslib_1.__exportStar(require("./friend-points"), exports); +tslib_1.__exportStar(require("./friend-points-response"), exports); +tslib_1.__exportStar(require("./health-status"), exports); +tslib_1.__exportStar(require("./jwt-response"), exports); +tslib_1.__exportStar(require("./kyc-confirm-request"), exports); +tslib_1.__exportStar(require("./kyc-request"), exports); +tslib_1.__exportStar(require("./kyc-response"), exports); +tslib_1.__exportStar(require("./loan-create-request"), exports); +tslib_1.__exportStar(require("./loan-plan"), exports); +tslib_1.__exportStar(require("./loan-plan-response"), exports); +tslib_1.__exportStar(require("./loan-to-value-options"), exports); +tslib_1.__exportStar(require("./loans-response"), exports); +tslib_1.__exportStar(require("./loans-response-list"), exports); +tslib_1.__exportStar(require("./login-request"), exports); +tslib_1.__exportStar(require("./model-error"), exports); +tslib_1.__exportStar(require("./network"), exports); +tslib_1.__exportStar(require("./payment"), exports); +tslib_1.__exportStar(require("./payment-request"), exports); +tslib_1.__exportStar(require("./phone-otp-submit-request"), exports); +tslib_1.__exportStar(require("./profile-response"), exports); +tslib_1.__exportStar(require("./redemption"), exports); +tslib_1.__exportStar(require("./redemption-request"), exports); +tslib_1.__exportStar(require("./redemption-response"), exports); +tslib_1.__exportStar(require("./referral"), exports); +tslib_1.__exportStar(require("./referral-response"), exports); +tslib_1.__exportStar(require("./repay-loan-request"), exports); +tslib_1.__exportStar(require("./sign-up-request"), exports); +tslib_1.__exportStar(require("./simple-response"), exports); +tslib_1.__exportStar(require("./swap-request"), exports); +tslib_1.__exportStar(require("./swap-response"), exports); +tslib_1.__exportStar(require("./symbol"), exports); +tslib_1.__exportStar(require("./task"), exports); +tslib_1.__exportStar(require("./task-response"), exports); +tslib_1.__exportStar(require("./telegram-profile"), exports); +tslib_1.__exportStar(require("./timestamp"), exports); +tslib_1.__exportStar(require("./transaction"), exports); +tslib_1.__exportStar(require("./transaction-response"), exports); +tslib_1.__exportStar(require("./transaction-status"), exports); +tslib_1.__exportStar(require("./transaction-type"), exports); +tslib_1.__exportStar(require("./update-email-request"), exports); +tslib_1.__exportStar(require("./update-phone-request"), exports); +tslib_1.__exportStar(require("./user"), exports); +tslib_1.__exportStar(require("./user-error"), exports); +tslib_1.__exportStar(require("./wallet-balance"), exports); +tslib_1.__exportStar(require("./withdraw-request"), exports); +tslib_1.__exportStar(require("./withdraw-request-body"), exports); +tslib_1.__exportStar(require("./withdraw-request-preview"), exports); +tslib_1.__exportStar(require("./withdraw-request-response"), exports); +tslib_1.__exportStar(require("./withdraw-response-body"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/wallet/model/index.js.map b/dist/wallet/model/index.js.map new file mode 100644 index 0000000..e934cb4 --- /dev/null +++ b/dist/wallet/model/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wallet/model/index.ts"],"names":[],"mappings":";;;AAAA,4EAAkD;AAClD,kEAAwC;AACxC,oDAA0B;AAC1B,sDAA4B;AAC5B,2DAAiC;AACjC,iDAAuB;AACvB,wDAA8B;AAC9B,0DAAgC;AAChC,sEAA4C;AAC5C,qDAA2B;AAC3B,6DAAmC;AACnC,2EAAiD;AACjD,qEAA2C;AAC3C,yDAA+B;AAC/B,iEAAuC;AACvC,0DAAgC;AAChC,mEAAyC;AACzC,0DAAgC;AAChC,yDAA+B;AAC/B,gEAAsC;AACtC,wDAA8B;AAC9B,yDAA+B;AAC/B,gEAAsC;AACtC,sDAA4B;AAC5B,+DAAqC;AACrC,kEAAwC;AACxC,2DAAiC;AACjC,gEAAsC;AACtC,0DAAgC;AAChC,wDAA8B;AAC9B,oDAA0B;AAC1B,oDAA0B;AAC1B,4DAAkC;AAClC,qEAA2C;AAC3C,6DAAmC;AACnC,uDAA6B;AAC7B,+DAAqC;AACrC,gEAAsC;AACtC,qDAA2B;AAC3B,8DAAoC;AACpC,+DAAqC;AACrC,4DAAkC;AAClC,4DAAkC;AAClC,yDAA+B;AAC/B,0DAAgC;AAChC,mDAAyB;AACzB,iDAAuB;AACvB,0DAAgC;AAChC,6DAAmC;AACnC,sDAA4B;AAC5B,wDAA8B;AAC9B,iEAAuC;AACvC,+DAAqC;AACrC,6DAAmC;AACnC,iEAAuC;AACvC,iEAAuC;AACvC,iDAAuB;AACvB,uDAA6B;AAC7B,2DAAiC;AACjC,6DAAmC;AACnC,kEAAwC;AACxC,qEAA2C;AAC3C,sEAA4C;AAC5C,mEAAyC"} \ No newline at end of file diff --git a/dist/wallet/model/jwt-response.d.ts b/dist/wallet/model/jwt-response.d.ts new file mode 100644 index 0000000..d116e92 --- /dev/null +++ b/dist/wallet/model/jwt-response.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface JwtResponse + */ +export interface JwtResponse { + /** + * JWT token + * @type {string} + * @memberof JwtResponse + */ + 'token': string; +} +//# sourceMappingURL=jwt-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/jwt-response.d.ts.map b/dist/wallet/model/jwt-response.d.ts.map new file mode 100644 index 0000000..1417b92 --- /dev/null +++ b/dist/wallet/model/jwt-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"jwt-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/jwt-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/wallet/model/jwt-response.js b/dist/wallet/model/jwt-response.js new file mode 100644 index 0000000..8eb56b4 --- /dev/null +++ b/dist/wallet/model/jwt-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=jwt-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/jwt-response.js.map b/dist/wallet/model/jwt-response.js.map new file mode 100644 index 0000000..3396d45 --- /dev/null +++ b/dist/wallet/model/jwt-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jwt-response.js","sourceRoot":"","sources":["../../../src/wallet/model/jwt-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-confirm-request.d.ts b/dist/wallet/model/kyc-confirm-request.d.ts new file mode 100644 index 0000000..56d8e1e --- /dev/null +++ b/dist/wallet/model/kyc-confirm-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycConfirmRequest + */ +export interface KycConfirmRequest { + /** + * KYC request ID + * @type {string} + * @memberof KycConfirmRequest + */ + 'id': string; +} +//# sourceMappingURL=kyc-confirm-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-confirm-request.d.ts.map b/dist/wallet/model/kyc-confirm-request.d.ts.map new file mode 100644 index 0000000..1a3edb2 --- /dev/null +++ b/dist/wallet/model/kyc-confirm-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-confirm-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/kyc-confirm-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-confirm-request.js b/dist/wallet/model/kyc-confirm-request.js new file mode 100644 index 0000000..12199a0 --- /dev/null +++ b/dist/wallet/model/kyc-confirm-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=kyc-confirm-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-confirm-request.js.map b/dist/wallet/model/kyc-confirm-request.js.map new file mode 100644 index 0000000..972590b --- /dev/null +++ b/dist/wallet/model/kyc-confirm-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-confirm-request.js","sourceRoot":"","sources":["../../../src/wallet/model/kyc-confirm-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-request.d.ts b/dist/wallet/model/kyc-request.d.ts new file mode 100644 index 0000000..4b5de6d --- /dev/null +++ b/dist/wallet/model/kyc-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycRequest + */ +export interface KycRequest { + /** + * National ID + * @type {string} + * @memberof KycRequest + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycRequest + */ + 'dateOfBirth': string; + /** + * Card number + * @type {string} + * @memberof KycRequest + */ + 'cardNumber': string; +} +//# sourceMappingURL=kyc-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-request.d.ts.map b/dist/wallet/model/kyc-request.d.ts.map new file mode 100644 index 0000000..52d88ec --- /dev/null +++ b/dist/wallet/model/kyc-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/kyc-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-request.js b/dist/wallet/model/kyc-request.js new file mode 100644 index 0000000..01495ff --- /dev/null +++ b/dist/wallet/model/kyc-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=kyc-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-request.js.map b/dist/wallet/model/kyc-request.js.map new file mode 100644 index 0000000..bd62b95 --- /dev/null +++ b/dist/wallet/model/kyc-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-request.js","sourceRoot":"","sources":["../../../src/wallet/model/kyc-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-response.d.ts b/dist/wallet/model/kyc-response.d.ts new file mode 100644 index 0000000..c068855 --- /dev/null +++ b/dist/wallet/model/kyc-response.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +/** + * + * @export + * @interface KycResponse + */ +export interface KycResponse { + /** + * KYC request ID + * @type {string} + * @memberof KycResponse + */ + 'id': string; + /** + * First name + * @type {string} + * @memberof KycResponse + */ + 'firstName': string; + /** + * Last name + * @type {string} + * @memberof KycResponse + */ + 'lastName': string; + /** + * National code + * @type {string} + * @memberof KycResponse + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycResponse + */ + 'dateOfBirth': string; + /** + * + * @type {BankInfo} + * @memberof KycResponse + */ + 'bankInfo': BankInfo; +} +//# sourceMappingURL=kyc-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-response.d.ts.map b/dist/wallet/model/kyc-response.d.ts.map new file mode 100644 index 0000000..54388af --- /dev/null +++ b/dist/wallet/model/kyc-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/kyc-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/wallet/model/kyc-response.js b/dist/wallet/model/kyc-response.js new file mode 100644 index 0000000..44e5581 --- /dev/null +++ b/dist/wallet/model/kyc-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=kyc-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/kyc-response.js.map b/dist/wallet/model/kyc-response.js.map new file mode 100644 index 0000000..ed7920b --- /dev/null +++ b/dist/wallet/model/kyc-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kyc-response.js","sourceRoot":"","sources":["../../../src/wallet/model/kyc-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/loan-create-request.d.ts b/dist/wallet/model/loan-create-request.d.ts new file mode 100644 index 0000000..28b77d8 --- /dev/null +++ b/dist/wallet/model/loan-create-request.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanToValueOptions } from './loan-to-value-options'; +/** + * + * @export + * @interface LoanCreateRequest + */ +export interface LoanCreateRequest { + /** + * Intent to create a vault + * @type {string} + * @memberof LoanCreateRequest + */ + 'intent': LoanCreateRequestIntentEnum; + /** + * The name of the loan plan + * @type {string} + * @memberof LoanCreateRequest + */ + 'planName': string; + /** + * Collateral amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'collateral'?: string; + /** + * Debt amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'debt'?: string; + /** + * Coin symbol + * @type {string} + * @memberof LoanCreateRequest + */ + 'symbol': string; + /** + * + * @type {LoanToValueOptions} + * @memberof LoanCreateRequest + */ + 'loanToValueOption': LoanToValueOptions; +} +export declare const LoanCreateRequestIntentEnum: { + readonly CREATE: "Create"; + readonly PREVIEW: "Preview"; +}; +export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; +//# sourceMappingURL=loan-create-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loan-create-request.d.ts.map b/dist/wallet/model/loan-create-request.d.ts.map new file mode 100644 index 0000000..1ea7ac0 --- /dev/null +++ b/dist/wallet/model/loan-create-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-create-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loan-create-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,2BAA2B,CAAC;IACtC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,EAAE,kBAAkB,CAAC;CAC3C;AAED,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/loan-create-request.js b/dist/wallet/model/loan-create-request.js new file mode 100644 index 0000000..af3704f --- /dev/null +++ b/dist/wallet/model/loan-create-request.js @@ -0,0 +1,21 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoanCreateRequestIntentEnum = void 0; +exports.LoanCreateRequestIntentEnum = { + CREATE: 'Create', + PREVIEW: 'Preview' +}; +//# sourceMappingURL=loan-create-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/loan-create-request.js.map b/dist/wallet/model/loan-create-request.js.map new file mode 100644 index 0000000..fff6192 --- /dev/null +++ b/dist/wallet/model/loan-create-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-create-request.js","sourceRoot":"","sources":["../../../src/wallet/model/loan-create-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmDU,QAAA,2BAA2B,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/loan-plan-response.d.ts b/dist/wallet/model/loan-plan-response.d.ts new file mode 100644 index 0000000..133f13a --- /dev/null +++ b/dist/wallet/model/loan-plan-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanPlan } from './loan-plan'; +/** + * + * @export + * @interface LoanPlanResponse + */ +export interface LoanPlanResponse { + /** + * + * @type {Array} + * @memberof LoanPlanResponse + */ + 'data': Array; +} +//# sourceMappingURL=loan-plan-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loan-plan-response.d.ts.map b/dist/wallet/model/loan-plan-response.d.ts.map new file mode 100644 index 0000000..e4f94e5 --- /dev/null +++ b/dist/wallet/model/loan-plan-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loan-plan-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/wallet/model/loan-plan-response.js b/dist/wallet/model/loan-plan-response.js new file mode 100644 index 0000000..cc99843 --- /dev/null +++ b/dist/wallet/model/loan-plan-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=loan-plan-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/loan-plan-response.js.map b/dist/wallet/model/loan-plan-response.js.map new file mode 100644 index 0000000..45de830 --- /dev/null +++ b/dist/wallet/model/loan-plan-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan-response.js","sourceRoot":"","sources":["../../../src/wallet/model/loan-plan-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/loan-plan.d.ts b/dist/wallet/model/loan-plan.d.ts new file mode 100644 index 0000000..b71da34 --- /dev/null +++ b/dist/wallet/model/loan-plan.d.ts @@ -0,0 +1,64 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './coin'; +import type { Currency } from './currency'; +import type { DetailedLoanToValueOptions } from './detailed-loan-to-value-options'; +/** + * + * @export + * @interface LoanPlan + */ +export interface LoanPlan { + /** + * The name of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'name': string; + /** + * The minimum collateralization ratio of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'minCollateralizationRatio': string; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'acceptableCoins': Array; + /** + * The annual fee of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'fee': string; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'maxDebt': Currency; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'minDebt': Currency; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'loanToValueOptions': Array; +} +//# sourceMappingURL=loan-plan.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loan-plan.d.ts.map b/dist/wallet/model/loan-plan.d.ts.map new file mode 100644 index 0000000..a578397 --- /dev/null +++ b/dist/wallet/model/loan-plan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loan-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC3D"} \ No newline at end of file diff --git a/dist/wallet/model/loan-plan.js b/dist/wallet/model/loan-plan.js new file mode 100644 index 0000000..4000397 --- /dev/null +++ b/dist/wallet/model/loan-plan.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=loan-plan.js.map \ No newline at end of file diff --git a/dist/wallet/model/loan-plan.js.map b/dist/wallet/model/loan-plan.js.map new file mode 100644 index 0000000..4c3a3de --- /dev/null +++ b/dist/wallet/model/loan-plan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-plan.js","sourceRoot":"","sources":["../../../src/wallet/model/loan-plan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/loan-to-value-options.d.ts b/dist/wallet/model/loan-to-value-options.d.ts new file mode 100644 index 0000000..9f608ff --- /dev/null +++ b/dist/wallet/model/loan-to-value-options.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The loan to value percentage options + * @export + * @enum {string} + */ +export declare const LoanToValueOptions: { + readonly RISKY: "Risky"; + readonly NORMAL: "Normal"; + readonly SAFE: "Safe"; +}; +export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; +//# sourceMappingURL=loan-to-value-options.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loan-to-value-options.d.ts.map b/dist/wallet/model/loan-to-value-options.d.ts.map new file mode 100644 index 0000000..3f1b36d --- /dev/null +++ b/dist/wallet/model/loan-to-value-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-to-value-options.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loan-to-value-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/loan-to-value-options.js b/dist/wallet/model/loan-to-value-options.js new file mode 100644 index 0000000..8bece93 --- /dev/null +++ b/dist/wallet/model/loan-to-value-options.js @@ -0,0 +1,27 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoanToValueOptions = void 0; +/** + * The loan to value percentage options + * @export + * @enum {string} + */ +exports.LoanToValueOptions = { + RISKY: 'Risky', + NORMAL: 'Normal', + SAFE: 'Safe' +}; +//# sourceMappingURL=loan-to-value-options.js.map \ No newline at end of file diff --git a/dist/wallet/model/loan-to-value-options.js.map b/dist/wallet/model/loan-to-value-options.js.map new file mode 100644 index 0000000..0ea28d0 --- /dev/null +++ b/dist/wallet/model/loan-to-value-options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loan-to-value-options.js","sourceRoot":"","sources":["../../../src/wallet/model/loan-to-value-options.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/loans-response-list.d.ts b/dist/wallet/model/loans-response-list.d.ts new file mode 100644 index 0000000..ad6b9bf --- /dev/null +++ b/dist/wallet/model/loans-response-list.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoansResponse } from './loans-response'; +/** + * + * @export + * @interface LoansResponseList + */ +export interface LoansResponseList { + /** + * + * @type {Array} + * @memberof LoansResponseList + */ + 'data': Array; +} +//# sourceMappingURL=loans-response-list.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loans-response-list.d.ts.map b/dist/wallet/model/loans-response-list.d.ts.map new file mode 100644 index 0000000..1dfb8f8 --- /dev/null +++ b/dist/wallet/model/loans-response-list.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response-list.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loans-response-list.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/wallet/model/loans-response-list.js b/dist/wallet/model/loans-response-list.js new file mode 100644 index 0000000..dfde1e6 --- /dev/null +++ b/dist/wallet/model/loans-response-list.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=loans-response-list.js.map \ No newline at end of file diff --git a/dist/wallet/model/loans-response-list.js.map b/dist/wallet/model/loans-response-list.js.map new file mode 100644 index 0000000..1763ae4 --- /dev/null +++ b/dist/wallet/model/loans-response-list.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response-list.js","sourceRoot":"","sources":["../../../src/wallet/model/loans-response-list.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/loans-response.d.ts b/dist/wallet/model/loans-response.d.ts new file mode 100644 index 0000000..47ecd4c --- /dev/null +++ b/dist/wallet/model/loans-response.d.ts @@ -0,0 +1,108 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './bullet-content'; +import type { Currency } from './currency'; +import type { LoanPlan } from './loan-plan'; +/** + * + * @export + * @interface LoansResponse + */ +export interface LoansResponse { + /** + * Identifier for the vault. + * @type {string} + * @memberof LoansResponse + */ + 'id'?: string; + /** + * Identifier for the user. + * @type {number} + * @memberof LoansResponse + */ + 'userId': number; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'liquidationPrice': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'collateral': Currency; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'loanToValue': string; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'debt': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'principal': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'scaledDebt': Currency; + /** + * + * @type {LoanPlan} + * @memberof LoansResponse + */ + 'plan': LoanPlan; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LoansResponse + */ + 'state': { + [key: string]: string | undefined; + }; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedCollateralTokenBalance'?: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedDebtTokenBalance'?: Currency; + /** + * + * @type {BulletContent} + * @memberof LoansResponse + */ + 'termsAndConditions'?: BulletContent; +} +//# sourceMappingURL=loans-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/loans-response.d.ts.map b/dist/wallet/model/loans-response.d.ts.map new file mode 100644 index 0000000..4f12c0f --- /dev/null +++ b/dist/wallet/model/loans-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/loans-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,kBAAkB,EAAE,QAAQ,CAAC;IAC7B;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,QAAQ,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,QAAQ,CAAC;IAC3C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,QAAQ,CAAC;IACrC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,aAAa,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/wallet/model/loans-response.js b/dist/wallet/model/loans-response.js new file mode 100644 index 0000000..659a03b --- /dev/null +++ b/dist/wallet/model/loans-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=loans-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/loans-response.js.map b/dist/wallet/model/loans-response.js.map new file mode 100644 index 0000000..6aa1251 --- /dev/null +++ b/dist/wallet/model/loans-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"loans-response.js","sourceRoot":"","sources":["../../../src/wallet/model/loans-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/login-request.d.ts b/dist/wallet/model/login-request.d.ts new file mode 100644 index 0000000..3ec0e24 --- /dev/null +++ b/dist/wallet/model/login-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LoginRequest + */ +export interface LoginRequest { + /** + * user\'s email + * @type {string} + * @memberof LoginRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof LoginRequest + */ + 'password': string; +} +//# sourceMappingURL=login-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/login-request.d.ts.map b/dist/wallet/model/login-request.d.ts.map new file mode 100644 index 0000000..ed5c49b --- /dev/null +++ b/dist/wallet/model/login-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"login-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/login-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/wallet/model/login-request.js b/dist/wallet/model/login-request.js new file mode 100644 index 0000000..5eb1da5 --- /dev/null +++ b/dist/wallet/model/login-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=login-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/login-request.js.map b/dist/wallet/model/login-request.js.map new file mode 100644 index 0000000..58d8168 --- /dev/null +++ b/dist/wallet/model/login-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"login-request.js","sourceRoot":"","sources":["../../../src/wallet/model/login-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/model-error.d.ts b/dist/wallet/model/model-error.d.ts new file mode 100644 index 0000000..fd26aa3 --- /dev/null +++ b/dist/wallet/model/model-error.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} +//# sourceMappingURL=model-error.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/model-error.d.ts.map b/dist/wallet/model/model-error.d.ts.map new file mode 100644 index 0000000..76515b2 --- /dev/null +++ b/dist/wallet/model/model-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/model-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/wallet/model/model-error.js b/dist/wallet/model/model-error.js new file mode 100644 index 0000000..6f19304 --- /dev/null +++ b/dist/wallet/model/model-error.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=model-error.js.map \ No newline at end of file diff --git a/dist/wallet/model/model-error.js.map b/dist/wallet/model/model-error.js.map new file mode 100644 index 0000000..a068077 --- /dev/null +++ b/dist/wallet/model/model-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"model-error.js","sourceRoot":"","sources":["../../../src/wallet/model/model-error.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/network.d.ts b/dist/wallet/model/network.d.ts new file mode 100644 index 0000000..86002d9 --- /dev/null +++ b/dist/wallet/model/network.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Network + */ +export interface Network { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Network + */ + 'name': { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Network + */ + 'logoUri': string; +} +//# sourceMappingURL=network.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/network.d.ts.map b/dist/wallet/model/network.d.ts.map new file mode 100644 index 0000000..a05ba4a --- /dev/null +++ b/dist/wallet/model/network.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/network.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB"} \ No newline at end of file diff --git a/dist/wallet/model/network.js b/dist/wallet/model/network.js new file mode 100644 index 0000000..b9083e7 --- /dev/null +++ b/dist/wallet/model/network.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=network.js.map \ No newline at end of file diff --git a/dist/wallet/model/network.js.map b/dist/wallet/model/network.js.map new file mode 100644 index 0000000..68ed8fc --- /dev/null +++ b/dist/wallet/model/network.js.map @@ -0,0 +1 @@ +{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../src/wallet/model/network.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/payment-request.d.ts b/dist/wallet/model/payment-request.d.ts new file mode 100644 index 0000000..e62e546 --- /dev/null +++ b/dist/wallet/model/payment-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PaymentRequest + */ +export interface PaymentRequest { + /** + * Payment amount + * @type {string} + * @memberof PaymentRequest + */ + 'amount': string; +} +//# sourceMappingURL=payment-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/payment-request.d.ts.map b/dist/wallet/model/payment-request.d.ts.map new file mode 100644 index 0000000..1be2fd4 --- /dev/null +++ b/dist/wallet/model/payment-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/payment-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/wallet/model/payment-request.js b/dist/wallet/model/payment-request.js new file mode 100644 index 0000000..c38fb39 --- /dev/null +++ b/dist/wallet/model/payment-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=payment-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/payment-request.js.map b/dist/wallet/model/payment-request.js.map new file mode 100644 index 0000000..bad6dcf --- /dev/null +++ b/dist/wallet/model/payment-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment-request.js","sourceRoot":"","sources":["../../../src/wallet/model/payment-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/payment.d.ts b/dist/wallet/model/payment.d.ts new file mode 100644 index 0000000..62b5ba6 --- /dev/null +++ b/dist/wallet/model/payment.d.ts @@ -0,0 +1,55 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Payment + */ +export interface Payment { + /** + * Payment amount + * @type {string} + * @memberof Payment + */ + 'amount': string; + /** + * Payment hash + * @type {string} + * @memberof Payment + */ + 'hash': string; + /** + * Payment URL + * @type {string} + * @memberof Payment + */ + 'url': string; + /** + * Sender first name + * @type {string} + * @memberof Payment + */ + 'senderFirstName': string; + /** + * Payment text + * @type {string} + * @memberof Payment + */ + 'text': string; + /** + * Share URL + * @type {string} + * @memberof Payment + */ + 'shareUrl': string; +} +//# sourceMappingURL=payment.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/payment.d.ts.map b/dist/wallet/model/payment.d.ts.map new file mode 100644 index 0000000..a45a0a0 --- /dev/null +++ b/dist/wallet/model/payment.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/payment.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/wallet/model/payment.js b/dist/wallet/model/payment.js new file mode 100644 index 0000000..15afac2 --- /dev/null +++ b/dist/wallet/model/payment.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=payment.js.map \ No newline at end of file diff --git a/dist/wallet/model/payment.js.map b/dist/wallet/model/payment.js.map new file mode 100644 index 0000000..b92558a --- /dev/null +++ b/dist/wallet/model/payment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/wallet/model/payment.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/phone-otp-submit-request.d.ts b/dist/wallet/model/phone-otp-submit-request.d.ts new file mode 100644 index 0000000..2f44501 --- /dev/null +++ b/dist/wallet/model/phone-otp-submit-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PhoneOtpSubmitRequest + */ +export interface PhoneOtpSubmitRequest { + /** + * Confirmation code + * @type {number} + * @memberof PhoneOtpSubmitRequest + */ + 'code': number; +} +//# sourceMappingURL=phone-otp-submit-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/phone-otp-submit-request.d.ts.map b/dist/wallet/model/phone-otp-submit-request.d.ts.map new file mode 100644 index 0000000..06bfdc5 --- /dev/null +++ b/dist/wallet/model/phone-otp-submit-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"phone-otp-submit-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/phone-otp-submit-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/wallet/model/phone-otp-submit-request.js b/dist/wallet/model/phone-otp-submit-request.js new file mode 100644 index 0000000..104af75 --- /dev/null +++ b/dist/wallet/model/phone-otp-submit-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=phone-otp-submit-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/phone-otp-submit-request.js.map b/dist/wallet/model/phone-otp-submit-request.js.map new file mode 100644 index 0000000..dd7ed92 --- /dev/null +++ b/dist/wallet/model/phone-otp-submit-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"phone-otp-submit-request.js","sourceRoot":"","sources":["../../../src/wallet/model/phone-otp-submit-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/profile-response.d.ts b/dist/wallet/model/profile-response.d.ts new file mode 100644 index 0000000..b88ed52 --- /dev/null +++ b/dist/wallet/model/profile-response.d.ts @@ -0,0 +1,46 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +import type { Referral } from './referral'; +import type { User } from './user'; +/** + * + * @export + * @interface ProfileResponse + */ +export interface ProfileResponse { + /** + * + * @type {Referral} + * @memberof ProfileResponse + */ + 'referral': Referral; + /** + * + * @type {number} + * @memberof ProfileResponse + */ + 'points': number; + /** + * + * @type {User} + * @memberof ProfileResponse + */ + 'user': User; + /** + * + * @type {Array} + * @memberof ProfileResponse + */ + 'bankInfo': Array; +} +//# sourceMappingURL=profile-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/profile-response.d.ts.map b/dist/wallet/model/profile-response.d.ts.map new file mode 100644 index 0000000..be997df --- /dev/null +++ b/dist/wallet/model/profile-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"profile-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/profile-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/wallet/model/profile-response.js b/dist/wallet/model/profile-response.js new file mode 100644 index 0000000..adbf5e4 --- /dev/null +++ b/dist/wallet/model/profile-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=profile-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/profile-response.js.map b/dist/wallet/model/profile-response.js.map new file mode 100644 index 0000000..1c76fc0 --- /dev/null +++ b/dist/wallet/model/profile-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"profile-response.js","sourceRoot":"","sources":["../../../src/wallet/model/profile-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/redemption-request.d.ts b/dist/wallet/model/redemption-request.d.ts new file mode 100644 index 0000000..c9cad01 --- /dev/null +++ b/dist/wallet/model/redemption-request.d.ts @@ -0,0 +1,37 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RedemptionRequest + */ +export interface RedemptionRequest { + /** + * The amount to be redeemed in ZAR + * @type {string} + * @memberof RedemptionRequest + */ + 'amount': string; + /** + * The card number to which the redemption amount will be transferred + * @type {string} + * @memberof RedemptionRequest + */ + 'destinationCardNumber': string; + /** + * The SMS OTP code + * @type {number} + * @memberof RedemptionRequest + */ + 'SmsOtp': number; +} +//# sourceMappingURL=redemption-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/redemption-request.d.ts.map b/dist/wallet/model/redemption-request.d.ts.map new file mode 100644 index 0000000..b2c41c2 --- /dev/null +++ b/dist/wallet/model/redemption-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/redemption-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/wallet/model/redemption-request.js b/dist/wallet/model/redemption-request.js new file mode 100644 index 0000000..95d3f3d --- /dev/null +++ b/dist/wallet/model/redemption-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=redemption-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/redemption-request.js.map b/dist/wallet/model/redemption-request.js.map new file mode 100644 index 0000000..6156a41 --- /dev/null +++ b/dist/wallet/model/redemption-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-request.js","sourceRoot":"","sources":["../../../src/wallet/model/redemption-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/redemption-response.d.ts b/dist/wallet/model/redemption-response.d.ts new file mode 100644 index 0000000..d548d97 --- /dev/null +++ b/dist/wallet/model/redemption-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Redemption } from './redemption'; +/** + * + * @export + * @interface RedemptionResponse + */ +export interface RedemptionResponse { + /** + * + * @type {Array} + * @memberof RedemptionResponse + */ + 'data': Array; +} +//# sourceMappingURL=redemption-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/redemption-response.d.ts.map b/dist/wallet/model/redemption-response.d.ts.map new file mode 100644 index 0000000..385343e --- /dev/null +++ b/dist/wallet/model/redemption-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/redemption-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/wallet/model/redemption-response.js b/dist/wallet/model/redemption-response.js new file mode 100644 index 0000000..0fc0928 --- /dev/null +++ b/dist/wallet/model/redemption-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=redemption-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/redemption-response.js.map b/dist/wallet/model/redemption-response.js.map new file mode 100644 index 0000000..b0cb1a8 --- /dev/null +++ b/dist/wallet/model/redemption-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption-response.js","sourceRoot":"","sources":["../../../src/wallet/model/redemption-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/redemption.d.ts b/dist/wallet/model/redemption.d.ts new file mode 100644 index 0000000..ec15a6e --- /dev/null +++ b/dist/wallet/model/redemption.d.ts @@ -0,0 +1,66 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './bank-info'; +import type { Currency } from './currency'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Redemption + */ +export interface Redemption { + /** + * + * @type {Currency} + * @memberof Redemption + */ + 'amount': Currency; + /** + * + * @type {BankInfo} + * @memberof Redemption + */ + 'destinationBankInfo': BankInfo; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Redemption + */ + 'status': { + [key: string]: string | undefined; + }; + /** + * The ID of the redemption request + * @type {string} + * @memberof Redemption + */ + 'id': string; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'updatedAt'?: Timestamp; + /** + * The Paya tracking code + * @type {string} + * @memberof Redemption + */ + 'payaTrackingCode'?: string; +} +//# sourceMappingURL=redemption.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/redemption.d.ts.map b/dist/wallet/model/redemption.d.ts.map new file mode 100644 index 0000000..5b146aa --- /dev/null +++ b/dist/wallet/model/redemption.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/redemption.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,EAAE,QAAQ,CAAC;IAChC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"} \ No newline at end of file diff --git a/dist/wallet/model/redemption.js b/dist/wallet/model/redemption.js new file mode 100644 index 0000000..65ce75b --- /dev/null +++ b/dist/wallet/model/redemption.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=redemption.js.map \ No newline at end of file diff --git a/dist/wallet/model/redemption.js.map b/dist/wallet/model/redemption.js.map new file mode 100644 index 0000000..4e9c466 --- /dev/null +++ b/dist/wallet/model/redemption.js.map @@ -0,0 +1 @@ +{"version":3,"file":"redemption.js","sourceRoot":"","sources":["../../../src/wallet/model/redemption.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/referral-response.d.ts b/dist/wallet/model/referral-response.d.ts new file mode 100644 index 0000000..798052f --- /dev/null +++ b/dist/wallet/model/referral-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Referral } from './referral'; +/** + * + * @export + * @interface ReferralResponse + */ +export interface ReferralResponse { + /** + * + * @type {Array} + * @memberof ReferralResponse + */ + 'data': Array; +} +//# sourceMappingURL=referral-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/referral-response.d.ts.map b/dist/wallet/model/referral-response.d.ts.map new file mode 100644 index 0000000..ecd5d10 --- /dev/null +++ b/dist/wallet/model/referral-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"referral-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/referral-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B"} \ No newline at end of file diff --git a/dist/wallet/model/referral-response.js b/dist/wallet/model/referral-response.js new file mode 100644 index 0000000..d71af84 --- /dev/null +++ b/dist/wallet/model/referral-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=referral-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/referral-response.js.map b/dist/wallet/model/referral-response.js.map new file mode 100644 index 0000000..41c5f04 --- /dev/null +++ b/dist/wallet/model/referral-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referral-response.js","sourceRoot":"","sources":["../../../src/wallet/model/referral-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/referral.d.ts b/dist/wallet/model/referral.d.ts new file mode 100644 index 0000000..1cf8306 --- /dev/null +++ b/dist/wallet/model/referral.d.ts @@ -0,0 +1,68 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Referral + */ +export interface Referral { + /** + * + * @type {number} + * @memberof Referral + */ + 'id': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'referrerId': number; + /** + * + * @type {string} + * @memberof Referral + */ + 'name'?: string | null; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageLimit': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageCount': number; + /** + * + * @type {Timestamp} + * @memberof Referral + */ + 'createdAt': Timestamp; + /** + * + * @type {string} + * @memberof Referral + */ + 'link'?: string | null; + /** + * + * @type {string} + * @memberof Referral + */ + 'shareUrl'?: string; +} +//# sourceMappingURL=referral.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/referral.d.ts.map b/dist/wallet/model/referral.d.ts.map new file mode 100644 index 0000000..e2d08b4 --- /dev/null +++ b/dist/wallet/model/referral.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"referral.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/referral.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/wallet/model/referral.js b/dist/wallet/model/referral.js new file mode 100644 index 0000000..2885678 --- /dev/null +++ b/dist/wallet/model/referral.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=referral.js.map \ No newline at end of file diff --git a/dist/wallet/model/referral.js.map b/dist/wallet/model/referral.js.map new file mode 100644 index 0000000..a30eada --- /dev/null +++ b/dist/wallet/model/referral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"referral.js","sourceRoot":"","sources":["../../../src/wallet/model/referral.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/repay-loan-request.d.ts b/dist/wallet/model/repay-loan-request.d.ts new file mode 100644 index 0000000..5731bb0 --- /dev/null +++ b/dist/wallet/model/repay-loan-request.d.ts @@ -0,0 +1,36 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RepayLoanRequest + */ +export interface RepayLoanRequest { + /** + * Intent to repay a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'intent': RepayLoanRequestIntentEnum; + /** + * The id of a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'loanId': string; +} +export declare const RepayLoanRequestIntentEnum: { + readonly REPAY: "Repay"; + readonly PREVIEW: "Preview"; +}; +export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; +//# sourceMappingURL=repay-loan-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/repay-loan-request.d.ts.map b/dist/wallet/model/repay-loan-request.d.ts.map new file mode 100644 index 0000000..e5784bc --- /dev/null +++ b/dist/wallet/model/repay-loan-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"repay-loan-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/repay-loan-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,0BAA0B,CAAC;IACrC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/repay-loan-request.js b/dist/wallet/model/repay-loan-request.js new file mode 100644 index 0000000..09050da --- /dev/null +++ b/dist/wallet/model/repay-loan-request.js @@ -0,0 +1,21 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RepayLoanRequestIntentEnum = void 0; +exports.RepayLoanRequestIntentEnum = { + REPAY: 'Repay', + PREVIEW: 'Preview' +}; +//# sourceMappingURL=repay-loan-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/repay-loan-request.js.map b/dist/wallet/model/repay-loan-request.js.map new file mode 100644 index 0000000..2a19ef9 --- /dev/null +++ b/dist/wallet/model/repay-loan-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"repay-loan-request.js","sourceRoot":"","sources":["../../../src/wallet/model/repay-loan-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAwBU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/sign-up-request.d.ts b/dist/wallet/model/sign-up-request.d.ts new file mode 100644 index 0000000..23bd672 --- /dev/null +++ b/dist/wallet/model/sign-up-request.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SignUpRequest + */ +export interface SignUpRequest { + /** + * user\'s email + * @type {string} + * @memberof SignUpRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof SignUpRequest + */ + 'password': string; +} +//# sourceMappingURL=sign-up-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/sign-up-request.d.ts.map b/dist/wallet/model/sign-up-request.d.ts.map new file mode 100644 index 0000000..7255281 --- /dev/null +++ b/dist/wallet/model/sign-up-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sign-up-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/sign-up-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/wallet/model/sign-up-request.js b/dist/wallet/model/sign-up-request.js new file mode 100644 index 0000000..615ab06 --- /dev/null +++ b/dist/wallet/model/sign-up-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=sign-up-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/sign-up-request.js.map b/dist/wallet/model/sign-up-request.js.map new file mode 100644 index 0000000..d197b52 --- /dev/null +++ b/dist/wallet/model/sign-up-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sign-up-request.js","sourceRoot":"","sources":["../../../src/wallet/model/sign-up-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/simple-response.d.ts b/dist/wallet/model/simple-response.d.ts new file mode 100644 index 0000000..62fade2 --- /dev/null +++ b/dist/wallet/model/simple-response.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SimpleResponse + */ +export interface SimpleResponse { + /** + * Localized messages + * @type {{ [key: string]: string | undefined; }} + * @memberof SimpleResponse + */ + 'messages': { + [key: string]: string | undefined; + }; +} +//# sourceMappingURL=simple-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/simple-response.d.ts.map b/dist/wallet/model/simple-response.d.ts.map new file mode 100644 index 0000000..00e24f2 --- /dev/null +++ b/dist/wallet/model/simple-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/simple-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACtD"} \ No newline at end of file diff --git a/dist/wallet/model/simple-response.js b/dist/wallet/model/simple-response.js new file mode 100644 index 0000000..4ce4fe7 --- /dev/null +++ b/dist/wallet/model/simple-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=simple-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/simple-response.js.map b/dist/wallet/model/simple-response.js.map new file mode 100644 index 0000000..118f39c --- /dev/null +++ b/dist/wallet/model/simple-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"simple-response.js","sourceRoot":"","sources":["../../../src/wallet/model/simple-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/swap-request.d.ts b/dist/wallet/model/swap-request.d.ts new file mode 100644 index 0000000..ae596d5 --- /dev/null +++ b/dist/wallet/model/swap-request.d.ts @@ -0,0 +1,66 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SwapRequest + */ +export interface SwapRequest { + /** + * Intent to swap + * @type {string} + * @memberof SwapRequest + */ + 'intent': SwapRequestIntentEnum; + /** + * Quote ID, required if intent is Swap + * @type {string} + * @memberof SwapRequest + */ + 'quoteId'?: string; + /** + * Trade type + * @type {string} + * @memberof SwapRequest + */ + 'tradeType'?: SwapRequestTradeTypeEnum; + /** + * Coin symbol to swap from + * @type {string} + * @memberof SwapRequest + */ + 'in'?: string; + /** + * Coin symbol to swap to + * @type {string} + * @memberof SwapRequest + */ + 'out'?: string; + /** + * Amount to swap + * @type {string} + * @memberof SwapRequest + */ + 'amount'?: string; +} +export declare const SwapRequestIntentEnum: { + readonly SWAP: "Swap"; + readonly QUOTE: "Quote"; + readonly PREVIEW: "Preview"; +}; +export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; +export declare const SwapRequestTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; +//# sourceMappingURL=swap-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/swap-request.d.ts.map b/dist/wallet/model/swap-request.d.ts.map new file mode 100644 index 0000000..9c8209d --- /dev/null +++ b/dist/wallet/model/swap-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/swap-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AACrG,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/swap-request.js b/dist/wallet/model/swap-request.js new file mode 100644 index 0000000..2a07283 --- /dev/null +++ b/dist/wallet/model/swap-request.js @@ -0,0 +1,26 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapRequestTradeTypeEnum = exports.SwapRequestIntentEnum = void 0; +exports.SwapRequestIntentEnum = { + SWAP: 'Swap', + QUOTE: 'Quote', + PREVIEW: 'Preview' +}; +exports.SwapRequestTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=swap-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/swap-request.js.map b/dist/wallet/model/swap-request.js.map new file mode 100644 index 0000000..d6c3ef9 --- /dev/null +++ b/dist/wallet/model/swap-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-request.js","sourceRoot":"","sources":["../../../src/wallet/model/swap-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAgDU,QAAA,qBAAqB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAGE,QAAA,wBAAwB,GAAG;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/swap-response.d.ts b/dist/wallet/model/swap-response.d.ts new file mode 100644 index 0000000..e98c625 --- /dev/null +++ b/dist/wallet/model/swap-response.d.ts @@ -0,0 +1,105 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface SwapResponse + */ +export interface SwapResponse { + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'tradeType': SwapResponseTradeTypeEnum; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'in': Symbol; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'out': Symbol; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'amount': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'quote': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'rate': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'inputBalanceAfterSwap'?: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'outputBalanceAfterSwap'?: string; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'expiresAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'executedAt'?: Timestamp; + /** + * + * @type {Currency} + * @memberof SwapResponse + */ + 'value': Currency; +} +export declare const SwapResponseTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; +//# sourceMappingURL=swap-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/swap-response.d.ts.map b/dist/wallet/model/swap-response.d.ts.map new file mode 100644 index 0000000..7e7feac --- /dev/null +++ b/dist/wallet/model/swap-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/swap-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,yBAAyB,CAAC;IACvC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/swap-response.js b/dist/wallet/model/swap-response.js new file mode 100644 index 0000000..4dfdd20 --- /dev/null +++ b/dist/wallet/model/swap-response.js @@ -0,0 +1,21 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapResponseTradeTypeEnum = void 0; +exports.SwapResponseTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +//# sourceMappingURL=swap-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/swap-response.js.map b/dist/wallet/model/swap-response.js.map new file mode 100644 index 0000000..49c1398 --- /dev/null +++ b/dist/wallet/model/swap-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"swap-response.js","sourceRoot":"","sources":["../../../src/wallet/model/swap-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmGU,QAAA,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/symbol.d.ts b/dist/wallet/model/symbol.d.ts new file mode 100644 index 0000000..10aca13 --- /dev/null +++ b/dist/wallet/model/symbol.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + * @enum {string} + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/symbol.d.ts.map b/dist/wallet/model/symbol.d.ts.map new file mode 100644 index 0000000..c7b48ec --- /dev/null +++ b/dist/wallet/model/symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/symbol.js b/dist/wallet/model/symbol.js new file mode 100644 index 0000000..07eb458 --- /dev/null +++ b/dist/wallet/model/symbol.js @@ -0,0 +1,33 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Symbol = void 0; +/** + * Symbol representation + * @export + * @enum {string} + */ +exports.Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +//# sourceMappingURL=symbol.js.map \ No newline at end of file diff --git a/dist/wallet/model/symbol.js.map b/dist/wallet/model/symbol.js.map new file mode 100644 index 0000000..e6a69cb --- /dev/null +++ b/dist/wallet/model/symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.js","sourceRoot":"","sources":["../../../src/wallet/model/symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/task-response.d.ts b/dist/wallet/model/task-response.d.ts new file mode 100644 index 0000000..9b087c8 --- /dev/null +++ b/dist/wallet/model/task-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Task } from './task'; +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {Array} + * @memberof TaskResponse + */ + 'data': Array; +} +//# sourceMappingURL=task-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/task-response.d.ts.map b/dist/wallet/model/task-response.d.ts.map new file mode 100644 index 0000000..6c3fb9e --- /dev/null +++ b/dist/wallet/model/task-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"task-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/task-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/wallet/model/task-response.js b/dist/wallet/model/task-response.js new file mode 100644 index 0000000..28eb17f --- /dev/null +++ b/dist/wallet/model/task-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=task-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/task-response.js.map b/dist/wallet/model/task-response.js.map new file mode 100644 index 0000000..ac95a2d --- /dev/null +++ b/dist/wallet/model/task-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"task-response.js","sourceRoot":"","sources":["../../../src/wallet/model/task-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/task.d.ts b/dist/wallet/model/task.d.ts new file mode 100644 index 0000000..589a1b4 --- /dev/null +++ b/dist/wallet/model/task.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface Task + */ +export interface Task { + /** + * Task ID + * @type {string} + * @memberof Task + */ + 'id': string; + /** + * Task description + * @type {string} + * @memberof Task + */ + 'description': string; + /** + * Task reward + * @type {number} + * @memberof Task + */ + 'points': number; + /** + * Task status. Possible values \"Pending\", \"Completed\" + * @type {string} + * @memberof Task + */ + 'status': string; + /** + * + * @type {Timestamp} + * @memberof Task + */ + 'completedAt'?: Timestamp; +} +//# sourceMappingURL=task.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/task.d.ts.map b/dist/wallet/model/task.d.ts.map new file mode 100644 index 0000000..6b8be98 --- /dev/null +++ b/dist/wallet/model/task.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/wallet/model/task.js b/dist/wallet/model/task.js new file mode 100644 index 0000000..bca3f6d --- /dev/null +++ b/dist/wallet/model/task.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=task.js.map \ No newline at end of file diff --git a/dist/wallet/model/task.js.map b/dist/wallet/model/task.js.map new file mode 100644 index 0000000..91ea5d8 --- /dev/null +++ b/dist/wallet/model/task.js.map @@ -0,0 +1 @@ +{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../src/wallet/model/task.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/telegram-profile.d.ts b/dist/wallet/model/telegram-profile.d.ts new file mode 100644 index 0000000..1956052 --- /dev/null +++ b/dist/wallet/model/telegram-profile.d.ts @@ -0,0 +1,43 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TelegramProfile + */ +export interface TelegramProfile { + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'username'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'lastName'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'photoUrl'?: string | null; +} +//# sourceMappingURL=telegram-profile.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/telegram-profile.d.ts.map b/dist/wallet/model/telegram-profile.d.ts.map new file mode 100644 index 0000000..2d895a6 --- /dev/null +++ b/dist/wallet/model/telegram-profile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"telegram-profile.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/telegram-profile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/wallet/model/telegram-profile.js b/dist/wallet/model/telegram-profile.js new file mode 100644 index 0000000..f63d81f --- /dev/null +++ b/dist/wallet/model/telegram-profile.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=telegram-profile.js.map \ No newline at end of file diff --git a/dist/wallet/model/telegram-profile.js.map b/dist/wallet/model/telegram-profile.js.map new file mode 100644 index 0000000..308a850 --- /dev/null +++ b/dist/wallet/model/telegram-profile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"telegram-profile.js","sourceRoot":"","sources":["../../../src/wallet/model/telegram-profile.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/timestamp.d.ts b/dist/wallet/model/timestamp.d.ts new file mode 100644 index 0000000..fe85e42 --- /dev/null +++ b/dist/wallet/model/timestamp.d.ts @@ -0,0 +1,31 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} +//# sourceMappingURL=timestamp.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/timestamp.d.ts.map b/dist/wallet/model/timestamp.d.ts.map new file mode 100644 index 0000000..aa67222 --- /dev/null +++ b/dist/wallet/model/timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"} \ No newline at end of file diff --git a/dist/wallet/model/timestamp.js b/dist/wallet/model/timestamp.js new file mode 100644 index 0000000..1ad058d --- /dev/null +++ b/dist/wallet/model/timestamp.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/dist/wallet/model/timestamp.js.map b/dist/wallet/model/timestamp.js.map new file mode 100644 index 0000000..b5bd55f --- /dev/null +++ b/dist/wallet/model/timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../src/wallet/model/timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-response.d.ts b/dist/wallet/model/transaction-response.d.ts new file mode 100644 index 0000000..c88837e --- /dev/null +++ b/dist/wallet/model/transaction-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Transaction } from './transaction'; +/** + * + * @export + * @interface TransactionResponse + */ +export interface TransactionResponse { + /** + * + * @type {Array} + * @memberof TransactionResponse + */ + 'data': Array; +} +//# sourceMappingURL=transaction-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-response.d.ts.map b/dist/wallet/model/transaction-response.d.ts.map new file mode 100644 index 0000000..808c22f --- /dev/null +++ b/dist/wallet/model/transaction-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/transaction-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-response.js b/dist/wallet/model/transaction-response.js new file mode 100644 index 0000000..13a90aa --- /dev/null +++ b/dist/wallet/model/transaction-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=transaction-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-response.js.map b/dist/wallet/model/transaction-response.js.map new file mode 100644 index 0000000..40a7bb9 --- /dev/null +++ b/dist/wallet/model/transaction-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-response.js","sourceRoot":"","sources":["../../../src/wallet/model/transaction-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-status.d.ts b/dist/wallet/model/transaction-status.d.ts new file mode 100644 index 0000000..d56e4fc --- /dev/null +++ b/dist/wallet/model/transaction-status.d.ts @@ -0,0 +1,23 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TransactionStatus: { + readonly SENT: "Sent"; + readonly SUCCESS: "Success"; + readonly FAILED: "Failed"; +}; +export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; +//# sourceMappingURL=transaction-status.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-status.d.ts.map b/dist/wallet/model/transaction-status.d.ts.map new file mode 100644 index 0000000..b38e81b --- /dev/null +++ b/dist/wallet/model/transaction-status.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-status.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/transaction-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-status.js b/dist/wallet/model/transaction-status.js new file mode 100644 index 0000000..7c40772 --- /dev/null +++ b/dist/wallet/model/transaction-status.js @@ -0,0 +1,27 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionStatus = void 0; +/** + * + * @export + * @enum {string} + */ +exports.TransactionStatus = { + SENT: 'Sent', + SUCCESS: 'Success', + FAILED: 'Failed' +}; +//# sourceMappingURL=transaction-status.js.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-status.js.map b/dist/wallet/model/transaction-status.js.map new file mode 100644 index 0000000..6cd26ab --- /dev/null +++ b/dist/wallet/model/transaction-status.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-status.js","sourceRoot":"","sources":["../../../src/wallet/model/transaction-status.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-type.d.ts b/dist/wallet/model/transaction-type.d.ts new file mode 100644 index 0000000..045640d --- /dev/null +++ b/dist/wallet/model/transaction-type.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @enum {string} + */ +export declare const TransactionType: { + readonly CREDIT: "Credit"; + readonly DEBIT: "Debit"; + readonly TRANSFER: "Transfer"; + readonly DEPOSIT: "Deposit"; + readonly WITHDRAW: "Withdraw"; +}; +export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; +//# sourceMappingURL=transaction-type.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-type.d.ts.map b/dist/wallet/model/transaction-type.d.ts.map new file mode 100644 index 0000000..e1d4866 --- /dev/null +++ b/dist/wallet/model/transaction-type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-type.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/transaction-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/transaction-type.js b/dist/wallet/model/transaction-type.js new file mode 100644 index 0000000..a81160c --- /dev/null +++ b/dist/wallet/model/transaction-type.js @@ -0,0 +1,29 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionType = void 0; +/** + * + * @export + * @enum {string} + */ +exports.TransactionType = { + CREDIT: 'Credit', + DEBIT: 'Debit', + TRANSFER: 'Transfer', + DEPOSIT: 'Deposit', + WITHDRAW: 'Withdraw' +}; +//# sourceMappingURL=transaction-type.js.map \ No newline at end of file diff --git a/dist/wallet/model/transaction-type.js.map b/dist/wallet/model/transaction-type.js.map new file mode 100644 index 0000000..88c8bf6 --- /dev/null +++ b/dist/wallet/model/transaction-type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction-type.js","sourceRoot":"","sources":["../../../src/wallet/model/transaction-type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/transaction.d.ts b/dist/wallet/model/transaction.d.ts new file mode 100644 index 0000000..bb75bd2 --- /dev/null +++ b/dist/wallet/model/transaction.d.ts @@ -0,0 +1,83 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { ExternalTransaction } from './external-transaction'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +import type { TransactionType } from './transaction-type'; +/** + * + * @export + * @interface Transaction + */ +export interface Transaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof Transaction + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof Transaction + */ + 'time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof Transaction + */ + 'type': TransactionType; + /** + * The ID of the user from whom the transaction originated + * @type {string} + * @memberof Transaction + */ + 'from': string; + /** + * The ID of the user to whom the transaction is directed + * @type {string} + * @memberof Transaction + */ + 'to': string; + /** + * + * @type {Symbol} + * @memberof Transaction + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof Transaction + */ + 'amount': Currency; + /** + * Equal to \"Inbound\" if the transaction is directed to the user, and \"Outbound\" if the transaction is directed from the user. + * @type {string} + * @memberof Transaction + */ + 'direction': TransactionDirectionEnum; + /** + * + * @type {ExternalTransaction} + * @memberof Transaction + */ + 'externalTransaction'?: ExternalTransaction; +} +export declare const TransactionDirectionEnum: { + readonly INBOUND: "Inbound"; + readonly OUTBOUND: "Outbound"; +}; +export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; +//# sourceMappingURL=transaction.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/transaction.d.ts.map b/dist/wallet/model/transaction.d.ts.map new file mode 100644 index 0000000..d712392 --- /dev/null +++ b/dist/wallet/model/transaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,wBAAwB,CAAC;IACtC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;CAC/C;AAED,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/transaction.js b/dist/wallet/model/transaction.js new file mode 100644 index 0000000..68a919e --- /dev/null +++ b/dist/wallet/model/transaction.js @@ -0,0 +1,21 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionDirectionEnum = void 0; +exports.TransactionDirectionEnum = { + INBOUND: 'Inbound', + OUTBOUND: 'Outbound' +}; +//# sourceMappingURL=transaction.js.map \ No newline at end of file diff --git a/dist/wallet/model/transaction.js.map b/dist/wallet/model/transaction.js.map new file mode 100644 index 0000000..9a0bf8b --- /dev/null +++ b/dist/wallet/model/transaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/wallet/model/transaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiFU,QAAA,wBAAwB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/update-email-request.d.ts b/dist/wallet/model/update-email-request.d.ts new file mode 100644 index 0000000..260c905 --- /dev/null +++ b/dist/wallet/model/update-email-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateEmailRequest + */ +export interface UpdateEmailRequest { + /** + * Email address + * @type {string} + * @memberof UpdateEmailRequest + */ + 'email': string; +} +//# sourceMappingURL=update-email-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/update-email-request.d.ts.map b/dist/wallet/model/update-email-request.d.ts.map new file mode 100644 index 0000000..270a038 --- /dev/null +++ b/dist/wallet/model/update-email-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-email-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/update-email-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"} \ No newline at end of file diff --git a/dist/wallet/model/update-email-request.js b/dist/wallet/model/update-email-request.js new file mode 100644 index 0000000..4ebf43a --- /dev/null +++ b/dist/wallet/model/update-email-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=update-email-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/update-email-request.js.map b/dist/wallet/model/update-email-request.js.map new file mode 100644 index 0000000..d57bd77 --- /dev/null +++ b/dist/wallet/model/update-email-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-email-request.js","sourceRoot":"","sources":["../../../src/wallet/model/update-email-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/update-phone-request.d.ts b/dist/wallet/model/update-phone-request.d.ts new file mode 100644 index 0000000..6d252a1 --- /dev/null +++ b/dist/wallet/model/update-phone-request.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdatePhoneRequest + */ +export interface UpdatePhoneRequest { + /** + * Phone number + * @type {string} + * @memberof UpdatePhoneRequest + */ + 'number': string; +} +//# sourceMappingURL=update-phone-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/update-phone-request.d.ts.map b/dist/wallet/model/update-phone-request.d.ts.map new file mode 100644 index 0000000..71df773 --- /dev/null +++ b/dist/wallet/model/update-phone-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"update-phone-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/update-phone-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"} \ No newline at end of file diff --git a/dist/wallet/model/update-phone-request.js b/dist/wallet/model/update-phone-request.js new file mode 100644 index 0000000..c763091 --- /dev/null +++ b/dist/wallet/model/update-phone-request.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=update-phone-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/update-phone-request.js.map b/dist/wallet/model/update-phone-request.js.map new file mode 100644 index 0000000..1cafe27 --- /dev/null +++ b/dist/wallet/model/update-phone-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-phone-request.js","sourceRoot":"","sources":["../../../src/wallet/model/update-phone-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/user-error.d.ts b/dist/wallet/model/user-error.d.ts new file mode 100644 index 0000000..32cc3cc --- /dev/null +++ b/dist/wallet/model/user-error.d.ts @@ -0,0 +1,28 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorDetail } from './error-detail'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorDetail | undefined; }} + * @memberof UserError + */ + 'messages': { + [key: string]: ErrorDetail | undefined; + }; +} +//# sourceMappingURL=user-error.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/user-error.d.ts.map b/dist/wallet/model/user-error.d.ts.map new file mode 100644 index 0000000..ae0226e --- /dev/null +++ b/dist/wallet/model/user-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/user-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;KAAE,CAAC;CAC3D"} \ No newline at end of file diff --git a/dist/wallet/model/user-error.js b/dist/wallet/model/user-error.js new file mode 100644 index 0000000..78541b3 --- /dev/null +++ b/dist/wallet/model/user-error.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user-error.js.map \ No newline at end of file diff --git a/dist/wallet/model/user-error.js.map b/dist/wallet/model/user-error.js.map new file mode 100644 index 0000000..6882514 --- /dev/null +++ b/dist/wallet/model/user-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user-error.js","sourceRoot":"","sources":["../../../src/wallet/model/user-error.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/user.d.ts b/dist/wallet/model/user.d.ts new file mode 100644 index 0000000..ede09a9 --- /dev/null +++ b/dist/wallet/model/user.d.ts @@ -0,0 +1,92 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TelegramProfile } from './telegram-profile'; +/** + * + * @export + * @interface User + */ +export interface User { + /** + * User\'s first name + * @type {string} + * @memberof User + */ + 'firstName'?: string; + /** + * User\'s last name + * @type {string} + * @memberof User + */ + 'lastName'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'username'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'phone'?: string; + /** + * + * @type {boolean} + * @memberof User + */ + 'isEmailVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isPhoneVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isKycVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isChild'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isSuperUser'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isAdmin'?: boolean; + /** + * + * @type {TelegramProfile} + * @memberof User + */ + 'telegram'?: TelegramProfile; +} +//# sourceMappingURL=user.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/user.d.ts.map b/dist/wallet/model/user.d.ts.map new file mode 100644 index 0000000..ff09c76 --- /dev/null +++ b/dist/wallet/model/user.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/user.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/wallet/model/user.js b/dist/wallet/model/user.js new file mode 100644 index 0000000..728c22f --- /dev/null +++ b/dist/wallet/model/user.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=user.js.map \ No newline at end of file diff --git a/dist/wallet/model/user.js.map b/dist/wallet/model/user.js.map new file mode 100644 index 0000000..edec447 --- /dev/null +++ b/dist/wallet/model/user.js.map @@ -0,0 +1 @@ +{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/wallet/model/user.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/wallet-balance.d.ts b/dist/wallet/model/wallet-balance.d.ts new file mode 100644 index 0000000..93f7d73 --- /dev/null +++ b/dist/wallet/model/wallet-balance.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Balance } from './balance'; +import type { Currency } from './currency'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Currency} + * @memberof WalletBalance + */ + 'total': Currency; + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} +//# sourceMappingURL=wallet-balance.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/wallet-balance.d.ts.map b/dist/wallet/model/wallet-balance.d.ts.map new file mode 100644 index 0000000..28e2412 --- /dev/null +++ b/dist/wallet/model/wallet-balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/wallet-balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/wallet/model/wallet-balance.js b/dist/wallet/model/wallet-balance.js new file mode 100644 index 0000000..4c4d966 --- /dev/null +++ b/dist/wallet/model/wallet-balance.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=wallet-balance.js.map \ No newline at end of file diff --git a/dist/wallet/model/wallet-balance.js.map b/dist/wallet/model/wallet-balance.js.map new file mode 100644 index 0000000..12cd364 --- /dev/null +++ b/dist/wallet/model/wallet-balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"wallet-balance.js","sourceRoot":"","sources":["../../../src/wallet/model/wallet-balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-body.d.ts b/dist/wallet/model/withdraw-request-body.d.ts new file mode 100644 index 0000000..dae2800 --- /dev/null +++ b/dist/wallet/model/withdraw-request-body.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawRequestBody + */ +export interface WithdrawRequestBody { + /** + * Network to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'network': string; + /** + * Coin symbol + * @type {string} + * @memberof WithdrawRequestBody + */ + 'symbol': string; + /** + * Amount to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'amount': string; + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestBody + */ + 'address': string; + /** + * + * @type {string} + * @memberof WithdrawRequestBody + */ + 'comment'?: string | null; +} +//# sourceMappingURL=withdraw-request-body.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-body.d.ts.map b/dist/wallet/model/withdraw-request-body.d.ts.map new file mode 100644 index 0000000..aafb5cb --- /dev/null +++ b/dist/wallet/model/withdraw-request-body.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-body.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-body.js b/dist/wallet/model/withdraw-request-body.js new file mode 100644 index 0000000..388eba4 --- /dev/null +++ b/dist/wallet/model/withdraw-request-body.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=withdraw-request-body.js.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-body.js.map b/dist/wallet/model/withdraw-request-body.js.map new file mode 100644 index 0000000..0f7ba08 --- /dev/null +++ b/dist/wallet/model/withdraw-request-body.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-body.js","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-body.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-preview.d.ts b/dist/wallet/model/withdraw-request-preview.d.ts new file mode 100644 index 0000000..02dfa47 --- /dev/null +++ b/dist/wallet/model/withdraw-request-preview.d.ts @@ -0,0 +1,58 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './currency'; +import type { Network } from './network'; +import type { Symbol } from './symbol'; +/** + * + * @export + * @interface WithdrawRequestPreview + */ +export interface WithdrawRequestPreview { + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestPreview + */ + 'address': string; + /** + * + * @type {Network} + * @memberof WithdrawRequestPreview + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequestPreview + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'amount': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'fee': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'balanceAfterWithdraw': Currency; +} +//# sourceMappingURL=withdraw-request-preview.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-preview.d.ts.map b/dist/wallet/model/withdraw-request-preview.d.ts.map new file mode 100644 index 0000000..fd15bcc --- /dev/null +++ b/dist/wallet/model/withdraw-request-preview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-preview.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-preview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,sBAAsB,EAAE,QAAQ,CAAC;CACpC"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-preview.js b/dist/wallet/model/withdraw-request-preview.js new file mode 100644 index 0000000..e59f90e --- /dev/null +++ b/dist/wallet/model/withdraw-request-preview.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=withdraw-request-preview.js.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-preview.js.map b/dist/wallet/model/withdraw-request-preview.js.map new file mode 100644 index 0000000..30c47d0 --- /dev/null +++ b/dist/wallet/model/withdraw-request-preview.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-preview.js","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-preview.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-response.d.ts b/dist/wallet/model/withdraw-request-response.d.ts new file mode 100644 index 0000000..7dcc9d3 --- /dev/null +++ b/dist/wallet/model/withdraw-request-response.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WithdrawRequest } from './withdraw-request'; +/** + * + * @export + * @interface WithdrawRequestResponse + */ +export interface WithdrawRequestResponse { + /** + * + * @type {Array} + * @memberof WithdrawRequestResponse + */ + 'data': Array; +} +//# sourceMappingURL=withdraw-request-response.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-response.d.ts.map b/dist/wallet/model/withdraw-request-response.d.ts.map new file mode 100644 index 0000000..f98e405 --- /dev/null +++ b/dist/wallet/model/withdraw-request-response.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-response.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAClC"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-response.js b/dist/wallet/model/withdraw-request-response.js new file mode 100644 index 0000000..3eceac3 --- /dev/null +++ b/dist/wallet/model/withdraw-request-response.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=withdraw-request-response.js.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request-response.js.map b/dist/wallet/model/withdraw-request-response.js.map new file mode 100644 index 0000000..e41a25f --- /dev/null +++ b/dist/wallet/model/withdraw-request-response.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request-response.js","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request.d.ts b/dist/wallet/model/withdraw-request.d.ts new file mode 100644 index 0000000..d002017 --- /dev/null +++ b/dist/wallet/model/withdraw-request.d.ts @@ -0,0 +1,89 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Network } from './network'; +import type { Symbol } from './symbol'; +import type { Timestamp } from './timestamp'; +/** + * + * @export + * @interface WithdrawRequest + */ +export interface WithdrawRequest { + /** + * + * @type {number} + * @memberof WithdrawRequest + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof WithdrawRequest + */ + 'timeCreated': Timestamp; + /** + * + * @type {Network} + * @memberof WithdrawRequest + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequest + */ + 'symbol': Symbol; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'to': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'comment'?: string | null; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'status': WithdrawRequestStatusEnum; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'blockExplorerUrl'?: string | null; +} +export declare const WithdrawRequestStatusEnum: { + readonly PENDING: "Pending"; + readonly CANCELED: "Canceled"; + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly PROCCESSING: "Proccessing"; + readonly FAILED: "Failed"; + readonly SENT: "Sent"; + readonly ACCOUNT_DEBITED: "AccountDebited"; + readonly ACCOUNT_BALANCE_UNLOCKED: "AccountBalanceUnlocked"; + readonly COMPLETED: "Completed"; +}; +export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; +//# sourceMappingURL=withdraw-request.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request.d.ts.map b/dist/wallet/model/withdraw-request.d.ts.map new file mode 100644 index 0000000..0258a7d --- /dev/null +++ b/dist/wallet/model/withdraw-request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,yBAAyB,CAAC;IACpC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAW5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request.js b/dist/wallet/model/withdraw-request.js new file mode 100644 index 0000000..547370e --- /dev/null +++ b/dist/wallet/model/withdraw-request.js @@ -0,0 +1,29 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawRequestStatusEnum = void 0; +exports.WithdrawRequestStatusEnum = { + PENDING: 'Pending', + CANCELED: 'Canceled', + APPROVED: 'Approved', + REJECTED: 'Rejected', + PROCCESSING: 'Proccessing', + FAILED: 'Failed', + SENT: 'Sent', + ACCOUNT_DEBITED: 'AccountDebited', + ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', + COMPLETED: 'Completed' +}; +//# sourceMappingURL=withdraw-request.js.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-request.js.map b/dist/wallet/model/withdraw-request.js.map new file mode 100644 index 0000000..ee5d156 --- /dev/null +++ b/dist/wallet/model/withdraw-request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-request.js","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-request.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA2EU,QAAA,yBAAyB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,gBAAgB;IACjC,wBAAwB,EAAE,wBAAwB;IAClD,SAAS,EAAE,WAAW;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-response-body.d.ts b/dist/wallet/model/withdraw-response-body.d.ts new file mode 100644 index 0000000..f41449d --- /dev/null +++ b/dist/wallet/model/withdraw-response-body.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawResponseBody + */ +export interface WithdrawResponseBody { + /** + * Withdrawal request ID + * @type {number} + * @memberof WithdrawResponseBody + */ + 'id': number; +} +//# sourceMappingURL=withdraw-response-body.d.ts.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-response-body.d.ts.map b/dist/wallet/model/withdraw-response-body.d.ts.map new file mode 100644 index 0000000..6601631 --- /dev/null +++ b/dist/wallet/model/withdraw-response-body.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-response-body.d.ts","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-response-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB"} \ No newline at end of file diff --git a/dist/wallet/model/withdraw-response-body.js b/dist/wallet/model/withdraw-response-body.js new file mode 100644 index 0000000..819888a --- /dev/null +++ b/dist/wallet/model/withdraw-response-body.js @@ -0,0 +1,16 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=withdraw-response-body.js.map \ No newline at end of file diff --git a/dist/wallet/model/withdraw-response-body.js.map b/dist/wallet/model/withdraw-response-body.js.map new file mode 100644 index 0000000..0f9adcd --- /dev/null +++ b/dist/wallet/model/withdraw-response-body.js.map @@ -0,0 +1 @@ +{"version":3,"file":"withdraw-response-body.js","sourceRoot":"","sources":["../../../src/wallet/model/withdraw-response-body.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"} \ No newline at end of file diff --git a/dist/wallet/src/apis/AuthApi.d.ts b/dist/wallet/src/apis/AuthApi.d.ts deleted file mode 100644 index 8f6684e..0000000 --- a/dist/wallet/src/apis/AuthApi.d.ts +++ /dev/null @@ -1,206 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { AuthTelegramRequest, JwtResponse, LoginRequest, SignUpRequest, SimpleResponse } from '../models/index'; -export interface AuthenticateWithTelegramRequest { - authTelegramRequest: AuthTelegramRequest; -} -export interface GenerateJwtTokenRequest { - duration: GenerateJwtTokenDurationEnum; -} -export interface GetOtpRequest { - channel: GetOtpChannelEnum; -} -export interface LoginWithEmailAndPasswordRequest { - loginRequest: LoginRequest; -} -export interface SignupWithEmailAndPasswordRequest { - signUpRequest: SignUpRequest; -} -export interface VerifyUserEmailRequest { - token: string; -} -/** - * AuthApi - interface - * - * @export - * @interface AuthApiInterface - */ -export interface AuthApiInterface { - /** - * Authenticate with Telegram and get a JWT token. - * @summary Authenticate with Telegram - * @param {AuthTelegramRequest} authTelegramRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Generate a JWT token. - * @summary Generate a JWT token - * @param {7 | 15 | 30 | 90} duration Token duration in days - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Generate a JWT token. - * Generate a JWT token - */ - generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get OTP for the user. - * @summary Get OTP - * @param {'phone'} channel Channel to send OTP - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get OTP for the user. - * Get OTP - */ - getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Login with email and password and get a JWT token. - * @summary Login with email and password - * @param {LoginRequest} loginRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * signup with email and password and get a JWT token. - * @summary signup with email and password - * @param {SignUpRequest} signUpRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the email of the user. - * @summary Verify email - * @param {string} token Verification token - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface { - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Generate a JWT token. - * Generate a JWT token - */ - generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Generate a JWT token. - * Generate a JWT token - */ - generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get OTP for the user. - * Get OTP - */ - getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get OTP for the user. - * Get OTP - */ - getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const GenerateJwtTokenDurationEnum: { - readonly NUMBER_7: 7; - readonly NUMBER_15: 15; - readonly NUMBER_30: 30; - readonly NUMBER_90: 90; -}; -export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; -/** - * @export - */ -export declare const GetOtpChannelEnum: { - readonly PHONE: "phone"; -}; -export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; -//# sourceMappingURL=AuthApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/AuthApi.d.ts.map b/dist/wallet/src/apis/AuthApi.d.ts.map deleted file mode 100644 index 4bcaadf..0000000 --- a/dist/wallet/src/apis/AuthApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Au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BAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/AuthApi.js b/dist/wallet/src/apis/AuthApi.js deleted file mode 100644 index 946d71d..0000000 --- a/dist/wallet/src/apis/AuthApi.js +++ /dev/null @@ -1,226 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetOtpChannelEnum = exports.GenerateJwtTokenDurationEnum = exports.AuthApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class AuthApi extends runtime.BaseAPI { - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - async authenticateWithTelegramRaw(requestParameters, initOverrides) { - if (requestParameters['authTelegramRequest'] == null) { - throw new runtime.RequiredError('authTelegramRequest', 'Required parameter "authTelegramRequest" was null or undefined when calling authenticateWithTelegram().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/auth/telegram`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.AuthTelegramRequestToJSON)(requestParameters['authTelegramRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); - } - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - async authenticateWithTelegram(requestParameters, initOverrides) { - const response = await this.authenticateWithTelegramRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Generate a JWT token. - * Generate a JWT token - */ - async generateJwtTokenRaw(requestParameters, initOverrides) { - if (requestParameters['duration'] == null) { - throw new runtime.RequiredError('duration', 'Required parameter "duration" was null or undefined when calling generateJwtToken().'); - } - const queryParameters = {}; - if (requestParameters['duration'] != null) { - queryParameters['duration'] = requestParameters['duration']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/auth/token`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); - } - /** - * Generate a JWT token. - * Generate a JWT token - */ - async generateJwtToken(requestParameters, initOverrides) { - const response = await this.generateJwtTokenRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get OTP for the user. - * Get OTP - */ - async getOtpRaw(requestParameters, initOverrides) { - if (requestParameters['channel'] == null) { - throw new runtime.RequiredError('channel', 'Required parameter "channel" was null or undefined when calling getOtp().'); - } - const queryParameters = {}; - if (requestParameters['channel'] != null) { - queryParameters['channel'] = requestParameters['channel']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/auth/otp`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); - } - /** - * Get OTP for the user. - * Get OTP - */ - async getOtp(requestParameters, initOverrides) { - const response = await this.getOtpRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - async loginWithEmailAndPasswordRaw(requestParameters, initOverrides) { - if (requestParameters['loginRequest'] == null) { - throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling loginWithEmailAndPassword().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/auth/login`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LoginRequestToJSON)(requestParameters['loginRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); - } - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - async loginWithEmailAndPassword(requestParameters, initOverrides) { - const response = await this.loginWithEmailAndPasswordRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - async signupWithEmailAndPasswordRaw(requestParameters, initOverrides) { - if (requestParameters['signUpRequest'] == null) { - throw new runtime.RequiredError('signUpRequest', 'Required parameter "signUpRequest" was null or undefined when calling signupWithEmailAndPassword().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/auth/signup`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.SignUpRequestToJSON)(requestParameters['signUpRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); - } - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - async signupWithEmailAndPassword(requestParameters, initOverrides) { - const response = await this.signupWithEmailAndPasswordRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailRaw(requestParameters, initOverrides) { - if (requestParameters['token'] == null) { - throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyUserEmail().'); - } - const queryParameters = {}; - if (requestParameters['token'] != null) { - queryParameters['token'] = requestParameters['token']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/verify-email`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); - } - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmail(requestParameters, initOverrides) { - const response = await this.verifyUserEmailRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.AuthApi = AuthApi; -/** - * @export - */ -exports.GenerateJwtTokenDurationEnum = { - NUMBER_7: 7, - NUMBER_15: 15, - NUMBER_30: 30, - NUMBER_90: 90 -}; -/** - * @export - */ -exports.GetOtpChannelEnum = { - PHONE: 'phone' -}; -//# sourceMappingURL=AuthApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/AuthApi.js.map b/dist/wallet/src/apis/AuthApi.js.map deleted file mode 100644 index fd8f40c..0000000 --- a/dist/wallet/src/apis/AuthApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/AuthApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAStC,2CAayB;AAmIzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,2BAA2B,CAAC,iBAAkD,EAAE,aAA0D;QAC5I,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,IAAI,EAAE,CAAC;YACnD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,qBAAqB,EACrB,yGAAyG,CAC5G,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,iCAAyB,EAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;SAC5E,EAAE,aAA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alanceApi.d.ts b/dist/wallet/src/apis/BalanceApi.d.ts deleted file mode 100644 index 04a4a91..0000000 --- a/dist/wallet/src/apis/BalanceApi.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Balance, Symbol, WalletBalance } from '../models/index'; -export interface GetBalanceBySymbolRequest { - symbol: Symbol; -} -/** - * BalanceApi - interface - * - * @export - * @interface BalanceApiInterface - */ -export interface BalanceApiInterface { - /** - * Get the balance by a symbol. - * @summary Get balance - * @param {Symbol} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BalanceApiInterface - */ - getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the balance by a symbol. - * Get balance - */ - getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the balance of the wallet. - * @summary Get wallet balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BalanceApiInterface - */ - getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the balance of the wallet. - * Get wallet balance - */ - getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class BalanceApi extends runtime.BaseAPI implements BalanceApiInterface { - /** - * Get the balance by a symbol. - * Get balance - */ - getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the balance by a symbol. - * Get balance - */ - getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the balance of the wallet. - * Get wallet balance - */ - getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the balance of the wallet. - * Get wallet balance - */ - getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=BalanceApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/BalanceApi.d.ts.map b/dist/wallet/src/apis/BalanceApi.d.ts.map deleted file mode 100644 index bfd718a..0000000 --- a/dist/wallet/src/apis/BalanceApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BalanceApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/BalanceApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,aAAa,EACd,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAEvK;;;OAGG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/I;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;IAE7H;;;OAGG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAExG;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IA8B5K;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpJ;;;OAGG;IACG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAuBlI;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAK7G"} \ No newline at end of file diff --git a/dist/wallet/src/apis/BalanceApi.js b/dist/wallet/src/apis/BalanceApi.js deleted file mode 100644 index bc07404..0000000 --- a/dist/wallet/src/apis/BalanceApi.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BalanceApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class BalanceApi extends runtime.BaseAPI { - /** - * Get the balance by a symbol. - * Get balance - */ - async getBalanceBySymbolRaw(requestParameters, initOverrides) { - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling getBalanceBySymbol().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/balance/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BalanceFromJSON)(jsonValue)); - } - /** - * Get the balance by a symbol. - * Get balance - */ - async getBalanceBySymbol(requestParameters, initOverrides) { - const response = await this.getBalanceBySymbolRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get the balance of the wallet. - * Get wallet balance - */ - async getWalletBalanceRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/balance`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletBalanceFromJSON)(jsonValue)); - } - /** - * Get the balance of the wallet. - * Get wallet balance - */ - async getWalletBalance(initOverrides) { - const response = await this.getWalletBalanceRaw(initOverrides); - return await response.value(); - } -} -exports.BalanceApi = BalanceApi; -//# sourceMappingURL=BalanceApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/BalanceApi.js.map b/dist/wallet/src/apis/BalanceApi.js.map deleted file mode 100644 index 0f392de..0000000 --- a/dist/wallet/src/apis/BalanceApi.js.map +++ /dev/null @@ -1 +0,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AAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjFD,gCAiFC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/CoinsApi.d.ts b/dist/wallet/src/apis/CoinsApi.d.ts deleted file mode 100644 index e86c613..0000000 --- a/dist/wallet/src/apis/CoinsApi.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Coin, CoinResponse, Symbol } from '../models/index'; -export interface GetCoinDetailsRequest { - symbol: Symbol; -} -/** - * CoinsApi - interface - * - * @export - * @interface CoinsApiInterface - */ -export interface CoinsApiInterface { - /** - * Get the details of a coin. - * @summary Get coin - * @param {Symbol} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CoinsApiInterface - */ - getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a coin. - * Get coin - */ - getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the list of supported coins. - * @summary Get coins - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CoinsApiInterface - */ - getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the list of supported coins. - * Get coins - */ - getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class CoinsApi extends runtime.BaseAPI implements CoinsApiInterface { - /** - * Get the details of a coin. - * Get coin - */ - getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a coin. - * Get coin - */ - getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the list of supported coins. - * Get coins - */ - getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the list of supported coins. - * Get coins - */ - getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=CoinsApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/CoinsApi.d.ts.map b/dist/wallet/src/apis/CoinsApi.d.ts.map deleted file mode 100644 index da2eac8..0000000 --- a/dist/wallet/src/apis/CoinsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinsApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/CoinsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,IAAI,EACJ,YAAY,EACZ,MAAM,EACP,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAE5J;;;OAGG;IACH,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpI;;;;;;OAMG;IACH,oBAAoB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAE7H;;;OAGG;IACH,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAExG;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAO,CAAC,OAAQ,YAAW,iBAAiB;IAEtE;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAsBjK;;;OAGG;IACG,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzI;;;OAGG;IACG,oBAAoB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAelI;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK7G"} \ No newline at end of file diff --git a/dist/wallet/src/apis/CoinsApi.js b/dist/wallet/src/apis/CoinsApi.js deleted file mode 100644 index 1360bf5..0000000 --- a/dist/wallet/src/apis/CoinsApi.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CoinsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class CoinsApi extends runtime.BaseAPI { - /** - * Get the details of a coin. - * Get coin - */ - async getCoinDetailsRaw(requestParameters, initOverrides) { - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling getCoinDetails().'); - } - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/coins/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CoinFromJSON)(jsonValue)); - } - /** - * Get the details of a coin. - * Get coin - */ - async getCoinDetails(requestParameters, initOverrides) { - const response = await this.getCoinDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get the list of supported coins. - * Get coins - */ - async getSupportedCoinsRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/coins`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CoinResponseFromJSON)(jsonValue)); - } - /** - * Get the list of supported coins. - * Get coins - */ - async getSupportedCoins(initOverrides) { - const response = await this.getSupportedCoinsRaw(initOverrides); - return await response.value(); - } -} -exports.CoinsApi = CoinsApi; -//# sourceMappingURL=CoinsApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/CoinsApi.js.map b/dist/wallet/src/apis/CoinsApi.js.map deleted file mode 100644 index e2238d1..0000000 --- a/dist/wallet/src/apis/CoinsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinsApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/CoinsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AA8CzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,C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AAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,aAA0D;QAC9E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC;QAChE,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjED,4BAiEC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/DepositApi.d.ts b/dist/wallet/src/apis/DepositApi.d.ts deleted file mode 100644 index 39f6ce0..0000000 --- a/dist/wallet/src/apis/DepositApi.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { DepositResponse } from '../models/index'; -export interface DepositMoneyRequest { - network: string; - symbol: string; -} -/** - * DepositApi - interface - * - * @export - * @interface DepositApiInterface - */ -export interface DepositApiInterface { - /** - * Deposit money to the wallet. - * @summary Deposit money - * @param {string} network Network to deposit - * @param {string} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DepositApiInterface - */ - depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit money to the wallet. - * Deposit money - */ - depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class DepositApi extends runtime.BaseAPI implements DepositApiInterface { - /** - * Deposit money to the wallet. - * Deposit money - */ - depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Deposit money to the wallet. - * Deposit money - */ - depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=DepositApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/DepositApi.d.ts.map b/dist/wallet/src/apis/DepositApi.d.ts.map deleted file mode 100644 index 7bf935e..0000000 --- a/dist/wallet/src/apis/DepositApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/DepositApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;OAQG;IACH,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;IAEnK;;;OAGG;IACH,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAE9I;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IA6CxK;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;CAKnJ"} \ No newline at end of file diff --git a/dist/wallet/src/apis/DepositApi.js b/dist/wallet/src/apis/DepositApi.js deleted file mode 100644 index 52cf572..0000000 --- a/dist/wallet/src/apis/DepositApi.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DepositApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class DepositApi extends runtime.BaseAPI { - /** - * Deposit money to the wallet. - * Deposit money - */ - async depositMoneyRaw(requestParameters, initOverrides) { - if (requestParameters['network'] == null) { - throw new runtime.RequiredError('network', 'Required parameter "network" was null or undefined when calling depositMoney().'); - } - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling depositMoney().'); - } - const queryParameters = {}; - if (requestParameters['network'] != null) { - queryParameters['network'] = requestParameters['network']; - } - if (requestParameters['symbol'] != null) { - queryParameters['symbol'] = requestParameters['symbol']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/deposit`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DepositResponseFromJSON)(jsonValue)); - } - /** - * Deposit money to the wallet. - * Deposit money - */ - async depositMoney(requestParameters, initOverrides) { - const response = await this.depositMoneyRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.DepositApi = DepositApi; -//# sourceMappingURL=DepositApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/DepositApi.js.map b/dist/wallet/src/apis/DepositApi.js.map deleted file mode 100644 index 341661e..0000000 --- a/dist/wallet/src/apis/DepositApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/DepositApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAiCzB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,SAAS,EACT,iFAAiF,CACpF,CAAC;QACN,CAAC;QAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,QAAQ,EACR,gFAAgF,CACnF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,eAAe,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA5DD,gCA4DC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/HealthApi.d.ts b/dist/wallet/src/apis/HealthApi.d.ts deleted file mode 100644 index 61c6819..0000000 --- a/dist/wallet/src/apis/HealthApi.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { HealthStatus } from '../models/index'; -/** - * HealthApi - interface - * - * @export - * @interface HealthApiInterface - */ -export interface HealthApiInterface { - /** - * Check the health of the API. - * @summary Health check - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof HealthApiInterface - */ - checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Check the health of the API. - * Health check - */ - checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class HealthApi extends runtime.BaseAPI implements HealthApiInterface { - /** - * Check the health of the API. - * Health check - */ - checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Check the health of the API. - * Health check - */ - checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=HealthApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/HealthApi.d.ts.map b/dist/wallet/src/apis/HealthApi.d.ts.map deleted file mode 100644 index 35146d9..0000000 --- a/dist/wallet/src/apis/HealthApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HealthApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/HealthApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1H;;;OAGG;IACH,cAAc,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAErG;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAe/H;;;OAGG;IACG,cAAc,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK1G"} \ No newline at end of file diff --git a/dist/wallet/src/apis/HealthApi.js b/dist/wallet/src/apis/HealthApi.js deleted file mode 100644 index f81da6f..0000000 --- a/dist/wallet/src/apis/HealthApi.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HealthApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class HealthApi extends runtime.BaseAPI { - /** - * Check the health of the API. - * Health check - */ - async checkApiHealthRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/healthz`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HealthStatusFromJSON)(jsonValue)); - } - /** - * Check the health of the API. - * Health check - */ - async checkApiHealth(initOverrides) { - const response = await this.checkApiHealthRaw(initOverrides); - return await response.value(); - } -} -exports.HealthApi = HealthApi; -//# sourceMappingURL=HealthApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/HealthApi.js.map b/dist/wallet/src/apis/HealthApi.js.map deleted file mode 100644 index adf49c1..0000000 --- a/dist/wallet/src/apis/HealthApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HealthApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/HealthApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,aAA0D;QAC9E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,cAAc,CAAC,aAA0D;QAC3E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAC7D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,8BA8BC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/LoansApi.d.ts b/dist/wallet/src/apis/LoansApi.d.ts deleted file mode 100644 index c684df1..0000000 --- a/dist/wallet/src/apis/LoansApi.d.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Currency, LoanCreateRequest, LoanPlanResponse, LoanToValueOptions, LoansResponse, LoansResponseList, RepayLoanRequest } from '../models/index'; -export interface CreateLoanVaultRequest { - loanCreateRequest: LoanCreateRequest; -} -export interface EstimateLoanCollateralRequest { - planName: string; - loanToValueOption: LoanToValueOptions; - amount: string; - inputType: EstimateLoanCollateralInputTypeEnum; -} -export interface GetLoanDetailsRequest { - id: string; -} -export interface GetUserLoansRequest { - state?: GetUserLoansStateEnum; - planName?: string; -} -export interface RepayLoanOperationRequest { - repayLoanRequest: RepayLoanRequest; -} -/** - * LoansApi - interface - * - * @export - * @interface LoansApiInterface - */ -export interface LoansApiInterface { - /** - * Create a vault - * @summary Create vault - * @param {LoanCreateRequest} loanCreateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create a vault - * Create vault - */ - createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * @summary Get collateral and loan amount estimation - * @param {string} planName The name of the loan plan - * @param {LoanToValueOptions} loanToValueOption The desired loan to value option - * @param {string} amount Loan/Collateral amount - * @param {'loan' | 'collateral'} inputType The type of the input amount - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get a list of the available plan loans. - * @summary Get all plan loans - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the details of a loan. - * @summary Get loan - * @param {string} id Loan ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a loan. - * Get loan - */ - getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get a list of the user\'s loans. - * @summary Get user loans - * @param {'pending' | 'active' | 'repayment-ongoing' | 'settled' | 'creation-failed' | 'settlement-failed'} [state] loan state - * @param {string} [planName] loan plan name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the user\'s loans. - * Get user loans - */ - getUserLoans(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay a loan totally - * @summary Repay Loan - * @param {RepayLoanRequest} repayLoanRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay a loan totally - * Repay Loan - */ - repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class LoansApi extends runtime.BaseAPI implements LoansApiInterface { - /** - * Create a vault - * Create vault - */ - createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create a vault - * Create vault - */ - createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the details of a loan. - * Get loan - */ - getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a loan. - * Get loan - */ - getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get a list of the user\'s loans. - * Get user loans - */ - getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the user\'s loans. - * Get user loans - */ - getUserLoans(requestParameters?: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Repay a loan totally - * Repay Loan - */ - repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Repay a loan totally - * Repay Loan - */ - repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const EstimateLoanCollateralInputTypeEnum: { - readonly LOAN: "loan"; - readonly COLLATERAL: "collateral"; -}; -export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; -/** - * @export - */ -export declare const GetUserLoansStateEnum: { - readonly PENDING: "pending"; - readonly ACTIVE: "active"; - readonly REPAYMENT_ONGOING: "repayment-ongoing"; - readonly SETTLED: "settled"; - readonly CREATION_FAILED: "creation-failed"; - readonly SETTLEMENT_FAILED: "settlement-failed"; -}; -export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; -//# sourceMappingURL=LoansApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/LoansApi.d.ts.map b/dist/wallet/src/apis/LoansApi.d.ts.map deleted file mode 100644 index ce6b4b9..0000000 --- a/dist/wallet/src/apis/LoansApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/LoansApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAoBzB,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,mCAAmC,CAAC;CAClD;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK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AG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKvJ;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAiCzK;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKpJ;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAC/I;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/LoansApi.js b/dist/wallet/src/apis/LoansApi.js deleted file mode 100644 index eeef9db..0000000 --- a/dist/wallet/src/apis/LoansApi.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetUserLoansStateEnum = exports.EstimateLoanCollateralInputTypeEnum = exports.LoansApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class LoansApi extends runtime.BaseAPI { - /** - * Create a vault - * Create vault - */ - async createLoanVaultRaw(requestParameters, initOverrides) { - if (requestParameters['loanCreateRequest'] == null) { - throw new runtime.RequiredError('loanCreateRequest', 'Required parameter "loanCreateRequest" was null or undefined when calling createLoanVault().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/create`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.LoanCreateRequestToJSON)(requestParameters['loanCreateRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); - } - /** - * Create a vault - * Create vault - */ - async createLoanVault(requestParameters, initOverrides) { - const response = await this.createLoanVaultRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - async estimateLoanCollateralRaw(requestParameters, initOverrides) { - if (requestParameters['planName'] == null) { - throw new runtime.RequiredError('planName', 'Required parameter "planName" was null or undefined when calling estimateLoanCollateral().'); - } - if (requestParameters['loanToValueOption'] == null) { - throw new runtime.RequiredError('loanToValueOption', 'Required parameter "loanToValueOption" was null or undefined when calling estimateLoanCollateral().'); - } - if (requestParameters['amount'] == null) { - throw new runtime.RequiredError('amount', 'Required parameter "amount" was null or undefined when calling estimateLoanCollateral().'); - } - if (requestParameters['inputType'] == null) { - throw new runtime.RequiredError('inputType', 'Required parameter "inputType" was null or undefined when calling estimateLoanCollateral().'); - } - const queryParameters = {}; - if (requestParameters['planName'] != null) { - queryParameters['planName'] = requestParameters['planName']; - } - if (requestParameters['loanToValueOption'] != null) { - queryParameters['loanToValueOption'] = requestParameters['loanToValueOption']; - } - if (requestParameters['amount'] != null) { - queryParameters['amount'] = requestParameters['amount']; - } - if (requestParameters['inputType'] != null) { - queryParameters['inputType'] = requestParameters['inputType']; - } - const headerParameters = {}; - const response = await this.request({ - path: `/loans/estimate`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CurrencyFromJSON)(jsonValue)); - } - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - async estimateLoanCollateral(requestParameters, initOverrides) { - const response = await this.estimateLoanCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - async getAllLoanPlansRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - const response = await this.request({ - path: `/loans/plans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoanPlanResponseFromJSON)(jsonValue)); - } - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - async getAllLoanPlans(initOverrides) { - const response = await this.getAllLoanPlansRaw(initOverrides); - return await response.value(); - } - /** - * Get the details of a loan. - * Get loan - */ - async getLoanDetailsRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getLoanDetails().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); - } - /** - * Get the details of a loan. - * Get loan - */ - async getLoanDetails(requestParameters, initOverrides) { - const response = await this.getLoanDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get a list of the user\'s loans. - * Get user loans - */ - async getUserLoansRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['state'] != null) { - queryParameters['state'] = requestParameters['state']; - } - if (requestParameters['planName'] != null) { - queryParameters['planName'] = requestParameters['planName']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseListFromJSON)(jsonValue)); - } - /** - * Get a list of the user\'s loans. - * Get user loans - */ - async getUserLoans(requestParameters = {}, initOverrides) { - const response = await this.getUserLoansRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Repay a loan totally - * Repay Loan - */ - async repayLoanRaw(requestParameters, initOverrides) { - if (requestParameters['repayLoanRequest'] == null) { - throw new runtime.RequiredError('repayLoanRequest', 'Required parameter "repayLoanRequest" was null or undefined when calling repayLoan().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/repay`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.RepayLoanRequestToJSON)(requestParameters['repayLoanRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); - } - /** - * Repay a loan totally - * Repay Loan - */ - async repayLoan(requestParameters, initOverrides) { - const response = await this.repayLoanRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.LoansApi = LoansApi; -/** - * @export - */ -exports.EstimateLoanCollateralInputTypeEnum = { - LOAN: 'loan', - COLLATERAL: 'collateral' -}; -/** - * @export - */ -exports.GetUserLoansStateEnum = { - PENDING: 'pending', - ACTIVE: 'active', - REPAYMENT_ONGOING: 'repayment-ongoing', - SETTLED: 'settled', - CREATION_FAILED: 'creation-failed', - SETTLEMENT_FAILED: 'settlement-failed' -}; -//# sourceMappingURL=LoansApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/LoansApi.js.map b/dist/wallet/src/apis/LoansApi.js.map deleted file mode 100644 index 54c6ac7..0000000 --- a/dist/wallet/src/apis/LoansApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/LoansApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAWtC,2CAiByB;AAsIzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,IAAI,EAAE,CAAC;YACjD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,mBAAmB,EACnB,8FAA8F,CACjG,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL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PaymentApi.d.ts deleted file mode 100644 index ce70ed2..0000000 --- a/dist/wallet/src/apis/PaymentApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Payment, PaymentRequest } from '../models/index'; -export interface CreatePaymentRequest { - paymentRequest: PaymentRequest; -} -/** - * PaymentApi - interface - * - * @export - * @interface PaymentApiInterface - */ -export interface PaymentApiInterface { - /** - * Create a new payment. - * @summary Create a payment - * @param {PaymentRequest} paymentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PaymentApiInterface - */ - createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create a new payment. - * Create a payment - */ - createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class PaymentApi extends runtime.BaseAPI implements PaymentApiInterface { - /** - * Create a new payment. - * Create a payment - */ - createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Create a new payment. - * Create a payment - */ - createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=PaymentApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/PaymentApi.d.ts.map b/dist/wallet/src/apis/PaymentApi.d.ts.map deleted file mode 100644 index 00d0300..0000000 --- a/dist/wallet/src/apis/PaymentApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/PaymentApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,oBAAoB;IACjC,cAAc,EAAE,cAAc,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,gBAAgB,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7J;;;OAGG;IACH,aAAa,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAExI;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,gBAAgB,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAiClK;;;OAGG;IACG,aAAa,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;CAK7I"} \ No newline at end of file diff --git a/dist/wallet/src/apis/PaymentApi.js b/dist/wallet/src/apis/PaymentApi.js deleted file mode 100644 index 66505c2..0000000 --- a/dist/wallet/src/apis/PaymentApi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaymentApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class PaymentApi extends runtime.BaseAPI { - /** - * Create a new payment. - * Create a payment - */ - async createPaymentRaw(requestParameters, initOverrides) { - if (requestParameters['paymentRequest'] == null) { - throw new runtime.RequiredError('paymentRequest', 'Required parameter "paymentRequest" was null or undefined when calling createPayment().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/payments`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.PaymentRequestToJSON)(requestParameters['paymentRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaymentFromJSON)(jsonValue)); - } - /** - * Create a new payment. - * Create a payment - */ - async createPayment(requestParameters, initOverrides) { - const response = await this.createPaymentRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.PaymentApi = PaymentApi; -//# sourceMappingURL=PaymentApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/PaymentApi.js.map b/dist/wallet/src/apis/PaymentApi.js.map deleted file mode 100644 index 713f805..0000000 --- a/dist/wallet/src/apis/PaymentApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/PaymentApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AA+BzB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OA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AAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhDD,gCAgDC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/PointsApi.d.ts b/dist/wallet/src/apis/PointsApi.d.ts deleted file mode 100644 index fa87064..0000000 --- a/dist/wallet/src/apis/PointsApi.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { FriendPointsResponse } from '../models/index'; -/** - * PointsApi - interface - * - * @export - * @interface PointsApiInterface - */ -export interface PointsApiInterface { - /** - * Get friends points. - * @summary Get friends points. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PointsApiInterface - */ - getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get friends points. - * Get friends points. - */ - getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class PointsApi extends runtime.BaseAPI implements PointsApiInterface { - /** - * Get friends points. - * Get friends points. - */ - getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get friends points. - * Get friends points. - */ - getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=PointsApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/PointsApi.d.ts.map b/dist/wallet/src/apis/PointsApi.d.ts.map deleted file mode 100644 index ed65b76..0000000 --- a/dist/wallet/src/apis/PointsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PointsApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/PointsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAEpI;;;OAGG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAE/G;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAuBzI;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKpH"} \ No newline at end of file diff --git a/dist/wallet/src/apis/PointsApi.js b/dist/wallet/src/apis/PointsApi.js deleted file mode 100644 index ac0a4c5..0000000 --- a/dist/wallet/src/apis/PointsApi.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PointsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class PointsApi extends runtime.BaseAPI { - /** - * Get friends points. - * Get friends points. - */ - async getFriendsPointsRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/points/frineds`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FriendPointsResponseFromJSON)(jsonValue)); - } - /** - * Get friends points. - * Get friends points. - */ - async getFriendsPoints(initOverrides) { - const response = await this.getFriendsPointsRaw(initOverrides); - return await response.value(); - } -} -exports.PointsApi = PointsApi; -//# sourceMappingURL=PointsApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/PointsApi.js.map b/dist/wallet/src/apis/PointsApi.js.map deleted file mode 100644 index 3e53aaf..0000000 --- a/dist/wallet/src/apis/PointsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PointsApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/PointsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,aAA0D;QAChF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtCD,8BAsCC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/RedemptionsApi.d.ts b/dist/wallet/src/apis/RedemptionsApi.d.ts deleted file mode 100644 index 3f3394e..0000000 --- a/dist/wallet/src/apis/RedemptionsApi.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { AdminRedemptionUpdateRequest, Redemption, RedemptionRequest, RedemptionResponse } from '../models/index'; -export interface GetAllRedemptionsRequest { - state?: GetAllRedemptionsStateEnum; -} -export interface GetRedemptionDetailsRequest { - id: number; -} -export interface RedeemZarRequest { - redemptionRequest: RedemptionRequest; -} -export interface UpdateRedemptionStatusRequest { - id: string; - adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest; -} -/** - * RedemptionsApi - interface - * - * @export - * @interface RedemptionsApiInterface - */ -export interface RedemptionsApiInterface { - /** - * Get a list of all redemptions. - * @summary Get all redemptions - * @param {'pending' | 'approved' | 'completed' | 'rejected'} [state] Cursor for pagination - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of all redemptions. - * Get all redemptions - */ - getAllRedemptions(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the details of a redemption. - * @summary Get redemption - * @param {number} id Redemption ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a redemption. - * Get redemption - */ - getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Redeem zar - * @summary Redeem zar - * @param {RedemptionRequest} redemptionRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Redeem zar - * Redeem zar - */ - redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Update the status of a redemption. - * @summary Update redemption - * @param {string} id Redemption ID - * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Update the status of a redemption. - * Update redemption - */ - updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class RedemptionsApi extends runtime.BaseAPI implements RedemptionsApiInterface { - /** - * Get a list of all redemptions. - * Get all redemptions - */ - getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of all redemptions. - * Get all redemptions - */ - getAllRedemptions(requestParameters?: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the details of a redemption. - * Get redemption - */ - getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the details of a redemption. - * Get redemption - */ - getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Redeem zar - * Redeem zar - */ - redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Redeem zar - * Redeem zar - */ - redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Update the status of a redemption. - * Update redemption - */ - updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Update the status of a redemption. - * Update redemption - */ - updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * @export - */ -export declare const GetAllRedemptionsStateEnum: { - readonly PENDING: "pending"; - readonly APPROVED: "approved"; - readonly COMPLETED: "completed"; - readonly REJECTED: "rejected"; -}; -export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; -//# sourceMappingURL=RedemptionsApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/RedemptionsApi.d.ts.map b/dist/wallet/src/apis/RedemptionsApi.d.ts.map deleted file mode 100644 index f298d3f..0000000 --- a/dist/wallet/src/apis/RedemptionsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionsApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/RedemptionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,4BAA4B,EAC5B,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAczB,MAAM,WAAW,wBAAwB;IACrC,KAAK,CAAC,EAAE,0BAA0B,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC7B,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B,EAAE,4BAA4B,CAAC;CAC9D;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;;;;OAOG;IACH,oBAAoB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEhL;;;OAGG;IACH,iBAAiB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAExJ;;;;;;;OAOG;IACH,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,C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C,kBAAkB,CAAC;IAKlK;;;OAGG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IA8BnL;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAK3J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAiC7J;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAKrI;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAwCvL;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAKlK;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/RedemptionsApi.js b/dist/wallet/src/apis/RedemptionsApi.js deleted file mode 100644 index 0f19456..0000000 --- a/dist/wallet/src/apis/RedemptionsApi.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetAllRedemptionsStateEnum = exports.RedemptionsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class RedemptionsApi extends runtime.BaseAPI { - /** - * Get a list of all redemptions. - * Get all redemptions - */ - async getAllRedemptionsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['state'] != null) { - queryParameters['state'] = requestParameters['state']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionResponseFromJSON)(jsonValue)); - } - /** - * Get a list of all redemptions. - * Get all redemptions - */ - async getAllRedemptions(requestParameters = {}, initOverrides) { - const response = await this.getAllRedemptionsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get the details of a redemption. - * Get redemption - */ - async getRedemptionDetailsRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRedemptionDetails().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); - } - /** - * Get the details of a redemption. - * Get redemption - */ - async getRedemptionDetails(requestParameters, initOverrides) { - const response = await this.getRedemptionDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Redeem zar - * Redeem zar - */ - async redeemZarRaw(requestParameters, initOverrides) { - if (requestParameters['redemptionRequest'] == null) { - throw new runtime.RequiredError('redemptionRequest', 'Required parameter "redemptionRequest" was null or undefined when calling redeemZar().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/redemptions`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.RedemptionRequestToJSON)(requestParameters['redemptionRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); - } - /** - * Redeem zar - * Redeem zar - */ - async redeemZar(requestParameters, initOverrides) { - const response = await this.redeemZarRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Update the status of a redemption. - * Update redemption - */ - async updateRedemptionStatusRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRedemptionStatus().'); - } - if (requestParameters['adminRedemptionUpdateRequest'] == null) { - throw new runtime.RequiredError('adminRedemptionUpdateRequest', 'Required parameter "adminRedemptionUpdateRequest" was null or undefined when calling updateRedemptionStatus().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.AdminRedemptionUpdateRequestToJSON)(requestParameters['adminRedemptionUpdateRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); - } - /** - * Update the status of a redemption. - * Update redemption - */ - async updateRedemptionStatus(requestParameters, initOverrides) { - const response = await this.updateRedemptionStatusRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.RedemptionsApi = RedemptionsApi; -/** - * @export - */ -exports.GetAllRedemptionsStateEnum = { - PENDING: 'pending', - APPROVED: 'approved', - COMPLETED: 'completed', - REJECTED: 'rejected' -}; -//# sourceMappingURL=RedemptionsApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/RedemptionsApi.js.map b/dist/wallet/src/apis/RedemptionsApi.js.map deleted file mode 100644 index 996bd44..0000000 --- a/dist/wallet/src/apis/RedemptionsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionsApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/RedemptionsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAQtC,2CAWyB;AA6FzB;;GAEG;AACH,MAAa,cAAe,SAAQ,OAAO,CAAC,OAAO;IAE/C;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA2C,EAAE,aAA0D;QAC9H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC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QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACxF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxLD,wCAwLC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/ReferralsApi.d.ts b/dist/wallet/src/apis/ReferralsApi.d.ts deleted file mode 100644 index 1bd946a..0000000 --- a/dist/wallet/src/apis/ReferralsApi.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { Referral, ReferralResponse } from '../models/index'; -export interface GetReferralByIdRequest { - referralId: number; -} -export interface GetReferralsRequest { - name?: string; -} -export interface RedeemReferralRequest { - referralId: number; -} -export interface ValidateReferralRequest { - referralId: number; -} -/** - * ReferralsApi - interface - * - * @export - * @interface ReferralsApiInterface - */ -export interface ReferralsApiInterface { - /** - * Get a referral by its ID. - * @summary Get referral by ID - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a referral by its ID. - * Get referral by ID - */ - getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get referrals by user ID or name. - * @summary Get referrals - * @param {string} [name] Referral name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get referrals by user ID or name. - * Get referrals - */ - getReferrals(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Redeem a referral for a user. - * @summary Redeem a referral - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Redeem a referral for a user. - * Redeem a referral - */ - redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Validate a referral to check if it can be redeemed. - * @summary Validate a referral - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class ReferralsApi extends runtime.BaseAPI implements ReferralsApiInterface { - /** - * Get a referral by its ID. - * Get referral by ID - */ - getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a referral by its ID. - * Get referral by ID - */ - getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get referrals by user ID or name. - * Get referrals - */ - getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get referrals by user ID or name. - * Get referrals - */ - getReferrals(requestParameters?: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Redeem a referral for a user. - * Redeem a referral - */ - redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Redeem a referral for a user. - * Redeem a referral - */ - redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=ReferralsApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/ReferralsApi.d.ts.map b/dist/wallet/src/apis/ReferralsApi.d.ts.map deleted file mode 100644 index ddaba98..0000000 --- a/dist/wallet/src/apis/ReferralsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferralsApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/ReferralsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,sBAAsB;IACnC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;OAOG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG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OAGG;IACG,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAIhJ"} \ No newline at end of file diff --git a/dist/wallet/src/apis/ReferralsApi.js b/dist/wallet/src/apis/ReferralsApi.js deleted file mode 100644 index c3382a3..0000000 --- a/dist/wallet/src/apis/ReferralsApi.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReferralsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class ReferralsApi extends runtime.BaseAPI { - /** - * Get a referral by its ID. - * Get referral by ID - */ - async getReferralByIdRaw(requestParameters, initOverrides) { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling getReferralById().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReferralFromJSON)(jsonValue)); - } - /** - * Get a referral by its ID. - * Get referral by ID - */ - async getReferralById(requestParameters, initOverrides) { - const response = await this.getReferralByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get referrals by user ID or name. - * Get referrals - */ - async getReferralsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['name'] != null) { - queryParameters['name'] = requestParameters['name']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReferralResponseFromJSON)(jsonValue)); - } - /** - * Get referrals by user ID or name. - * Get referrals - */ - async getReferrals(requestParameters = {}, initOverrides) { - const response = await this.getReferralsRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Redeem a referral for a user. - * Redeem a referral - */ - async redeemReferralRaw(requestParameters, initOverrides) { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling redeemReferral().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}/redeem`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - } - /** - * Redeem a referral for a user. - * Redeem a referral - */ - async redeemReferral(requestParameters, initOverrides) { - await this.redeemReferralRaw(requestParameters, initOverrides); - } - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - async validateReferralRaw(requestParameters, initOverrides) { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling validateReferral().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}/validate`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - } - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - async validateReferral(requestParameters, initOverrides) { - await this.validateReferralRaw(requestParameters, initOverrides); - } -} -exports.ReferralsApi = ReferralsApi; -//# sourceMappingURL=ReferralsApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/ReferralsApi.js.map b/dist/wallet/src/apis/ReferralsApi.js.map deleted file mode 100644 index 608d405..0000000 --- a/dist/wallet/src/apis/ReferralsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferralsApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/ReferralsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA2FzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,IAAI,iBAAiB,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,CAAC;YAC1C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,YAAY,EACZ,uFAAuF,CAC1F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,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E,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,kCAAkC,CAAC,OAAO,CAAC,IAAI,YAAY,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAClI,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,iBAA0C,EAAE,aAA0D;QACzH,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IACrE,CAAC;CAEJ;AAzKD,oCAyKC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/SwapApi.d.ts b/dist/wallet/src/apis/SwapApi.d.ts deleted file mode 100644 index a4c9813..0000000 --- a/dist/wallet/src/apis/SwapApi.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { SwapRequest, SwapResponse } from '../models/index'; -export interface SwapCoinsRequest { - swapRequest: SwapRequest; -} -/** - * SwapApi - interface - * - * @export - * @interface SwapApiInterface - */ -export interface SwapApiInterface { - /** - * Swap coins in the wallet. - * @summary Swap coins - * @param {SwapRequest} swapRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SwapApiInterface - */ - swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Swap coins in the wallet. - * Swap coins - */ - swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class SwapApi extends runtime.BaseAPI implements SwapApiInterface { - /** - * Swap coins in the wallet. - * Swap coins - */ - swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Swap coins in the wallet. - * Swap coins - */ - swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=SwapApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/SwapApi.d.ts.map b/dist/wallet/src/apis/SwapApi.d.ts.map deleted file mode 100644 index d0bf5d4..0000000 --- a/dist/wallet/src/apis/SwapApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/SwapApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACb,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1J;;;OAGG;IACH,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAErI;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAiC/J;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK1I"} \ No newline at end of file diff --git a/dist/wallet/src/apis/SwapApi.js b/dist/wallet/src/apis/SwapApi.js deleted file mode 100644 index 2eaa1c8..0000000 --- a/dist/wallet/src/apis/SwapApi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwapApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class SwapApi extends runtime.BaseAPI { - /** - * Swap coins in the wallet. - * Swap coins - */ - async swapCoinsRaw(requestParameters, initOverrides) { - if (requestParameters['swapRequest'] == null) { - throw new runtime.RequiredError('swapRequest', 'Required parameter "swapRequest" was null or undefined when calling swapCoins().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/swap`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.SwapRequestToJSON)(requestParameters['swapRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SwapResponseFromJSON)(jsonValue)); - } - /** - * Swap coins in the wallet. - * Swap coins - */ - async swapCoins(requestParameters, initOverrides) { - const response = await this.swapCoinsRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.SwapApi = SwapApi; -//# sourceMappingURL=SwapApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/SwapApi.js.map b/dist/wallet/src/apis/SwapApi.js.map deleted file mode 100644 index 58bce69..0000000 --- a/dist/wallet/src/apis/SwapApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/SwapApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAmC,EAAE,aAA0D;QAC9G,IAAI,iBAAiB,CAAC,aAAa,CAAC,IAAI,IAAI,EAAE,CAAC;YAC3C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,aAAa,EACb,kFAAkF,CACrF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,yBAAiB,EAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;SAC5D,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,iBAAmC,EAAE,aAA0D;QAC3G,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhDD,0BAgDC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/TasksApi.d.ts b/dist/wallet/src/apis/TasksApi.d.ts deleted file mode 100644 index 7fb27c1..0000000 --- a/dist/wallet/src/apis/TasksApi.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { TaskResponse } from '../models/index'; -/** - * TasksApi - interface - * - * @export - * @interface TasksApiInterface - */ -export interface TasksApiInterface { - /** - * Get the list of tasks. - * @summary Get tasks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TasksApiInterface - */ - getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the list of tasks. - * Get tasks - */ - getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class TasksApi extends runtime.BaseAPI implements TasksApiInterface { - /** - * Get the list of tasks. - * Get tasks - */ - getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the list of tasks. - * Get tasks - */ - getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=TasksApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/TasksApi.d.ts.map b/dist/wallet/src/apis/TasksApi.d.ts.map deleted file mode 100644 index 22c21f5..0000000 --- a/dist/wallet/src/apis/TasksApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TasksApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/TasksApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;OAMG;IACH,WAAW,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAEpH;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAE/F;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAO,CAAC,OAAQ,YAAW,iBAAiB;IAEtE;;;OAGG;IACG,WAAW,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAuBzH;;;OAGG;IACG,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAKpG"} \ No newline at end of file diff --git a/dist/wallet/src/apis/TasksApi.js b/dist/wallet/src/apis/TasksApi.js deleted file mode 100644 index f950fa5..0000000 --- a/dist/wallet/src/apis/TasksApi.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TasksApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class TasksApi extends runtime.BaseAPI { - /** - * Get the list of tasks. - * Get tasks - */ - async getTasksRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/tasks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TaskResponseFromJSON)(jsonValue)); - } - /** - * Get the list of tasks. - * Get tasks - */ - async getTasks(initOverrides) { - const response = await this.getTasksRaw(initOverrides); - return await response.value(); - } -} -exports.TasksApi = TasksApi; -//# sourceMappingURL=TasksApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/TasksApi.js.map b/dist/wallet/src/apis/TasksApi.js.map deleted file mode 100644 index 3fce9eb..0000000 --- a/dist/wallet/src/apis/TasksApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TasksApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/TasksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,aAA0D;QACxE,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,aAA0D;QACrE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACvD,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtCD,4BAsCC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/TransactionsApi.d.ts b/dist/wallet/src/apis/TransactionsApi.d.ts deleted file mode 100644 index 6456a0e..0000000 --- a/dist/wallet/src/apis/TransactionsApi.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { TransactionResponse } from '../models/index'; -export interface GetUserTransactionsRequest { - cursor?: number; - limit?: number; -} -/** - * TransactionsApi - interface - * - * @export - * @interface TransactionsApiInterface - */ -export interface TransactionsApiInterface { - /** - * Get a list of the recent transactions of the user. - * @summary Get user transactions - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of transactions returned (default is 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TransactionsApiInterface - */ - getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - getUserTransactions(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class TransactionsApi extends runtime.BaseAPI implements TransactionsApiInterface { - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - getUserTransactions(requestParameters?: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=TransactionsApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/TransactionsApi.d.ts.map b/dist/wallet/src/apis/TransactionsApi.d.ts.map deleted file mode 100644 index ca1ea2b..0000000 --- a/dist/wallet/src/apis/TransactionsApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionsApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/TransactionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,0BAA0B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;OAQG;IACH,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAErL;;;OAGG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAEhK;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,OAAQ,YAAW,wBAAwB;IAEpF;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IA+B1L;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,GAAE,0BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAK1K"} \ No newline at end of file diff --git a/dist/wallet/src/apis/TransactionsApi.js b/dist/wallet/src/apis/TransactionsApi.js deleted file mode 100644 index e18e8e5..0000000 --- a/dist/wallet/src/apis/TransactionsApi.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransactionsApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class TransactionsApi extends runtime.BaseAPI { - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - async getUserTransactionsRaw(requestParameters, initOverrides) { - const queryParameters = {}; - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/transactions`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionResponseFromJSON)(jsonValue)); - } - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - async getUserTransactions(requestParameters = {}, initOverrides) { - const response = await this.getUserTransactionsRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.TransactionsApi = TransactionsApi; -//# sourceMappingURL=TransactionsApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/TransactionsApi.js.map b/dist/wallet/src/apis/TransactionsApi.js.map deleted file mode 100644 index 254d89b..0000000 --- a/dist/wallet/src/apis/TransactionsApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionsApi.js","s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AC,IAAA,mCAA2B,EAAC,SAAS,CAAC,CAAC,CAAC;IACxG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,oBAAgD,EAAE,EAAE,aAA0D;QACpI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,0CA8CC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/UserApi.d.ts b/dist/wallet/src/apis/UserApi.d.ts deleted file mode 100644 index dd6ca73..0000000 --- a/dist/wallet/src/apis/UserApi.d.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { CreateChildUserRequest, EmailOtpSubmitRequest, KycConfirmRequest, KycRequest, KycResponse, PhoneOtpSubmitRequest, ProfileResponse, SimpleResponse, UpdateEmailRequest, UpdatePhoneRequest, User } from '../models/index'; -export interface ConfirmKycRequest { - kycConfirmRequest: KycConfirmRequest; -} -export interface ConfirmPhoneNumberRequest { - phoneOtpSubmitRequest: PhoneOtpSubmitRequest; -} -export interface CreateChildUserOperationRequest { - createChildUserRequest: CreateChildUserRequest; -} -export interface SubmitEmailConfirmationOtpRequest { - emailOtpSubmitRequest: EmailOtpSubmitRequest; -} -export interface SubmitKycRequest { - kycRequest: KycRequest; -} -export interface VerifyPhoneNumberRequest { - updatePhoneRequest: UpdatePhoneRequest; -} -export interface VerifyUserEmailAddressRequest { - updateEmailRequest: UpdateEmailRequest; -} -/** - * UserApi - interface - * - * @export - * @interface UserApiInterface - */ -export interface UserApiInterface { - /** - * Confirm KYC for the user. - * @summary Confirm KYC - * @param {KycConfirmRequest} kycConfirmRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Confirm KYC for the user. - * Confirm KYC - */ - confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Confirm the phone number of the user. - * @summary Confirm phone number - * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * create a child user - * @summary create a child user - * @param {CreateChildUserRequest} createChildUserRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * create a child user - * create a child user - */ - createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the profile of the user. - * @summary Get profile - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the profile of the user. - * Get profile - */ - getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Submit email confirmation OTP for the user. - * @summary Submit email confirmation OTP - * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Submit KYC for the user. - * @summary Submit KYC - * @param {KycRequest} kycRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Submit KYC for the user. - * Submit KYC - */ - submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the phone number of the user. - * @summary Verify phone number - * @param {UpdatePhoneRequest} updatePhoneRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the phone number of the user. - * Verify phone number - */ - verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the email of the user. - * @summary Verify email - * @param {UpdateEmailRequest} updateEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class UserApi extends runtime.BaseAPI implements UserApiInterface { - /** - * Confirm KYC for the user. - * Confirm KYC - */ - confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Confirm KYC for the user. - * Confirm KYC - */ - confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * create a child user - * create a child user - */ - createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * create a child user - * create a child user - */ - createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the profile of the user. - * Get profile - */ - getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the profile of the user. - * Get profile - */ - getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Submit KYC for the user. - * Submit KYC - */ - submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Submit KYC for the user. - * Submit KYC - */ - submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the phone number of the user. - * Verify phone number - */ - verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the phone number of the user. - * Verify phone number - */ - verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=UserApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/UserApi.d.ts.map b/dist/wallet/src/apis/UserApi.d.ts.map deleted file mode 100644 index 9995710..0000000 --- a/dist/wallet/src/apis/UserApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/UserApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,IAAI,EAEL,MAAM,iBAAiB,CAAC;AA4BzB,MAAM,WAAW,iBAAiB;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,yBAAyB;IACtC,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,MAAM,WAAW,+BAA+B;IAC5C,sBAAsB,EAAE,sBAAsB,CAAC;CAClD;AAED,MAAM,WAAW,iCAAiC;IAC9C,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,UAAU,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CAC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,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/I;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAiC3L;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;CAKtK"} \ No newline at end of file diff --git a/dist/wallet/src/apis/UserApi.js b/dist/wallet/src/apis/UserApi.js deleted file mode 100644 index 387b02f..0000000 --- a/dist/wallet/src/apis/UserApi.js +++ /dev/null @@ -1,299 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class UserApi extends runtime.BaseAPI { - /** - * Confirm KYC for the user. - * Confirm KYC - */ - async confirmKycRaw(requestParameters, initOverrides) { - if (requestParameters['kycConfirmRequest'] == null) { - throw new runtime.RequiredError('kycConfirmRequest', 'Required parameter "kycConfirmRequest" was null or undefined when calling confirmKyc().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/kyc/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.KycConfirmRequestToJSON)(requestParameters['kycConfirmRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); - } - /** - * Confirm KYC for the user. - * Confirm KYC - */ - async confirmKyc(requestParameters, initOverrides) { - const response = await this.confirmKycRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - async confirmPhoneNumberRaw(requestParameters, initOverrides) { - if (requestParameters['phoneOtpSubmitRequest'] == null) { - throw new runtime.RequiredError('phoneOtpSubmitRequest', 'Required parameter "phoneOtpSubmitRequest" was null or undefined when calling confirmPhoneNumber().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/phone/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.PhoneOtpSubmitRequestToJSON)(requestParameters['phoneOtpSubmitRequest']), - }, initOverrides); - return new runtime.VoidApiResponse(response); - } - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - async confirmPhoneNumber(requestParameters, initOverrides) { - await this.confirmPhoneNumberRaw(requestParameters, initOverrides); - } - /** - * create a child user - * create a child user - */ - async createChildUserRaw(requestParameters, initOverrides) { - if (requestParameters['createChildUserRequest'] == null) { - throw new runtime.RequiredError('createChildUserRequest', 'Required parameter "createChildUserRequest" was null or undefined when calling createChildUser().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/children`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.CreateChildUserRequestToJSON)(requestParameters['createChildUserRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserFromJSON)(jsonValue)); - } - /** - * create a child user - * create a child user - */ - async createChildUser(requestParameters, initOverrides) { - const response = await this.createChildUserRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Get the profile of the user. - * Get profile - */ - async getUserProfileRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/profile`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProfileResponseFromJSON)(jsonValue)); - } - /** - * Get the profile of the user. - * Get profile - */ - async getUserProfile(initOverrides) { - const response = await this.getUserProfileRaw(initOverrides); - return await response.value(); - } - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - async submitEmailConfirmationOtpRaw(requestParameters, initOverrides) { - if (requestParameters['emailOtpSubmitRequest'] == null) { - throw new runtime.RequiredError('emailOtpSubmitRequest', 'Required parameter "emailOtpSubmitRequest" was null or undefined when calling submitEmailConfirmationOtp().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/email/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.EmailOtpSubmitRequestToJSON)(requestParameters['emailOtpSubmitRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); - } - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - async submitEmailConfirmationOtp(requestParameters, initOverrides) { - const response = await this.submitEmailConfirmationOtpRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Submit KYC for the user. - * Submit KYC - */ - async submitKycRaw(requestParameters, initOverrides) { - if (requestParameters['kycRequest'] == null) { - throw new runtime.RequiredError('kycRequest', 'Required parameter "kycRequest" was null or undefined when calling submitKyc().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/kyc`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.KycRequestToJSON)(requestParameters['kycRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.KycResponseFromJSON)(jsonValue)); - } - /** - * Submit KYC for the user. - * Submit KYC - */ - async submitKyc(requestParameters, initOverrides) { - const response = await this.submitKycRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Verify the phone number of the user. - * Verify phone number - */ - async verifyPhoneNumberRaw(requestParameters, initOverrides) { - if (requestParameters['updatePhoneRequest'] == null) { - throw new runtime.RequiredError('updatePhoneRequest', 'Required parameter "updatePhoneRequest" was null or undefined when calling verifyPhoneNumber().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/phone`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.UpdatePhoneRequestToJSON)(requestParameters['updatePhoneRequest']), - }, initOverrides); - return new runtime.VoidApiResponse(response); - } - /** - * Verify the phone number of the user. - * Verify phone number - */ - async verifyPhoneNumber(requestParameters, initOverrides) { - await this.verifyPhoneNumberRaw(requestParameters, initOverrides); - } - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailAddressRaw(requestParameters, initOverrides) { - if (requestParameters['updateEmailRequest'] == null) { - throw new runtime.RequiredError('updateEmailRequest', 'Required parameter "updateEmailRequest" was null or undefined when calling verifyUserEmailAddress().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/email`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.UpdateEmailRequestToJSON)(requestParameters['updateEmailRequest']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); - } - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailAddress(requestParameters, initOverrides) { - const response = await this.verifyUserEmailAddressRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.UserApi = UserApi; -//# sourceMappingURL=UserApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/UserApi.js.map b/dist/wallet/src/apis/UserApi.js.map deleted file mode 100644 index 7569436..0000000 --- a/dist/wallet/src/apis/UserApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/UserApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAetC,2CAyByB;AAsKzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAoC,EAAE,aAA0D;QAChH,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,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AEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,gCAAwB,EAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;SAC1E,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,8BAAsB,EAAC,SAAS,CAAC,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAAgD,EAAE,aAA0D;QACrI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACxF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtWD,0BAsWC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/WithdrawApi.d.ts b/dist/wallet/src/apis/WithdrawApi.d.ts deleted file mode 100644 index 46df326..0000000 --- a/dist/wallet/src/apis/WithdrawApi.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import * as runtime from '../runtime'; -import type { WithdrawRequest, WithdrawRequestBody, WithdrawRequestPreview, WithdrawRequestResponse, WithdrawResponseBody } from '../models/index'; -export interface GetWithdrawalStatusRequest { - id: number; -} -export interface PreviewWithdrawalRequest { - withdrawRequestBody: WithdrawRequestBody; -} -export interface RequestWithdrawalRequest { - withdrawRequestBody: WithdrawRequestBody; -} -/** - * WithdrawApi - interface - * - * @export - * @interface WithdrawApiInterface - */ -export interface WithdrawApiInterface { - /** - * Get user withdraw requests - * @summary Get user withdraw requests - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user withdraw requests - * Get user withdraw requests - */ - getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the status of a withdrawal request. - * @summary Get withdrawal status - * @param {number} id Withdrawal request ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Request a withdrawal from the wallet. - * @summary Withdraw request - * @param {WithdrawRequestBody} withdrawRequestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Request a withdrawal from the wallet. - * @summary Withdraw request - * @param {WithdrawRequestBody} withdrawRequestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -/** - * - */ -export declare class WithdrawApi extends runtime.BaseAPI implements WithdrawApiInterface { - /** - * Get user withdraw requests - * Get user withdraw requests - */ - getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get user withdraw requests - * Get user withdraw requests - */ - getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; -} -//# sourceMappingURL=WithdrawApi.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/WithdrawApi.d.ts.map b/dist/wallet/src/apis/WithdrawApi.d.ts.map deleted file mode 100644 index 2dfae20..0000000 --- a/dist/wallet/src/apis/WithdrawApi.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawApi.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/WithdrawApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;OAMG;IACH,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAE9I;;;OAGG;IACH,uBAAuB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEtH;;;;;;;OAOG;IACH,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAA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AE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IA8BtL;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAK9J;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAiCzL;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKjK;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAiCvL;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKlK"} \ No newline at end of file diff --git a/dist/wallet/src/apis/WithdrawApi.js b/dist/wallet/src/apis/WithdrawApi.js deleted file mode 100644 index 18f14ee..0000000 --- a/dist/wallet/src/apis/WithdrawApi.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WithdrawApi = void 0; -const tslib_1 = require("tslib"); -const runtime = tslib_1.__importStar(require("../runtime")); -const index_1 = require("../models/index"); -/** - * - */ -class WithdrawApi extends runtime.BaseAPI { - /** - * Get user withdraw requests - * Get user withdraw requests - */ - async getUserWithdrawRequestsRaw(initOverrides) { - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestResponseFromJSON)(jsonValue)); - } - /** - * Get user withdraw requests - * Get user withdraw requests - */ - async getUserWithdrawRequests(initOverrides) { - const response = await this.getUserWithdrawRequestsRaw(initOverrides); - return await response.value(); - } - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - async getWithdrawalStatusRaw(requestParameters, initOverrides) { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getWithdrawalStatus().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestFromJSON)(jsonValue)); - } - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - async getWithdrawalStatus(requestParameters, initOverrides) { - const response = await this.getWithdrawalStatusRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async previewWithdrawalRaw(requestParameters, initOverrides) { - if (requestParameters['withdrawRequestBody'] == null) { - throw new runtime.RequiredError('withdrawRequestBody', 'Required parameter "withdrawRequestBody" was null or undefined when calling previewWithdrawal().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/preview`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.WithdrawRequestBodyToJSON)(requestParameters['withdrawRequestBody']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestPreviewFromJSON)(jsonValue)); - } - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async previewWithdrawal(requestParameters, initOverrides) { - const response = await this.previewWithdrawalRaw(requestParameters, initOverrides); - return await response.value(); - } - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async requestWithdrawalRaw(requestParameters, initOverrides) { - if (requestParameters['withdrawRequestBody'] == null) { - throw new runtime.RequiredError('withdrawRequestBody', 'Required parameter "withdrawRequestBody" was null or undefined when calling requestWithdrawal().'); - } - const queryParameters = {}; - const headerParameters = {}; - headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/request`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: (0, index_1.WithdrawRequestBodyToJSON)(requestParameters['withdrawRequestBody']), - }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawResponseBodyFromJSON)(jsonValue)); - } - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async requestWithdrawal(requestParameters, initOverrides) { - const response = await this.requestWithdrawalRaw(requestParameters, initOverrides); - return await response.value(); - } -} -exports.WithdrawApi = WithdrawApi; -//# sourceMappingURL=WithdrawApi.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/WithdrawApi.js.map b/dist/wallet/src/apis/WithdrawApi.js.map deleted file mode 100644 index 13e11ba..0000000 --- a/dist/wallet/src/apis/WithdrawApi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawApi.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/WithdrawApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAStC,2CAayB;AAsFzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA0D;QACvF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EA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e;YACtB,IAAI,EAAE,IAAA,iCAAyB,EAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;SAC5E,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,iBAA2C,EAAE,aAA0D;QAC3H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACnF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA7KD,kCA6KC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/index.d.ts b/dist/wallet/src/apis/index.d.ts deleted file mode 100644 index 750fad5..0000000 --- a/dist/wallet/src/apis/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export * as AuthApi from "./AuthApi"; -export * as BalanceApi from "./BalanceApi"; -export * as CoinsApi from "./CoinsApi"; -export * as DepositApi from "./DepositApi"; -export * as HealthApi from "./HealthApi"; -export * as LoansApi from "./LoansApi"; -export * as PaymentApi from "./PaymentApi"; -export * as PointsApi from "./PointsApi"; -export * as RedemptionsApi from "./RedemptionsApi"; -export * as ReferralsApi from "./ReferralsApi"; -export * as SwapApi from "./SwapApi"; -export * as TasksApi from "./TasksApi"; -export * as TransactionsApi from "./TransactionsApi"; -export * as UserApi from "./UserApi"; -export * as WithdrawApi from "./WithdrawApi"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/apis/index.d.ts.map b/dist/wallet/src/apis/index.d.ts.map deleted file mode 100644 index 6cee2f4..0000000 --- a/dist/wallet/src/apis/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/apis/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/apis/index.js b/dist/wallet/src/apis/index.js deleted file mode 100644 index 83df74d..0000000 --- a/dist/wallet/src/apis/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WithdrawApi = exports.UserApi = exports.TransactionsApi = exports.TasksApi = exports.SwapApi = exports.ReferralsApi = exports.RedemptionsApi = exports.PointsApi = exports.PaymentApi = exports.LoansApi = exports.HealthApi = exports.DepositApi = exports.CoinsApi = exports.BalanceApi = exports.AuthApi = void 0; -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -exports.AuthApi = tslib_1.__importStar(require("./AuthApi")); -exports.BalanceApi = tslib_1.__importStar(require("./BalanceApi")); -exports.CoinsApi = tslib_1.__importStar(require("./CoinsApi")); -exports.DepositApi = tslib_1.__importStar(require("./DepositApi")); -exports.HealthApi = tslib_1.__importStar(require("./HealthApi")); -exports.LoansApi = tslib_1.__importStar(require("./LoansApi")); -exports.PaymentApi = tslib_1.__importStar(require("./PaymentApi")); -exports.PointsApi = tslib_1.__importStar(require("./PointsApi")); -exports.RedemptionsApi = tslib_1.__importStar(require("./RedemptionsApi")); -exports.ReferralsApi = tslib_1.__importStar(require("./ReferralsApi")); -exports.SwapApi = tslib_1.__importStar(require("./SwapApi")); -exports.TasksApi = tslib_1.__importStar(require("./TasksApi")); -exports.TransactionsApi = tslib_1.__importStar(require("./TransactionsApi")); -exports.UserApi = tslib_1.__importStar(require("./UserApi")); -exports.WithdrawApi = tslib_1.__importStar(require("./WithdrawApi")); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/wallet/src/apis/index.js.map b/dist/wallet/src/apis/index.js.map deleted file mode 100644 index 8d17d51..0000000 --- a/dist/wallet/src/apis/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallet/src/apis/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,6DAAqC;AACrC,mEAA2C;AAC3C,+DAAuC;AACvC,mEAA2C;AAC3C,iEAAyC;AACzC,+DAAuC;AACvC,mEAA2C;AAC3C,iEAAyC;AACzC,2EAAmD;AACnD,uEAA+C;AAC/C,6DAAqC;AACrC,+DAAuC;AACvC,6EAAqD;AACrD,6DAAqC;AACrC,qEAA6C"} \ No newline at end of file diff --git a/dist/wallet/src/index.d.ts b/dist/wallet/src/index.d.ts deleted file mode 100644 index eb67a70..0000000 --- a/dist/wallet/src/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/index.d.ts.map b/dist/wallet/src/index.d.ts.map deleted file mode 100644 index a308083..0000000 --- a/dist/wallet/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet/src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/index.js b/dist/wallet/src/index.js deleted file mode 100644 index a8c073e..0000000 --- a/dist/wallet/src/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -tslib_1.__exportStar(require("./runtime"), exports); -tslib_1.__exportStar(require("./apis/index"), exports); -tslib_1.__exportStar(require("./models/index"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/wallet/src/index.js.map b/dist/wallet/src/index.js.map deleted file mode 100644 index 075942d..0000000 --- a/dist/wallet/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wallet/src/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,uDAA6B;AAC7B,yDAA+B"} \ No newline at end of file diff --git a/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts b/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts deleted file mode 100644 index 8784a0e..0000000 --- a/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface AdminRedemptionUpdateRequest - */ -export interface AdminRedemptionUpdateRequest { - /** - * The status of the redemption request - * @type {string} - * @memberof AdminRedemptionUpdateRequest - */ - status: AdminRedemptionUpdateRequestStatusEnum; - /** - * The Paya tracking code - * @type {string} - * @memberof AdminRedemptionUpdateRequest - */ - payaTrackingCode?: string; -} -/** - * @export - */ -export declare const AdminRedemptionUpdateRequestStatusEnum: { - readonly APPROVED: "Approved"; - readonly REJECTED: "Rejected"; - readonly COMPLETED: "Completed"; -}; -export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; -/** - * Check if a given object implements the AdminRedemptionUpdateRequest interface. - */ -export declare function instanceOfAdminRedemptionUpdateRequest(value: object): value is AdminRedemptionUpdateRequest; -export declare function AdminRedemptionUpdateRequestFromJSON(json: any): AdminRedemptionUpdateRequest; -export declare function AdminRedemptionUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminRedemptionUpdateRequest; -export declare function AdminRedemptionUpdateRequestToJSON(json: any): AdminRedemptionUpdateRequest; -export declare function AdminRedemptionUpdateRequestToJSONTyped(value?: AdminRedemptionUpdateRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AdminRedemptionUpdateRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map b/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map deleted file mode 100644 index b18295a..0000000 --- a/dist/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AdminRedemptionUpdateRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/AdminRedemptionUpdateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,MAAM,EAAE,sCAAsC,CAAC;IAC/C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAGD;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AAGxJ;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"} \ No newline at end of file diff --git a/dist/wallet/src/models/AdminRedemptionUpdateRequest.js b/dist/wallet/src/models/AdminRedemptionUpdateRequest.js deleted file mode 100644 index 645666e..0000000 --- a/dist/wallet/src/models/AdminRedemptionUpdateRequest.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AdminRedemptionUpdateRequestStatusEnum = void 0; -exports.instanceOfAdminRedemptionUpdateRequest = instanceOfAdminRedemptionUpdateRequest; -exports.AdminRedemptionUpdateRequestFromJSON = AdminRedemptionUpdateRequestFromJSON; -exports.AdminRedemptionUpdateRequestFromJSONTyped = AdminRedemptionUpdateRequestFromJSONTyped; -exports.AdminRedemptionUpdateRequestToJSON = AdminRedemptionUpdateRequestToJSON; -exports.AdminRedemptionUpdateRequestToJSONTyped = AdminRedemptionUpdateRequestToJSONTyped; -/** - * @export - */ -exports.AdminRedemptionUpdateRequestStatusEnum = { - APPROVED: 'Approved', - REJECTED: 'Rejected', - COMPLETED: 'Completed' -}; -/** - * Check if a given object implements the AdminRedemptionUpdateRequest interface. - */ -function instanceOfAdminRedemptionUpdateRequest(value) { - if (!('status' in value) || value['status'] === undefined) - return false; - return true; -} -function AdminRedemptionUpdateRequestFromJSON(json) { - return AdminRedemptionUpdateRequestFromJSONTyped(json, false); -} -function AdminRedemptionUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'status': json['status'], - 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], - }; -} -function AdminRedemptionUpdateRequestToJSON(json) { - return AdminRedemptionUpdateRequestToJSONTyped(json, false); -} -function AdminRedemptionUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'status': value['status'], - 'payaTrackingCode': value['payaTrackingCode'], - }; -} -//# sourceMappingURL=AdminRedemptionUpdateRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/AdminRedemptionUpdateRequest.js.map b/dist/wallet/src/models/AdminRedemptionUpdateRequest.js.map deleted file mode 100644 index 7a08677..0000000 --- a/dist/wallet/src/models/AdminRedemptionUpdateRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AdminRedemptionUpdateRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/AdminRedemptionUpdateRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAsCH,wFAGC;AAED,oFAEC;AAED,8FASC;AAED,gFAEC;AAED,0FAUC;AAhDD;;GAEG;AACU,QAAA,sCAAsC,GAAG;IAClD,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CAChB,CAAC;AAIX;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;KAC9F,CAAC;AACN,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,KAA2C,EAAE,sBAA+B,KAAK;IACrI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/AuthTelegramRequest.d.ts b/dist/wallet/src/models/AuthTelegramRequest.d.ts deleted file mode 100644 index 406a282..0000000 --- a/dist/wallet/src/models/AuthTelegramRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface AuthTelegramRequest - */ -export interface AuthTelegramRequest { - /** - * Telegram init data - * @type {string} - * @memberof AuthTelegramRequest - */ - initdata: string; -} -/** - * Check if a given object implements the AuthTelegramRequest interface. - */ -export declare function instanceOfAuthTelegramRequest(value: object): value is AuthTelegramRequest; -export declare function AuthTelegramRequestFromJSON(json: any): AuthTelegramRequest; -export declare function AuthTelegramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthTelegramRequest; -export declare function AuthTelegramRequestToJSON(json: any): AuthTelegramRequest; -export declare function AuthTelegramRequestToJSONTyped(value?: AuthTelegramRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=AuthTelegramRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/AuthTelegramRequest.d.ts.map b/dist/wallet/src/models/AuthTelegramRequest.d.ts.map deleted file mode 100644 index 6ff84f3..0000000 --- a/dist/wallet/src/models/AuthTelegramRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuthTelegramRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/AuthTelegramRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/wallet/src/models/AuthTelegramRequest.js b/dist/wallet/src/models/AuthTelegramRequest.js deleted file mode 100644 index 6278cdf..0000000 --- a/dist/wallet/src/models/AuthTelegramRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfAuthTelegramRequest = instanceOfAuthTelegramRequest; -exports.AuthTelegramRequestFromJSON = AuthTelegramRequestFromJSON; -exports.AuthTelegramRequestFromJSONTyped = AuthTelegramRequestFromJSONTyped; -exports.AuthTelegramRequestToJSON = AuthTelegramRequestToJSON; -exports.AuthTelegramRequestToJSONTyped = AuthTelegramRequestToJSONTyped; -/** - * Check if a given object implements the AuthTelegramRequest interface. - */ -function instanceOfAuthTelegramRequest(value) { - if (!('initdata' in value) || value['initdata'] === undefined) - return false; - return true; -} -function AuthTelegramRequestFromJSON(json) { - return AuthTelegramRequestFromJSONTyped(json, false); -} -function AuthTelegramRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'initdata': json['initdata'], - }; -} -function AuthTelegramRequestToJSON(json) { - return AuthTelegramRequestToJSONTyped(json, false); -} -function AuthTelegramRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'initdata': value['initdata'], - }; -} -//# sourceMappingURL=AuthTelegramRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/AuthTelegramRequest.js.map b/dist/wallet/src/models/AuthTelegramRequest.js.map deleted file mode 100644 index 96f54b7..0000000 --- a/dist/wallet/src/models/AuthTelegramRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AuthTelegramRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/AuthTelegramRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAnCD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Balance.d.ts b/dist/wallet/src/models/Balance.d.ts deleted file mode 100644 index 72097ce..0000000 --- a/dist/wallet/src/models/Balance.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Coin } from './Coin'; -import type { Currency } from './Currency'; -/** - * - * @export - * @interface Balance - */ -export interface Balance { - /** - * - * @type {Currency} - * @memberof Balance - */ - locked: Currency; - /** - * - * @type {Coin} - * @memberof Balance - */ - coin: Coin; - /** - * - * @type {Currency} - * @memberof Balance - */ - balance: Currency; -} -/** - * Check if a given object implements the Balance interface. - */ -export declare function instanceOfBalance(value: object): value is Balance; -export declare function BalanceFromJSON(json: any): Balance; -export declare function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance; -export declare function BalanceToJSON(json: any): Balance; -export declare function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Balance.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Balance.d.ts.map b/dist/wallet/src/models/Balance.d.ts.map deleted file mode 100644 index 6b2b76b..0000000 --- a/dist/wallet/src/models/Balance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Balance.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAKjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAUrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Balance.js b/dist/wallet/src/models/Balance.js deleted file mode 100644 index 5557f9a..0000000 --- a/dist/wallet/src/models/Balance.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfBalance = instanceOfBalance; -exports.BalanceFromJSON = BalanceFromJSON; -exports.BalanceFromJSONTyped = BalanceFromJSONTyped; -exports.BalanceToJSON = BalanceToJSON; -exports.BalanceToJSONTyped = BalanceToJSONTyped; -const Coin_1 = require("./Coin"); -const Currency_1 = require("./Currency"); -/** - * Check if a given object implements the Balance interface. - */ -function instanceOfBalance(value) { - if (!('locked' in value) || value['locked'] === undefined) - return false; - if (!('coin' in value) || value['coin'] === undefined) - return false; - if (!('balance' in value) || value['balance'] === undefined) - return false; - return true; -} -function BalanceFromJSON(json) { - return BalanceFromJSONTyped(json, false); -} -function BalanceFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'locked': (0, Currency_1.CurrencyFromJSON)(json['locked']), - 'coin': (0, Coin_1.CoinFromJSON)(json['coin']), - 'balance': (0, Currency_1.CurrencyFromJSON)(json['balance']), - }; -} -function BalanceToJSON(json) { - return BalanceToJSONTyped(json, false); -} -function BalanceToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'locked': (0, Currency_1.CurrencyToJSON)(value['locked']), - 'coin': (0, Coin_1.CoinToJSON)(value['coin']), - 'balance': (0, Currency_1.CurrencyToJSON)(value['balance']), - }; -} -//# sourceMappingURL=Balance.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Balance.js.map b/dist/wallet/src/models/Balance.js.map deleted file mode 100644 index a5eb7d5..0000000 --- a/dist/wallet/src/models/Balance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Balance.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA+CH,8CAKC;AAED,0CAEC;AAED,oDAUC;AAED,sCAEC;AAED,gDAWC;AAjFD,iCAKgB;AAEhB,yCAKoB;AA4BpB;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,MAAM,EAAE,IAAA,mBAAY,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,SAAS,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC/C,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,MAAM,EAAE,IAAA,iBAAU,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,SAAS,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/BankInfo.d.ts b/dist/wallet/src/models/BankInfo.d.ts deleted file mode 100644 index 6533996..0000000 --- a/dist/wallet/src/models/BankInfo.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface BankInfo - */ -export interface BankInfo { - /** - * Bank name - * @type {string} - * @memberof BankInfo - */ - bankName: string; - /** - * Card number - * @type {string} - * @memberof BankInfo - */ - cardNumber: string; - /** - * IBAN - * @type {string} - * @memberof BankInfo - */ - iban: string; -} -/** - * Check if a given object implements the BankInfo interface. - */ -export declare function instanceOfBankInfo(value: object): value is BankInfo; -export declare function BankInfoFromJSON(json: any): BankInfo; -export declare function BankInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankInfo; -export declare function BankInfoToJSON(json: any): BankInfo; -export declare function BankInfoToJSONTyped(value?: BankInfo | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=BankInfo.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/BankInfo.d.ts.map b/dist/wallet/src/models/BankInfo.d.ts.map deleted file mode 100644 index c06820e..0000000 --- a/dist/wallet/src/models/BankInfo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BankInfo.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/BankInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAKnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAUvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtG"} \ No newline at end of file diff --git a/dist/wallet/src/models/BankInfo.js b/dist/wallet/src/models/BankInfo.js deleted file mode 100644 index 6a8dc95..0000000 --- a/dist/wallet/src/models/BankInfo.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfBankInfo = instanceOfBankInfo; -exports.BankInfoFromJSON = BankInfoFromJSON; -exports.BankInfoFromJSONTyped = BankInfoFromJSONTyped; -exports.BankInfoToJSON = BankInfoToJSON; -exports.BankInfoToJSONTyped = BankInfoToJSONTyped; -/** - * Check if a given object implements the BankInfo interface. - */ -function instanceOfBankInfo(value) { - if (!('bankName' in value) || value['bankName'] === undefined) - return false; - if (!('cardNumber' in value) || value['cardNumber'] === undefined) - return false; - if (!('iban' in value) || value['iban'] === undefined) - return false; - return true; -} -function BankInfoFromJSON(json) { - return BankInfoFromJSONTyped(json, false); -} -function BankInfoFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'bankName': json['bankName'], - 'cardNumber': json['cardNumber'], - 'iban': json['iban'], - }; -} -function BankInfoToJSON(json) { - return BankInfoToJSONTyped(json, false); -} -function BankInfoToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'bankName': value['bankName'], - 'cardNumber': value['cardNumber'], - 'iban': value['iban'], - }; -} -//# sourceMappingURL=BankInfo.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/BankInfo.js.map b/dist/wallet/src/models/BankInfo.js.map deleted file mode 100644 index e29b24b..0000000 --- a/dist/wallet/src/models/BankInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BankInfo.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/BankInfo.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gDAKC;AA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;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/BulletContent.d.ts b/dist/wallet/src/models/BulletContent.d.ts deleted file mode 100644 index b1db34e..0000000 --- a/dist/wallet/src/models/BulletContent.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface BulletContent - */ -export interface BulletContent { - /** - * - * @type {string} - * @memberof BulletContent - */ - title: string; - /** - * - * @type {string} - * @memberof BulletContent - */ - text: string; - /** - * - * @type {Array} - * @memberof BulletContent - */ - bullets: Array; -} -/** - * Check if a given object implements the BulletContent interface. - */ -export declare function instanceOfBulletContent(value: object): value is BulletContent; -export declare function BulletContentFromJSON(json: any): BulletContent; -export declare function BulletContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulletContent; -export declare function BulletContentToJSON(json: any): BulletContent; -export declare function BulletContentToJSONTyped(value?: BulletContent | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=BulletContent.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/BulletContent.d.ts.map b/dist/wallet/src/models/BulletContent.d.ts.map deleted file mode 100644 index ce014e9..0000000 --- a/dist/wallet/src/models/BulletContent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BulletContent.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/BulletContent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAK7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"} \ No newline at end of file diff --git a/dist/wallet/src/models/BulletContent.js b/dist/wallet/src/models/BulletContent.js deleted file mode 100644 index 8753f71..0000000 --- a/dist/wallet/src/models/BulletContent.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfBulletContent = instanceOfBulletContent; -exports.BulletContentFromJSON = BulletContentFromJSON; -exports.BulletContentFromJSONTyped = BulletContentFromJSONTyped; -exports.BulletContentToJSON = BulletContentToJSON; -exports.BulletContentToJSONTyped = BulletContentToJSONTyped; -/** - * Check if a given object implements the BulletContent interface. - */ -function instanceOfBulletContent(value) { - if (!('title' in value) || value['title'] === undefined) - return false; - if (!('text' in value) || value['text'] === undefined) - return false; - if (!('bullets' in value) || value['bullets'] === undefined) - return false; - return true; -} -function BulletContentFromJSON(json) { - return BulletContentFromJSONTyped(json, false); -} -function BulletContentFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'title': json['title'], - 'text': json['text'], - 'bullets': json['bullets'], - }; -} -function BulletContentToJSON(json) { - return BulletContentToJSONTyped(json, false); -} -function BulletContentToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'title': value['title'], - 'text': value['text'], - 'bullets': value['bullets'], - }; -} -//# sourceMappingURL=BulletContent.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/BulletContent.js.map b/dist/wallet/src/models/BulletContent.js.map deleted file mode 100644 index 8d932ae..0000000 --- a/dist/wallet/src/models/BulletContent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BulletContent.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/BulletContent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0DAKC;AAED,sDAEC;AAED,gEAUC;AAED,kDAEC;AAED,4DAWC;AAzCD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Coin.d.ts b/dist/wallet/src/models/Coin.d.ts deleted file mode 100644 index fba8cb8..0000000 --- a/dist/wallet/src/models/Coin.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { BulletContent } from './BulletContent'; -import type { CoinConfig } from './CoinConfig'; -import type { Symbol } from './Symbol'; -import type { Network } from './Network'; -/** - * - * @export - * @interface Coin - */ -export interface Coin { - /** - * - * @type {CoinConfig} - * @memberof Coin - */ - config: CoinConfig; - /** - * - * @type {Symbol} - * @memberof Coin - */ - symbol: Symbol; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Coin - */ - name: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof Coin - */ - logoUri: string; - /** - * - * @type {Array} - * @memberof Coin - */ - depositableNetworks: Array; - /** - * - * @type {Array} - * @memberof Coin - */ - withdrawableNetworks: Array; - /** - * - * @type {BulletContent} - * @memberof Coin - */ - content: BulletContent; -} -/** - * Check if a given object implements the Coin interface. - */ -export declare function instanceOfCoin(value: object): value is Coin; -export declare function CoinFromJSON(json: any): Coin; -export declare function CoinFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coin; -export declare function CoinToJSON(json: any): Coin; -export declare function CoinToJSONTyped(value?: Coin | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Coin.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Coin.d.ts.map b/dist/wallet/src/models/Coin.d.ts.map deleted file mode 100644 index de85ada..0000000 --- a/dist/wallet/src/models/Coin.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Coin.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Coin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;CAC1B;AAID;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAS3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAc/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe9F"} \ No newline at end of file diff --git a/dist/wallet/src/models/Coin.js b/dist/wallet/src/models/Coin.js deleted file mode 100644 index 5825cf1..0000000 --- a/dist/wallet/src/models/Coin.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfCoin = instanceOfCoin; -exports.CoinFromJSON = CoinFromJSON; -exports.CoinFromJSONTyped = CoinFromJSONTyped; -exports.CoinToJSON = CoinToJSON; -exports.CoinToJSONTyped = CoinToJSONTyped; -const BulletContent_1 = require("./BulletContent"); -const CoinConfig_1 = require("./CoinConfig"); -const Symbol_1 = require("./Symbol"); -const Network_1 = require("./Network"); -/** - * Check if a given object implements the Coin interface. - */ -function instanceOfCoin(value) { - if (!('config' in value) || value['config'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) - return false; - if (!('depositableNetworks' in value) || value['depositableNetworks'] === undefined) - return false; - if (!('withdrawableNetworks' in value) || value['withdrawableNetworks'] === undefined) - return false; - if (!('content' in value) || value['content'] === undefined) - return false; - return true; -} -function CoinFromJSON(json) { - return CoinFromJSONTyped(json, false); -} -function CoinFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'config': (0, CoinConfig_1.CoinConfigFromJSON)(json['config']), - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'name': json['name'], - 'logoUri': json['logoUri'], - 'depositableNetworks': (json['depositableNetworks'].map(Network_1.NetworkFromJSON)), - 'withdrawableNetworks': (json['withdrawableNetworks'].map(Network_1.NetworkFromJSON)), - 'content': (0, BulletContent_1.BulletContentFromJSON)(json['content']), - }; -} -function CoinToJSON(json) { - return CoinToJSONTyped(json, false); -} -function CoinToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'config': (0, CoinConfig_1.CoinConfigToJSON)(value['config']), - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'name': value['name'], - 'logoUri': value['logoUri'], - 'depositableNetworks': (value['depositableNetworks'].map(Network_1.NetworkToJSON)), - 'withdrawableNetworks': (value['withdrawableNetworks'].map(Network_1.NetworkToJSON)), - 'content': (0, BulletContent_1.BulletContentToJSON)(value['content']), - }; -} -//# sourceMappingURL=Coin.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Coin.js.map b/dist/wallet/src/models/Coin.js.map deleted file mode 100644 index f657fec..0000000 --- a/dist/wallet/src/models/Coin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Coin.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Coin.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAuFH,wCASC;AAED,oCAEC;AAED,8CAcC;AAED,gCAEC;AAED,0CAeC;AArID,mDAKyB;AAEzB,6CAKsB;AAEtB,qCAKkB;AAElB,uCAKmB;AAsDnB;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;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xC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,qBAAqB,EAAE,CAAE,IAAI,CAAC,qBAAqB,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;QACzF,sBAAsB,EAAE,CAAE,IAAI,CAAC,sBAAsB,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;QAC3F,SAAS,EAAE,IAAA,qCAAqB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACpD,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,qBAAqB,EAAE,CAAE,KAAK,CAAC,qBAAqB,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;QACxF,sBAAsB,EAAE,CAAE,KAAK,CAAC,sBAAsB,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;QAC1F,SAAS,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/CoinConfig.d.ts b/dist/wallet/src/models/CoinConfig.d.ts deleted file mode 100644 index 9d6769f..0000000 --- a/dist/wallet/src/models/CoinConfig.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface CoinConfig - */ -export interface CoinConfig { - /** - * - * @type {boolean} - * @memberof CoinConfig - */ - isTradeable: boolean; - /** - * Map of network to amount - * @type {{ [key: string]: string | undefined; }} - * @memberof CoinConfig - */ - withdrawFees: { - [key: string]: string | undefined; - }; - /** - * Map of network to amount - * @type {{ [key: string]: string | undefined; }} - * @memberof CoinConfig - */ - minWithdrawal: { - [key: string]: string | undefined; - }; - /** - * - * @type {boolean} - * @memberof CoinConfig - */ - needsMemo: boolean; -} -/** - * Check if a given object implements the CoinConfig interface. - */ -export declare function instanceOfCoinConfig(value: object): value is CoinConfig; -export declare function CoinConfigFromJSON(json: any): CoinConfig; -export declare function CoinConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinConfig; -export declare function CoinConfigToJSON(json: any): CoinConfig; -export declare function CoinConfigToJSONTyped(value?: CoinConfig | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=CoinConfig.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/CoinConfig.d.ts.map b/dist/wallet/src/models/CoinConfig.d.ts.map deleted file mode 100644 index 4984afc..0000000 --- a/dist/wallet/src/models/CoinConfig.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinConfig.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/CoinConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAW3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1G"} \ No newline at end of file diff --git a/dist/wallet/src/models/CoinConfig.js b/dist/wallet/src/models/CoinConfig.js deleted file mode 100644 index cc5054f..0000000 --- a/dist/wallet/src/models/CoinConfig.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfCoinConfig = instanceOfCoinConfig; -exports.CoinConfigFromJSON = CoinConfigFromJSON; -exports.CoinConfigFromJSONTyped = CoinConfigFromJSONTyped; -exports.CoinConfigToJSON = CoinConfigToJSON; -exports.CoinConfigToJSONTyped = CoinConfigToJSONTyped; -/** - * Check if a given object implements the CoinConfig interface. - */ -function instanceOfCoinConfig(value) { - if (!('isTradeable' in value) || value['isTradeable'] === undefined) - return false; - if (!('withdrawFees' in value) || value['withdrawFees'] === undefined) - return false; - if (!('minWithdrawal' in value) || value['minWithdrawal'] === undefined) - return false; - if (!('needsMemo' in value) || value['needsMemo'] === undefined) - return false; - return true; -} -function CoinConfigFromJSON(json) { - return CoinConfigFromJSONTyped(json, false); -} -function CoinConfigFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'isTradeable': json['isTradeable'], - 'withdrawFees': json['withdrawFees'], - 'minWithdrawal': json['minWithdrawal'], - 'needsMemo': json['needsMemo'], - }; -} -function CoinConfigToJSON(json) { - return CoinConfigToJSONTyped(json, false); -} -function CoinConfigToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'isTradeable': value['isTradeable'], - 'withdrawFees': value['withdrawFees'], - 'minWithdrawal': value['minWithdrawal'], - 'needsMemo': value['needsMemo'], - }; -} -//# sourceMappingURL=CoinConfig.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/CoinConfig.js.map b/dist/wallet/src/models/CoinConfig.js.map deleted file mode 100644 index 7d7445e..0000000 --- a/dist/wallet/src/models/CoinConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinConfig.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/CoinConfig.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,oDAMC;AAED,gDAEC;AAED,0DAWC;AAED,4CAEC;AAED,sDAYC;AA5CD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;QACtC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/CoinResponse.d.ts b/dist/wallet/src/models/CoinResponse.d.ts deleted file mode 100644 index 6d10907..0000000 --- a/dist/wallet/src/models/CoinResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Coin } from './Coin'; -/** - * - * @export - * @interface CoinResponse - */ -export interface CoinResponse { - /** - * - * @type {Array} - * @memberof CoinResponse - */ - data: Array; -} -/** - * Check if a given object implements the CoinResponse interface. - */ -export declare function instanceOfCoinResponse(value: object): value is CoinResponse; -export declare function CoinResponseFromJSON(json: any): CoinResponse; -export declare function CoinResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinResponse; -export declare function CoinResponseToJSON(json: any): CoinResponse; -export declare function CoinResponseToJSONTyped(value?: CoinResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=CoinResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/CoinResponse.d.ts.map b/dist/wallet/src/models/CoinResponse.d.ts.map deleted file mode 100644 index 6eb644a..0000000 --- a/dist/wallet/src/models/CoinResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/CoinResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/CoinResponse.js b/dist/wallet/src/models/CoinResponse.js deleted file mode 100644 index 5e88f46..0000000 --- a/dist/wallet/src/models/CoinResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfCoinResponse = instanceOfCoinResponse; -exports.CoinResponseFromJSON = CoinResponseFromJSON; -exports.CoinResponseFromJSONTyped = CoinResponseFromJSONTyped; -exports.CoinResponseToJSON = CoinResponseToJSON; -exports.CoinResponseToJSONTyped = CoinResponseToJSONTyped; -const Coin_1 = require("./Coin"); -/** - * Check if a given object implements the CoinResponse interface. - */ -function instanceOfCoinResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function CoinResponseFromJSON(json) { - return CoinResponseFromJSONTyped(json, false); -} -function CoinResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Coin_1.CoinFromJSON)), - }; -} -function CoinResponseToJSON(json) { - return CoinResponseToJSONTyped(json, false); -} -function CoinResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Coin_1.CoinToJSON)), - }; -} -//# sourceMappingURL=CoinResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/CoinResponse.js.map b/dist/wallet/src/models/CoinResponse.js.map deleted file mode 100644 index 81d1aef..0000000 --- a/dist/wallet/src/models/CoinResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CoinResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/CoinResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,iCAKgB;AAgBhB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAY,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/CreateChildUserRequest.d.ts b/dist/wallet/src/models/CreateChildUserRequest.d.ts deleted file mode 100644 index 8801606..0000000 --- a/dist/wallet/src/models/CreateChildUserRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface CreateChildUserRequest - */ -export interface CreateChildUserRequest { - /** - * the username of the child user - * @type {string} - * @memberof CreateChildUserRequest - */ - username: string; -} -/** - * Check if a given object implements the CreateChildUserRequest interface. - */ -export declare function instanceOfCreateChildUserRequest(value: object): value is CreateChildUserRequest; -export declare function CreateChildUserRequestFromJSON(json: any): CreateChildUserRequest; -export declare function CreateChildUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChildUserRequest; -export declare function CreateChildUserRequestToJSON(json: any): CreateChildUserRequest; -export declare function CreateChildUserRequestToJSONTyped(value?: CreateChildUserRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=CreateChildUserRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/CreateChildUserRequest.d.ts.map b/dist/wallet/src/models/CreateChildUserRequest.d.ts.map deleted file mode 100644 index d6b9dc3..0000000 --- a/dist/wallet/src/models/CreateChildUserRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CreateChildUserRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/CreateChildUserRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAG/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAQnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlI"} \ No newline at end of file diff --git a/dist/wallet/src/models/CreateChildUserRequest.js b/dist/wallet/src/models/CreateChildUserRequest.js deleted file mode 100644 index b3b5b4c..0000000 --- a/dist/wallet/src/models/CreateChildUserRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfCreateChildUserRequest = instanceOfCreateChildUserRequest; -exports.CreateChildUserRequestFromJSON = CreateChildUserRequestFromJSON; -exports.CreateChildUserRequestFromJSONTyped = CreateChildUserRequestFromJSONTyped; -exports.CreateChildUserRequestToJSON = CreateChildUserRequestToJSON; -exports.CreateChildUserRequestToJSONTyped = CreateChildUserRequestToJSONTyped; -/** - * Check if a given object implements the CreateChildUserRequest interface. - */ -function instanceOfCreateChildUserRequest(value) { - if (!('username' in value) || value['username'] === undefined) - return false; - return true; -} -function CreateChildUserRequestFromJSON(json) { - return CreateChildUserRequestFromJSONTyped(json, false); -} -function CreateChildUserRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'username': json['username'], - }; -} -function CreateChildUserRequestToJSON(json) { - return CreateChildUserRequestToJSONTyped(json, false); -} -function CreateChildUserRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'username': value['username'], - }; -} -//# sourceMappingURL=CreateChildUserRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/CreateChildUserRequest.js.map b/dist/wallet/src/models/CreateChildUserRequest.js.map deleted file mode 100644 index 0c46f3a..0000000 --- a/dist/wallet/src/models/CreateChildUserRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CreateChildUserRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/CreateChildUserRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4EAGC;AAED,wEAEC;AAED,kFAQC;AAED,oEAEC;AAED,8EASC;AAnCD;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Currency.d.ts b/dist/wallet/src/models/Currency.d.ts deleted file mode 100644 index 91b95fd..0000000 --- a/dist/wallet/src/models/Currency.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Currency - */ -export interface Currency { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Currency - */ - values?: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the Currency interface. - */ -export declare function instanceOfCurrency(value: object): value is Currency; -export declare function CurrencyFromJSON(json: any): Currency; -export declare function CurrencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Currency; -export declare function CurrencyToJSON(json: any): Currency; -export declare function CurrencyToJSONTyped(value?: Currency | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Currency.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Currency.d.ts.map b/dist/wallet/src/models/Currency.d.ts.map deleted file mode 100644 index c464446..0000000 --- a/dist/wallet/src/models/Currency.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Currency.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAQvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Currency.js b/dist/wallet/src/models/Currency.js deleted file mode 100644 index 20dc9a4..0000000 --- a/dist/wallet/src/models/Currency.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfCurrency = instanceOfCurrency; -exports.CurrencyFromJSON = CurrencyFromJSON; -exports.CurrencyFromJSONTyped = CurrencyFromJSONTyped; -exports.CurrencyToJSON = CurrencyToJSON; -exports.CurrencyToJSONTyped = CurrencyToJSONTyped; -/** - * Check if a given object implements the Currency interface. - */ -function instanceOfCurrency(value) { - return true; -} -function CurrencyFromJSON(json) { - return CurrencyFromJSONTyped(json, false); -} -function CurrencyFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'values': json['values'] == null ? undefined : json['values'], - }; -} -function CurrencyToJSON(json) { - return CurrencyToJSONTyped(json, false); -} -function CurrencyToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'values': value['values'], - }; -} -//# sourceMappingURL=Currency.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Currency.js.map b/dist/wallet/src/models/Currency.js.map deleted file mode 100644 index b7a975f..0000000 --- a/dist/wallet/src/models/Currency.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Currency.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,gDAEC;AAED,4CAEC;AAED,sDAQC;AAED,wCAEC;AAED,kDASC;AAlCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/DepositResponse.d.ts b/dist/wallet/src/models/DepositResponse.d.ts deleted file mode 100644 index f0d6877..0000000 --- a/dist/wallet/src/models/DepositResponse.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Network } from './Network'; -/** - * - * @export - * @interface DepositResponse - */ -export interface DepositResponse { - /** - * Deposit address - * @type {string} - * @memberof DepositResponse - */ - address: string; - /** - * - * @type {Network} - * @memberof DepositResponse - */ - network: Network; - /** - * Coin symbol - * @type {string} - * @memberof DepositResponse - */ - symbol: string; -} -/** - * Check if a given object implements the DepositResponse interface. - */ -export declare function instanceOfDepositResponse(value: object): value is DepositResponse; -export declare function DepositResponseFromJSON(json: any): DepositResponse; -export declare function DepositResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositResponse; -export declare function DepositResponseToJSON(json: any): DepositResponse; -export declare function DepositResponseToJSONTyped(value?: DepositResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=DepositResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/DepositResponse.d.ts.map b/dist/wallet/src/models/DepositResponse.d.ts.map deleted file mode 100644 index 4fbdc82..0000000 --- a/dist/wallet/src/models/DepositResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/DepositResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"} \ No newline at end of file diff --git a/dist/wallet/src/models/DepositResponse.js b/dist/wallet/src/models/DepositResponse.js deleted file mode 100644 index 4c0e216..0000000 --- a/dist/wallet/src/models/DepositResponse.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfDepositResponse = instanceOfDepositResponse; -exports.DepositResponseFromJSON = DepositResponseFromJSON; -exports.DepositResponseFromJSONTyped = DepositResponseFromJSONTyped; -exports.DepositResponseToJSON = DepositResponseToJSON; -exports.DepositResponseToJSONTyped = DepositResponseToJSONTyped; -const Network_1 = require("./Network"); -/** - * Check if a given object implements the DepositResponse interface. - */ -function instanceOfDepositResponse(value) { - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('network' in value) || value['network'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - return true; -} -function DepositResponseFromJSON(json) { - return DepositResponseFromJSONTyped(json, false); -} -function DepositResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'address': json['address'], - 'network': (0, Network_1.NetworkFromJSON)(json['network']), - 'symbol': json['symbol'], - }; -} -function DepositResponseToJSON(json) { - return DepositResponseToJSONTyped(json, false); -} -function DepositResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'address': value['address'], - 'network': (0, Network_1.NetworkToJSON)(value['network']), - 'symbol': value['symbol'], - }; -} -//# sourceMappingURL=DepositResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/DepositResponse.js.map b/dist/wallet/src/models/DepositResponse.js.map deleted file mode 100644 index d963e33..0000000 --- a/dist/wallet/src/models/DepositResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DepositResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/DepositResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,8DAKC;AAED,0DAEC;AAED,oEAUC;AAED,sDAEC;AAED,gEAWC;AA1ED,uCAKmB;AA4BnB;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts b/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts deleted file mode 100644 index 1a5d3be..0000000 --- a/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface DetailedLoanToValueOptions - */ -export interface DetailedLoanToValueOptions { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DetailedLoanToValueOptions - */ - name: { - [key: string]: string | undefined; - }; - /** - * The loan to value of the vault. - * @type {string} - * @memberof DetailedLoanToValueOptions - */ - value: string; -} -/** - * Check if a given object implements the DetailedLoanToValueOptions interface. - */ -export declare function instanceOfDetailedLoanToValueOptions(value: object): value is DetailedLoanToValueOptions; -export declare function DetailedLoanToValueOptionsFromJSON(json: any): DetailedLoanToValueOptions; -export declare function DetailedLoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedLoanToValueOptions; -export declare function DetailedLoanToValueOptionsToJSON(json: any): DetailedLoanToValueOptions; -export declare function DetailedLoanToValueOptionsToJSONTyped(value?: DetailedLoanToValueOptions | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=DetailedLoanToValueOptions.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts.map b/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts.map deleted file mode 100644 index bb08487..0000000 --- a/dist/wallet/src/models/DetailedLoanToValueOptions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DetailedLoanToValueOptions.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/DetailedLoanToValueOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAIvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAS3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1I"} \ No newline at end of file diff --git a/dist/wallet/src/models/DetailedLoanToValueOptions.js b/dist/wallet/src/models/DetailedLoanToValueOptions.js deleted file mode 100644 index 04da449..0000000 --- a/dist/wallet/src/models/DetailedLoanToValueOptions.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfDetailedLoanToValueOptions = instanceOfDetailedLoanToValueOptions; -exports.DetailedLoanToValueOptionsFromJSON = DetailedLoanToValueOptionsFromJSON; -exports.DetailedLoanToValueOptionsFromJSONTyped = DetailedLoanToValueOptionsFromJSONTyped; -exports.DetailedLoanToValueOptionsToJSON = DetailedLoanToValueOptionsToJSON; -exports.DetailedLoanToValueOptionsToJSONTyped = DetailedLoanToValueOptionsToJSONTyped; -/** - * Check if a given object implements the DetailedLoanToValueOptions interface. - */ -function instanceOfDetailedLoanToValueOptions(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('value' in value) || value['value'] === undefined) - return false; - return true; -} -function DetailedLoanToValueOptionsFromJSON(json) { - return DetailedLoanToValueOptionsFromJSONTyped(json, false); -} -function DetailedLoanToValueOptionsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'value': json['value'], - }; -} -function DetailedLoanToValueOptionsToJSON(json) { - return DetailedLoanToValueOptionsToJSONTyped(json, false); -} -function DetailedLoanToValueOptionsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'value': value['value'], - }; -} -//# sourceMappingURL=DetailedLoanToValueOptions.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/DetailedLoanToValueOptions.js.map b/dist/wallet/src/models/DetailedLoanToValueOptions.js.map deleted file mode 100644 index 4701ea6..0000000 --- a/dist/wallet/src/models/DetailedLoanToValueOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DetailedLoanToValueOptions.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/DetailedLoanToValueOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oFAIC;AAED,gFAEC;AAED,0FASC;AAED,4EAEC;AAED,sFAUC;AAtCD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts b/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts deleted file mode 100644 index f6ad2ba..0000000 --- a/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface EmailOtpSubmitRequest - */ -export interface EmailOtpSubmitRequest { - /** - * OTP code - * @type {number} - * @memberof EmailOtpSubmitRequest - */ - code: number; -} -/** - * Check if a given object implements the EmailOtpSubmitRequest interface. - */ -export declare function instanceOfEmailOtpSubmitRequest(value: object): value is EmailOtpSubmitRequest; -export declare function EmailOtpSubmitRequestFromJSON(json: any): EmailOtpSubmitRequest; -export declare function EmailOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailOtpSubmitRequest; -export declare function EmailOtpSubmitRequestToJSON(json: any): EmailOtpSubmitRequest; -export declare function EmailOtpSubmitRequestToJSONTyped(value?: EmailOtpSubmitRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=EmailOtpSubmitRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts.map b/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts.map deleted file mode 100644 index a1cd0a7..0000000 --- a/dist/wallet/src/models/EmailOtpSubmitRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmailOtpSubmitRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/EmailOtpSubmitRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/wallet/src/models/EmailOtpSubmitRequest.js b/dist/wallet/src/models/EmailOtpSubmitRequest.js deleted file mode 100644 index 7318923..0000000 --- a/dist/wallet/src/models/EmailOtpSubmitRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfEmailOtpSubmitRequest = instanceOfEmailOtpSubmitRequest; -exports.EmailOtpSubmitRequestFromJSON = EmailOtpSubmitRequestFromJSON; -exports.EmailOtpSubmitRequestFromJSONTyped = EmailOtpSubmitRequestFromJSONTyped; -exports.EmailOtpSubmitRequestToJSON = EmailOtpSubmitRequestToJSON; -exports.EmailOtpSubmitRequestToJSONTyped = EmailOtpSubmitRequestToJSONTyped; -/** - * Check if a given object implements the EmailOtpSubmitRequest interface. - */ -function instanceOfEmailOtpSubmitRequest(value) { - if (!('code' in value) || value['code'] === undefined) - return false; - return true; -} -function EmailOtpSubmitRequestFromJSON(json) { - return EmailOtpSubmitRequestFromJSONTyped(json, false); -} -function EmailOtpSubmitRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'code': json['code'], - }; -} -function EmailOtpSubmitRequestToJSON(json) { - return EmailOtpSubmitRequestToJSONTyped(json, false); -} -function EmailOtpSubmitRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'code': value['code'], - }; -} -//# sourceMappingURL=EmailOtpSubmitRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/EmailOtpSubmitRequest.js.map b/dist/wallet/src/models/EmailOtpSubmitRequest.js.map deleted file mode 100644 index f0a165a..0000000 --- a/dist/wallet/src/models/EmailOtpSubmitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmailOtpSubmitRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/EmailOtpSubmitRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAGC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAnCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/ErrorDetail.d.ts b/dist/wallet/src/models/ErrorDetail.d.ts deleted file mode 100644 index 8e1f81e..0000000 --- a/dist/wallet/src/models/ErrorDetail.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ErrorDetail - */ -export interface ErrorDetail { - /** - * User-friendly error message - * @type {string} - * @memberof ErrorDetail - */ - userMessage: string; - /** - * - * @type {Array} - * @memberof ErrorDetail - */ - solutions: Array; -} -/** - * Check if a given object implements the ErrorDetail interface. - */ -export declare function instanceOfErrorDetail(value: object): value is ErrorDetail; -export declare function ErrorDetailFromJSON(json: any): ErrorDetail; -export declare function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail; -export declare function ErrorDetailToJSON(json: any): ErrorDetail; -export declare function ErrorDetailToJSONTyped(value?: ErrorDetail | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ErrorDetail.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/ErrorDetail.d.ts.map b/dist/wallet/src/models/ErrorDetail.d.ts.map deleted file mode 100644 index 76dffcc..0000000 --- a/dist/wallet/src/models/ErrorDetail.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorDetail.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/ErrorDetail.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAS7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5G"} \ No newline at end of file diff --git a/dist/wallet/src/models/ErrorDetail.js b/dist/wallet/src/models/ErrorDetail.js deleted file mode 100644 index 9fe08f4..0000000 --- a/dist/wallet/src/models/ErrorDetail.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfErrorDetail = instanceOfErrorDetail; -exports.ErrorDetailFromJSON = ErrorDetailFromJSON; -exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped; -exports.ErrorDetailToJSON = ErrorDetailToJSON; -exports.ErrorDetailToJSONTyped = ErrorDetailToJSONTyped; -/** - * Check if a given object implements the ErrorDetail interface. - */ -function instanceOfErrorDetail(value) { - if (!('userMessage' in value) || value['userMessage'] === undefined) - return false; - if (!('solutions' in value) || value['solutions'] === undefined) - return false; - return true; -} -function ErrorDetailFromJSON(json) { - return ErrorDetailFromJSONTyped(json, false); -} -function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'userMessage': json['userMessage'], - 'solutions': json['solutions'], - }; -} -function ErrorDetailToJSON(json) { - return ErrorDetailToJSONTyped(json, false); -} -function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'userMessage': value['userMessage'], - 'solutions': value['solutions'], - }; -} -//# sourceMappingURL=ErrorDetail.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/ErrorDetail.js.map b/dist/wallet/src/models/ErrorDetail.js.map deleted file mode 100644 index 8d5ae39..0000000 --- a/dist/wallet/src/models/ErrorDetail.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorDetail.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/ErrorDetail.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,sDAIC;AAED,kDAEC;AAED,4DASC;AAED,8CAEC;AAED,wDAUC;AAtCD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/ExternalTransaction.d.ts b/dist/wallet/src/models/ExternalTransaction.d.ts deleted file mode 100644 index 3bdb029..0000000 --- a/dist/wallet/src/models/ExternalTransaction.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { TransactionType } from './TransactionType'; -import type { Symbol } from './Symbol'; -import type { Currency } from './Currency'; -import type { Network } from './Network'; -import type { TransactionStatus } from './TransactionStatus'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface ExternalTransaction - */ -export interface ExternalTransaction { - /** - * Unique identifier of the transaction - * @type {number} - * @memberof ExternalTransaction - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof ExternalTransaction - */ - time: Timestamp; - /** - * - * @type {TransactionType} - * @memberof ExternalTransaction - */ - type: TransactionType; - /** - * The hash of the transaction - * @type {string} - * @memberof ExternalTransaction - */ - hash: string; - /** - * The address from which the transaction originated - * @type {string} - * @memberof ExternalTransaction - */ - from: string; - /** - * The address to which the transaction is sent - * @type {string} - * @memberof ExternalTransaction - */ - to: string; - /** - * A comment associated with the transaction - * @type {string} - * @memberof ExternalTransaction - */ - comment: string | null; - /** - * - * @type {Currency} - * @memberof ExternalTransaction - */ - amount: Currency; - /** - * - * @type {Symbol} - * @memberof ExternalTransaction - */ - symbol: Symbol; - /** - * - * @type {Network} - * @memberof ExternalTransaction - */ - network: Network; - /** - * - * @type {TransactionStatus} - * @memberof ExternalTransaction - */ - status: TransactionStatus; -} -/** - * Check if a given object implements the ExternalTransaction interface. - */ -export declare function instanceOfExternalTransaction(value: object): value is ExternalTransaction; -export declare function ExternalTransactionFromJSON(json: any): ExternalTransaction; -export declare function ExternalTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalTransaction; -export declare function ExternalTransactionToJSON(json: any): ExternalTransaction; -export declare function ExternalTransactionToJSONTyped(value?: ExternalTransaction | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ExternalTransaction.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/ExternalTransaction.d.ts.map b/dist/wallet/src/models/ExternalTransaction.d.ts.map deleted file mode 100644 index dcf1435..0000000 --- a/dist/wallet/src/models/ExternalTransaction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExternalTransaction.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/ExternalTransaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO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ternalTransaction.js b/dist/wallet/src/models/ExternalTransaction.js deleted file mode 100644 index e76056d..0000000 --- a/dist/wallet/src/models/ExternalTransaction.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfExternalTransaction = instanceOfExternalTransaction; -exports.ExternalTransactionFromJSON = ExternalTransactionFromJSON; -exports.ExternalTransactionFromJSONTyped = ExternalTransactionFromJSONTyped; -exports.ExternalTransactionToJSON = ExternalTransactionToJSON; -exports.ExternalTransactionToJSONTyped = ExternalTransactionToJSONTyped; -const TransactionType_1 = require("./TransactionType"); -const Symbol_1 = require("./Symbol"); -const Currency_1 = require("./Currency"); -const Network_1 = require("./Network"); -const TransactionStatus_1 = require("./TransactionStatus"); -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the ExternalTransaction interface. - */ -function instanceOfExternalTransaction(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('time' in value) || value['time'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('hash' in value) || value['hash'] === undefined) - return false; - if (!('from' in value) || value['from'] === undefined) - return false; - if (!('to' in value) || value['to'] === undefined) - return false; - if (!('comment' in value) || value['comment'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('network' in value) || value['network'] === undefined) - return false; - if (!('status' in value) || value['status'] === undefined) - return false; - return true; -} -function ExternalTransactionFromJSON(json) { - return ExternalTransactionFromJSONTyped(json, false); -} -function ExternalTransactionFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['Id'], - 'time': (0, Timestamp_1.TimestampFromJSON)(json['Time']), - 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['Type']), - 'hash': json['Hash'], - 'from': json['From'], - 'to': json['To'], - 'comment': json['Comment'], - 'amount': (0, Currency_1.CurrencyFromJSON)(json['Amount']), - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['Symbol']), - 'network': (0, Network_1.NetworkFromJSON)(json['Network']), - 'status': (0, TransactionStatus_1.TransactionStatusFromJSON)(json['Status']), - }; -} -function ExternalTransactionToJSON(json) { - return ExternalTransactionToJSONTyped(json, false); -} -function ExternalTransactionToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'Id': value['id'], - 'Time': (0, Timestamp_1.TimestampToJSON)(value['time']), - 'Type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']), - 'Hash': value['hash'], - 'From': value['from'], - 'To': value['to'], - 'Comment': value['comment'], - 'Amount': (0, Currency_1.CurrencyToJSON)(value['amount']), - 'Symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'Network': (0, Network_1.NetworkToJSON)(value['network']), - 'Status': (0, TransactionStatus_1.TransactionStatusToJSON)(value['status']), - }; -} -//# sourceMappingURL=ExternalTransaction.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/ExternalTransaction.js.map b/dist/wallet/src/models/ExternalTransaction.js.map deleted file mode 100644 index 4754b1a..0000000 --- a/dist/wallet/src/models/ExternalTransaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExternalTransaction.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/ExternalTransaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA6HH,sEAaC;AAED,kEAEC;AAED,4EAkBC;AAED,8DAEC;AAED,wEAmBC;AAvLD,uDAK2B;AAE3B,qCAKkB;AAElB,yCAKoB;AAEpB,uCAKmB;AAEnB,2DAK6B;AAE7B,2CAKqB;AA8ErB;;GAEG;AACH,S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;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAA,2CAAuB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;KACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPoints.d.ts b/dist/wallet/src/models/FriendPoints.d.ts deleted file mode 100644 index b61ee00..0000000 --- a/dist/wallet/src/models/FriendPoints.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface FriendPoints - */ -export interface FriendPoints { - /** - * the first name of the friend - * @type {string} - * @memberof FriendPoints - */ - firstName: string; - /** - * the points of the friend - * @type {number} - * @memberof FriendPoints - */ - points: number; -} -/** - * Check if a given object implements the FriendPoints interface. - */ -export declare function instanceOfFriendPoints(value: object): value is FriendPoints; -export declare function FriendPointsFromJSON(json: any): FriendPoints; -export declare function FriendPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPoints; -export declare function FriendPointsToJSON(json: any): FriendPoints; -export declare function FriendPointsToJSONTyped(value?: FriendPoints | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=FriendPoints.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPoints.d.ts.map b/dist/wallet/src/models/FriendPoints.d.ts.map deleted file mode 100644 index 8ea4d3d..0000000 --- a/dist/wallet/src/models/FriendPoints.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FriendPoints.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/FriendPoints.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPoints.js b/dist/wallet/src/models/FriendPoints.js deleted file mode 100644 index 2cb9a24..0000000 --- a/dist/wallet/src/models/FriendPoints.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfFriendPoints = instanceOfFriendPoints; -exports.FriendPointsFromJSON = FriendPointsFromJSON; -exports.FriendPointsFromJSONTyped = FriendPointsFromJSONTyped; -exports.FriendPointsToJSON = FriendPointsToJSON; -exports.FriendPointsToJSONTyped = FriendPointsToJSONTyped; -/** - * Check if a given object implements the FriendPoints interface. - */ -function instanceOfFriendPoints(value) { - if (!('firstName' in value) || value['firstName'] === undefined) - return false; - if (!('points' in value) || value['points'] === undefined) - return false; - return true; -} -function FriendPointsFromJSON(json) { - return FriendPointsFromJSONTyped(json, false); -} -function FriendPointsFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'firstName': json['firstName'], - 'points': json['points'], - }; -} -function FriendPointsToJSON(json) { - return FriendPointsToJSONTyped(json, false); -} -function FriendPointsToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'firstName': value['firstName'], - 'points': value['points'], - }; -} -//# sourceMappingURL=FriendPoints.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPoints.js.map b/dist/wallet/src/models/FriendPoints.js.map deleted file mode 100644 index f1e7936..0000000 --- a/dist/wallet/src/models/FriendPoints.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FriendPoints.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/FriendPoints.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPointsResponse.d.ts b/dist/wallet/src/models/FriendPointsResponse.d.ts deleted file mode 100644 index f9c8361..0000000 --- a/dist/wallet/src/models/FriendPointsResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { FriendPoints } from './FriendPoints'; -/** - * - * @export - * @interface FriendPointsResponse - */ -export interface FriendPointsResponse { - /** - * - * @type {Array} - * @memberof FriendPointsResponse - */ - data: Array; -} -/** - * Check if a given object implements the FriendPointsResponse interface. - */ -export declare function instanceOfFriendPointsResponse(value: object): value is FriendPointsResponse; -export declare function FriendPointsResponseFromJSON(json: any): FriendPointsResponse; -export declare function FriendPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPointsResponse; -export declare function FriendPointsResponseToJSON(json: any): FriendPointsResponse; -export declare function FriendPointsResponseToJSONTyped(value?: FriendPointsResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=FriendPointsResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPointsResponse.d.ts.map b/dist/wallet/src/models/FriendPointsResponse.d.ts.map deleted file mode 100644 index 1b8b164..0000000 --- a/dist/wallet/src/models/FriendPointsResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FriendPointsResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/FriendPointsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPointsResponse.js b/dist/wallet/src/models/FriendPointsResponse.js deleted file mode 100644 index 7ae0fa1..0000000 --- a/dist/wallet/src/models/FriendPointsResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfFriendPointsResponse = instanceOfFriendPointsResponse; -exports.FriendPointsResponseFromJSON = FriendPointsResponseFromJSON; -exports.FriendPointsResponseFromJSONTyped = FriendPointsResponseFromJSONTyped; -exports.FriendPointsResponseToJSON = FriendPointsResponseToJSON; -exports.FriendPointsResponseToJSONTyped = FriendPointsResponseToJSONTyped; -const FriendPoints_1 = require("./FriendPoints"); -/** - * Check if a given object implements the FriendPointsResponse interface. - */ -function instanceOfFriendPointsResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function FriendPointsResponseFromJSON(json) { - return FriendPointsResponseFromJSONTyped(json, false); -} -function FriendPointsResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(FriendPoints_1.FriendPointsFromJSON)), - }; -} -function FriendPointsResponseToJSON(json) { - return FriendPointsResponseToJSONTyped(json, false); -} -function FriendPointsResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(FriendPoints_1.FriendPointsToJSON)), - }; -} -//# sourceMappingURL=FriendPointsResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/FriendPointsResponse.js.map b/dist/wallet/src/models/FriendPointsResponse.js.map deleted file mode 100644 index ae35087..0000000 --- a/dist/wallet/src/models/FriendPointsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FriendPointsResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/FriendPointsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,iDAKwB;AAgBxB;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAoB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iCAAkB,CAAC,CAAC;KAClE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/HealthStatus.d.ts b/dist/wallet/src/models/HealthStatus.d.ts deleted file mode 100644 index 99a7fa9..0000000 --- a/dist/wallet/src/models/HealthStatus.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HealthStatus - */ -export interface HealthStatus { - /** - * - * @type {string} - * @memberof HealthStatus - */ - status?: string; -} -/** - * Check if a given object implements the HealthStatus interface. - */ -export declare function instanceOfHealthStatus(value: object): value is HealthStatus; -export declare function HealthStatusFromJSON(json: any): HealthStatus; -export declare function HealthStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthStatus; -export declare function HealthStatusToJSON(json: any): HealthStatus; -export declare function HealthStatusToJSONTyped(value?: HealthStatus | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=HealthStatus.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/HealthStatus.d.ts.map b/dist/wallet/src/models/HealthStatus.d.ts.map deleted file mode 100644 index 7438ad2..0000000 --- a/dist/wallet/src/models/HealthStatus.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HealthStatus.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/HealthStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/HealthStatus.js b/dist/wallet/src/models/HealthStatus.js deleted file mode 100644 index fa18a3c..0000000 --- a/dist/wallet/src/models/HealthStatus.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfHealthStatus = instanceOfHealthStatus; -exports.HealthStatusFromJSON = HealthStatusFromJSON; -exports.HealthStatusFromJSONTyped = HealthStatusFromJSONTyped; -exports.HealthStatusToJSON = HealthStatusToJSON; -exports.HealthStatusToJSONTyped = HealthStatusToJSONTyped; -/** - * Check if a given object implements the HealthStatus interface. - */ -function instanceOfHealthStatus(value) { - return true; -} -function HealthStatusFromJSON(json) { - return HealthStatusFromJSONTyped(json, false); -} -function HealthStatusFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'status': json['status'] == null ? undefined : json['status'], - }; -} -function HealthStatusToJSON(json) { - return HealthStatusToJSONTyped(json, false); -} -function HealthStatusToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'status': value['status'], - }; -} -//# sourceMappingURL=HealthStatus.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/HealthStatus.js.map b/dist/wallet/src/models/HealthStatus.js.map deleted file mode 100644 index 78a2154..0000000 --- a/dist/wallet/src/models/HealthStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HealthStatus.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/HealthStatus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,wDAEC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAlCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/JwtResponse.d.ts b/dist/wallet/src/models/JwtResponse.d.ts deleted file mode 100644 index 7fcabe0..0000000 --- a/dist/wallet/src/models/JwtResponse.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface JwtResponse - */ -export interface JwtResponse { - /** - * JWT token - * @type {string} - * @memberof JwtResponse - */ - token: string; -} -/** - * Check if a given object implements the JwtResponse interface. - */ -export declare function instanceOfJwtResponse(value: object): value is JwtResponse; -export declare function JwtResponseFromJSON(json: any): JwtResponse; -export declare function JwtResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwtResponse; -export declare function JwtResponseToJSON(json: any): JwtResponse; -export declare function JwtResponseToJSONTyped(value?: JwtResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=JwtResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/JwtResponse.d.ts.map b/dist/wallet/src/models/JwtResponse.d.ts.map deleted file mode 100644 index 59737e7..0000000 --- a/dist/wallet/src/models/JwtResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"JwtResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/JwtResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAQ7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5G"} \ No newline at end of file diff --git a/dist/wallet/src/models/JwtResponse.js b/dist/wallet/src/models/JwtResponse.js deleted file mode 100644 index edf6608..0000000 --- a/dist/wallet/src/models/JwtResponse.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfJwtResponse = instanceOfJwtResponse; -exports.JwtResponseFromJSON = JwtResponseFromJSON; -exports.JwtResponseFromJSONTyped = JwtResponseFromJSONTyped; -exports.JwtResponseToJSON = JwtResponseToJSON; -exports.JwtResponseToJSONTyped = JwtResponseToJSONTyped; -/** - * Check if a given object implements the JwtResponse interface. - */ -function instanceOfJwtResponse(value) { - if (!('token' in value) || value['token'] === undefined) - return false; - return true; -} -function JwtResponseFromJSON(json) { - return JwtResponseFromJSONTyped(json, false); -} -function JwtResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'token': json['token'], - }; -} -function JwtResponseToJSON(json) { - return JwtResponseToJSONTyped(json, false); -} -function JwtResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'token': value['token'], - }; -} -//# sourceMappingURL=JwtResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/JwtResponse.js.map b/dist/wallet/src/models/JwtResponse.js.map deleted file mode 100644 index 0545c9f..0000000 --- a/dist/wallet/src/models/JwtResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"JwtResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/JwtResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sDAGC;AAED,kDAEC;AAED,4DAQC;AAED,8CAEC;AAED,wDASC;AAnCD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycConfirmRequest.d.ts b/dist/wallet/src/models/KycConfirmRequest.d.ts deleted file mode 100644 index 07781eb..0000000 --- a/dist/wallet/src/models/KycConfirmRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface KycConfirmRequest - */ -export interface KycConfirmRequest { - /** - * KYC request ID - * @type {string} - * @memberof KycConfirmRequest - */ - id: string; -} -/** - * Check if a given object implements the KycConfirmRequest interface. - */ -export declare function instanceOfKycConfirmRequest(value: object): value is KycConfirmRequest; -export declare function KycConfirmRequestFromJSON(json: any): KycConfirmRequest; -export declare function KycConfirmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycConfirmRequest; -export declare function KycConfirmRequestToJSON(json: any): KycConfirmRequest; -export declare function KycConfirmRequestToJSONTyped(value?: KycConfirmRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=KycConfirmRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycConfirmRequest.d.ts.map b/dist/wallet/src/models/KycConfirmRequest.d.ts.map deleted file mode 100644 index 00b2036..0000000 --- a/dist/wallet/src/models/KycConfirmRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KycConfirmRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/KycConfirmRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycConfirmRequest.js b/dist/wallet/src/models/KycConfirmRequest.js deleted file mode 100644 index 6159dcb..0000000 --- a/dist/wallet/src/models/KycConfirmRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfKycConfirmRequest = instanceOfKycConfirmRequest; -exports.KycConfirmRequestFromJSON = KycConfirmRequestFromJSON; -exports.KycConfirmRequestFromJSONTyped = KycConfirmRequestFromJSONTyped; -exports.KycConfirmRequestToJSON = KycConfirmRequestToJSON; -exports.KycConfirmRequestToJSONTyped = KycConfirmRequestToJSONTyped; -/** - * Check if a given object implements the KycConfirmRequest interface. - */ -function instanceOfKycConfirmRequest(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - return true; -} -function KycConfirmRequestFromJSON(json) { - return KycConfirmRequestFromJSONTyped(json, false); -} -function KycConfirmRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - }; -} -function KycConfirmRequestToJSON(json) { - return KycConfirmRequestToJSONTyped(json, false); -} -function KycConfirmRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - }; -} -//# sourceMappingURL=KycConfirmRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycConfirmRequest.js.map b/dist/wallet/src/models/KycConfirmRequest.js.map deleted file mode 100644 index 4aca33b..0000000 --- a/dist/wallet/src/models/KycConfirmRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KycConfirmRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/KycConfirmRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAnCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;KACpB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycRequest.d.ts b/dist/wallet/src/models/KycRequest.d.ts deleted file mode 100644 index 118b8aa..0000000 --- a/dist/wallet/src/models/KycRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface KycRequest - */ -export interface KycRequest { - /** - * National ID - * @type {string} - * @memberof KycRequest - */ - nationalId: string; - /** - * Date of birth - * @type {string} - * @memberof KycRequest - */ - dateOfBirth: string; - /** - * Card number - * @type {string} - * @memberof KycRequest - */ - cardNumber: string; -} -/** - * Check if a given object implements the KycRequest interface. - */ -export declare function instanceOfKycRequest(value: object): value is KycRequest; -export declare function KycRequestFromJSON(json: any): KycRequest; -export declare function KycRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycRequest; -export declare function KycRequestToJSON(json: any): KycRequest; -export declare function KycRequestToJSONTyped(value?: KycRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=KycRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycRequest.d.ts.map b/dist/wallet/src/models/KycRequest.d.ts.map deleted file mode 100644 index 0233348..0000000 --- a/dist/wallet/src/models/KycRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KycRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/KycRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAKvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAU3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1G"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycRequest.js b/dist/wallet/src/models/KycRequest.js deleted file mode 100644 index e95ae88..0000000 --- a/dist/wallet/src/models/KycRequest.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfKycRequest = instanceOfKycRequest; -exports.KycRequestFromJSON = KycRequestFromJSON; -exports.KycRequestFromJSONTyped = KycRequestFromJSONTyped; -exports.KycRequestToJSON = KycRequestToJSON; -exports.KycRequestToJSONTyped = KycRequestToJSONTyped; -/** - * Check if a given object implements the KycRequest interface. - */ -function instanceOfKycRequest(value) { - if (!('nationalId' in value) || value['nationalId'] === undefined) - return false; - if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) - return false; - if (!('cardNumber' in value) || value['cardNumber'] === undefined) - return false; - return true; -} -function KycRequestFromJSON(json) { - return KycRequestFromJSONTyped(json, false); -} -function KycRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'nationalId': json['nationalId'], - 'dateOfBirth': json['dateOfBirth'], - 'cardNumber': json['cardNumber'], - }; -} -function KycRequestToJSON(json) { - return KycRequestToJSONTyped(json, false); -} -function KycRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'nationalId': value['nationalId'], - 'dateOfBirth': value['dateOfBirth'], - 'cardNumber': value['cardNumber'], - }; -} -//# sourceMappingURL=KycRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycRequest.js.map b/dist/wallet/src/models/KycRequest.js.map deleted file mode 100644 index 8e2b94f..0000000 --- a/dist/wallet/src/models/KycRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KycRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/KycRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,oDAKC;AAED,gDAEC;AAED,0DAUC;AAED,4CAEC;AAED,sDAWC;AAzCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycResponse.d.ts b/dist/wallet/src/models/KycResponse.d.ts deleted file mode 100644 index 18a4907..0000000 --- a/dist/wallet/src/models/KycResponse.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { BankInfo } from './BankInfo'; -/** - * - * @export - * @interface KycResponse - */ -export interface KycResponse { - /** - * KYC request ID - * @type {string} - * @memberof KycResponse - */ - id: string; - /** - * First name - * @type {string} - * @memberof KycResponse - */ - firstName: string; - /** - * Last name - * @type {string} - * @memberof KycResponse - */ - lastName: string; - /** - * National code - * @type {string} - * @memberof KycResponse - */ - nationalId: string; - /** - * Date of birth - * @type {string} - * @memberof KycResponse - */ - dateOfBirth: string; - /** - * - * @type {BankInfo} - * @memberof KycResponse - */ - bankInfo: BankInfo; -} -/** - * Check if a given object implements the KycResponse interface. - */ -export declare function instanceOfKycResponse(value: object): value is KycResponse; -export declare function KycResponseFromJSON(json: any): KycResponse; -export declare function KycResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycResponse; -export declare function KycResponseToJSON(json: any): KycResponse; -export declare function KycResponseToJSONTyped(value?: KycResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=KycResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycResponse.d.ts.map b/dist/wallet/src/models/KycResponse.d.ts.map deleted file mode 100644 index 21ff1e5..0000000 --- a/dist/wallet/src/models/KycResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KycResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/KycResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAQzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAa7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5G"} \ No newline at end of file diff --git a/dist/wallet/src/models/KycResponse.js b/dist/wallet/src/models/KycResponse.js deleted file mode 100644 index 97d1ddc..0000000 --- a/dist/wallet/src/models/KycResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfKycResponse = instanceOfKycResponse; -exports.KycResponseFromJSON = KycResponseFromJSON; -exports.KycResponseFromJSONTyped = KycResponseFromJSONTyped; -exports.KycResponseToJSON = KycResponseToJSON; -exports.KycResponseToJSONTyped = KycResponseToJSONTyped; -const BankInfo_1 = require("./BankInfo"); -/** - * Check if a given object implements the KycResponse interface. - */ -function instanceOfKycResponse(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('firstName' in value) || value['firstName'] === undefined) - return false; - if (!('lastName' in value) || value['lastName'] === undefined) - return false; - if (!('nationalId' in value) || value['nationalId'] === undefined) - return false; - if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) - return false; - if (!('bankInfo' in value) || value['bankInfo'] === undefined) - return false; - return true; -} -function KycResponseFromJSON(json) { - return KycResponseFromJSONTyped(json, false); -} -function KycResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'firstName': json['firstName'], - 'lastName': json['lastName'], - 'nationalId': json['nationalId'], - 'dateOfBirth': json['dateOfBirth'], - 'bankInfo': (0, BankInfo_1.BankInfoFromJSON)(json['bankInfo']), - }; -} -function KycResponseToJSON(json) { - return KycResponseToJSONTyped(json, false); -} -function KycResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'nationalId': value['nationalId'], - 'dateOfBirth': value['dateOfBirth'], - 'bankInfo': (0, BankInfo_1.BankInfoToJSON)(value['bankInfo']), - }; -} -//# sourceMappingURL=KycResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/KycResponse.js.map b/dist/wallet/src/models/KycResponse.js.map deleted file mode 100644 index 1516082..0000000 --- a/dist/wallet/src/models/KycResponse.js.map +++ /dev/null @@ -1 +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AEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,UAAU,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACjD,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,UAAU,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanCreateRequest.d.ts b/dist/wallet/src/models/LoanCreateRequest.d.ts deleted file mode 100644 index 7d3a031..0000000 --- a/dist/wallet/src/models/LoanCreateRequest.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LoanToValueOptions } from './LoanToValueOptions'; -/** - * - * @export - * @interface LoanCreateRequest - */ -export interface LoanCreateRequest { - /** - * Intent to create a vault - * @type {string} - * @memberof LoanCreateRequest - */ - intent: LoanCreateRequestIntentEnum; - /** - * The name of the loan plan - * @type {string} - * @memberof LoanCreateRequest - */ - planName: string; - /** - * Collateral amount - * @type {string} - * @memberof LoanCreateRequest - */ - collateral?: string; - /** - * Debt amount - * @type {string} - * @memberof LoanCreateRequest - */ - debt?: string; - /** - * Coin symbol - * @type {string} - * @memberof LoanCreateRequest - */ - symbol: string; - /** - * - * @type {LoanToValueOptions} - * @memberof LoanCreateRequest - */ - loanToValueOption: LoanToValueOptions; -} -/** - * @export - */ -export declare const LoanCreateRequestIntentEnum: { - readonly CREATE: "create"; - readonly PREVIEW: "preview"; -}; -export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; -/** - * Check if a given object implements the LoanCreateRequest interface. - */ -export declare function instanceOfLoanCreateRequest(value: object): value is LoanCreateRequest; -export declare function LoanCreateRequestFromJSON(json: any): LoanCreateRequest; -export declare function LoanCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanCreateRequest; -export declare function LoanCreateRequestToJSON(json: any): LoanCreateRequest; -export declare function LoanCreateRequestToJSONTyped(value?: LoanCreateRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoanCreateRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanCreateRequest.d.ts.map b/dist/wallet/src/models/LoanCreateRequest.d.ts.map deleted file mode 100644 index 601f527..0000000 --- a/dist/wallet/src/models/LoanCreateRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,kBAAkB,CAAC;CACzC;AAGD;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAMrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAazG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxH"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanCreateRequest.js b/dist/wallet/src/models/LoanCreateRequest.js deleted file mode 100644 index 4f8ae7c..0000000 --- a/dist/wallet/src/models/LoanCreateRequest.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LoanCreateRequestIntentEnum = void 0; -exports.instanceOfLoanCreateRequest = instanceOfLoanCreateRequest; -exports.LoanCreateRequestFromJSON = LoanCreateRequestFromJSON; -exports.LoanCreateRequestFromJSONTyped = LoanCreateRequestFromJSONTyped; -exports.LoanCreateRequestToJSON = LoanCreateRequestToJSON; -exports.LoanCreateRequestToJSONTyped = LoanCreateRequestToJSONTyped; -const LoanToValueOptions_1 = require("./LoanToValueOptions"); -/** - * @export - */ -exports.LoanCreateRequestIntentEnum = { - CREATE: 'create', - PREVIEW: 'preview' -}; -/** - * Check if a given object implements the LoanCreateRequest interface. - */ -function instanceOfLoanCreateRequest(value) { - if (!('intent' in value) || value['intent'] === undefined) - return false; - if (!('planName' in value) || value['planName'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('loanToValueOption' in value) || value['loanToValueOption'] === undefined) - return false; - return true; -} -function LoanCreateRequestFromJSON(json) { - return LoanCreateRequestFromJSONTyped(json, false); -} -function LoanCreateRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'intent': json['intent'], - 'planName': json['planName'], - 'collateral': json['collateral'] == null ? undefined : json['collateral'], - 'debt': json['debt'] == null ? undefined : json['debt'], - 'symbol': json['symbol'], - 'loanToValueOption': (0, LoanToValueOptions_1.LoanToValueOptionsFromJSON)(json['loanToValueOption']), - }; -} -function LoanCreateRequestToJSON(json) { - return LoanCreateRequestToJSONTyped(json, false); -} -function LoanCreateRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'intent': value['intent'], - 'planName': value['planName'], - 'collateral': value['collateral'], - 'debt': value['debt'], - 'symbol': value['symbol'], - 'loanToValueOption': (0, LoanToValueOptions_1.LoanToValueOptionsToJSON)(value['loanToValueOption']), - }; -} -//# sourceMappingURL=LoanCreateRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanCreateRequest.js.map b/dist/wallet/src/models/LoanCreateRequest.js.map deleted file mode 100644 index 2a27d1d..0000000 --- a/dist/wallet/src/models/LoanCreateRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanCreateRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanCreateRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqEH,kEAMC;AAED,8DAEC;AAED,wEAaC;AAED,0DAEC;AAED,oEAcC;AA9GD,6DAK8B;AA+C9B;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,mBAAmB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACzE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,mBAAmB,EAAE,IAAA,+CAA0B,EAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,mBAAmB,EAAE,IAAA,6CAAwB,EAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;KAC5E,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlan.d.ts b/dist/wallet/src/models/LoanPlan.d.ts deleted file mode 100644 index 0ae8590..0000000 --- a/dist/wallet/src/models/LoanPlan.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Coin } from './Coin'; -import type { Currency } from './Currency'; -import type { DetailedLoanToValueOptions } from './DetailedLoanToValueOptions'; -/** - * - * @export - * @interface LoanPlan - */ -export interface LoanPlan { - /** - * The name of the loan plan - * @type {string} - * @memberof LoanPlan - */ - name: string; - /** - * The minimum collateralization ratio of the loan plan - * @type {string} - * @memberof LoanPlan - */ - minCollateralizationRatio: string; - /** - * - * @type {Array} - * @memberof LoanPlan - */ - acceptableCoins: Array; - /** - * The annual fee of the loan plan - * @type {string} - * @memberof LoanPlan - */ - fee: string; - /** - * - * @type {Currency} - * @memberof LoanPlan - */ - maxDebt: Currency; - /** - * - * @type {Currency} - * @memberof LoanPlan - */ - minDebt: Currency; - /** - * - * @type {Array} - * @memberof LoanPlan - */ - loanToValueOptions: Array; -} -/** - * Check if a given object implements the LoanPlan interface. - */ -export declare function instanceOfLoanPlan(value: object): value is LoanPlan; -export declare function LoanPlanFromJSON(json: any): LoanPlan; -export declare function LoanPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlan; -export declare function LoanPlanToJSON(json: any): LoanPlan; -export declare function LoanPlanToJSONTyped(value?: LoanPlan | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoanPlan.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlan.d.ts.map b/dist/wallet/src/models/LoanPlan.d.ts.map deleted file mode 100644 index adc7fdb..0000000 --- a/dist/wallet/src/models/LoanPlan.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanPlan.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanPlan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CACzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CASnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAcvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAetG"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlan.js b/dist/wallet/src/models/LoanPlan.js deleted file mode 100644 index f4bda7f..0000000 --- a/dist/wallet/src/models/LoanPlan.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLoanPlan = instanceOfLoanPlan; -exports.LoanPlanFromJSON = LoanPlanFromJSON; -exports.LoanPlanFromJSONTyped = LoanPlanFromJSONTyped; -exports.LoanPlanToJSON = LoanPlanToJSON; -exports.LoanPlanToJSONTyped = LoanPlanToJSONTyped; -const Coin_1 = require("./Coin"); -const Currency_1 = require("./Currency"); -const DetailedLoanToValueOptions_1 = require("./DetailedLoanToValueOptions"); -/** - * Check if a given object implements the LoanPlan interface. - */ -function instanceOfLoanPlan(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('minCollateralizationRatio' in value) || value['minCollateralizationRatio'] === undefined) - return false; - if (!('acceptableCoins' in value) || value['acceptableCoins'] === undefined) - return false; - if (!('fee' in value) || value['fee'] === undefined) - return false; - if (!('maxDebt' in value) || value['maxDebt'] === undefined) - return false; - if (!('minDebt' in value) || value['minDebt'] === undefined) - return false; - if (!('loanToValueOptions' in value) || value['loanToValueOptions'] === undefined) - return false; - return true; -} -function LoanPlanFromJSON(json) { - return LoanPlanFromJSONTyped(json, false); -} -function LoanPlanFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'minCollateralizationRatio': json['minCollateralizationRatio'], - 'acceptableCoins': (json['acceptableCoins'].map(Coin_1.CoinFromJSON)), - 'fee': json['fee'], - 'maxDebt': (0, Currency_1.CurrencyFromJSON)(json['maxDebt']), - 'minDebt': (0, Currency_1.CurrencyFromJSON)(json['minDebt']), - 'loanToValueOptions': (json['loanToValueOptions'].map(DetailedLoanToValueOptions_1.DetailedLoanToValueOptionsFromJSON)), - }; -} -function LoanPlanToJSON(json) { - return LoanPlanToJSONTyped(json, false); -} -function LoanPlanToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'minCollateralizationRatio': value['minCollateralizationRatio'], - 'acceptableCoins': (value['acceptableCoins'].map(Coin_1.CoinToJSON)), - 'fee': value['fee'], - 'maxDebt': (0, Currency_1.CurrencyToJSON)(value['maxDebt']), - 'minDebt': (0, Currency_1.CurrencyToJSON)(value['minDebt']), - 'loanToValueOptions': (value['loanToValueOptions'].map(DetailedLoanToValueOptions_1.DetailedLoanToValueOptionsToJSON)), - }; -} -//# sourceMappingURL=LoanPlan.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlan.js.map b/dist/wallet/src/models/LoanPlan.js.map deleted file mode 100644 index c42e19c..0000000 --- a/dist/wallet/src/models/LoanPlan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanPlan.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanPlan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8EH,gDASC;AAED,4CAEC;AAED,sDAcC;AAED,wCAEC;AAED,kDAeC;AA5HD,iCAKgB;AAEhB,yCAKoB;AAEpB,6EAKsC;AAoDtC;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,2BAA2B,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9G,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAA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IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,2BAA2B,EAAE,KAAK,CAAC,2BAA2B,CAAC;QAC/D,iBAAiB,EAAE,CAAE,KAAK,CAAC,iBAAiB,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;QAC7E,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC3C,SAAS,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC3C,oBAAoB,EAAE,CAAE,KAAK,CAAC,oBAAoB,CAAgB,CAAC,GAAG,CAAC,6DAAgC,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlanResponse.d.ts b/dist/wallet/src/models/LoanPlanResponse.d.ts deleted file mode 100644 index 6a76030..0000000 --- a/dist/wallet/src/models/LoanPlanResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LoanPlan } from './LoanPlan'; -/** - * - * @export - * @interface LoanPlanResponse - */ -export interface LoanPlanResponse { - /** - * - * @type {Array} - * @memberof LoanPlanResponse - */ - data: Array; -} -/** - * Check if a given object implements the LoanPlanResponse interface. - */ -export declare function instanceOfLoanPlanResponse(value: object): value is LoanPlanResponse; -export declare function LoanPlanResponseFromJSON(json: any): LoanPlanResponse; -export declare function LoanPlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlanResponse; -export declare function LoanPlanResponseToJSON(json: any): LoanPlanResponse; -export declare function LoanPlanResponseToJSONTyped(value?: LoanPlanResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoanPlanResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlanResponse.d.ts.map b/dist/wallet/src/models/LoanPlanResponse.d.ts.map deleted file mode 100644 index 79349ca..0000000 --- a/dist/wallet/src/models/LoanPlanResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanPlanResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanPlanResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlanResponse.js b/dist/wallet/src/models/LoanPlanResponse.js deleted file mode 100644 index 873122d..0000000 --- a/dist/wallet/src/models/LoanPlanResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLoanPlanResponse = instanceOfLoanPlanResponse; -exports.LoanPlanResponseFromJSON = LoanPlanResponseFromJSON; -exports.LoanPlanResponseFromJSONTyped = LoanPlanResponseFromJSONTyped; -exports.LoanPlanResponseToJSON = LoanPlanResponseToJSON; -exports.LoanPlanResponseToJSONTyped = LoanPlanResponseToJSONTyped; -const LoanPlan_1 = require("./LoanPlan"); -/** - * Check if a given object implements the LoanPlanResponse interface. - */ -function instanceOfLoanPlanResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function LoanPlanResponseFromJSON(json) { - return LoanPlanResponseFromJSONTyped(json, false); -} -function LoanPlanResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(LoanPlan_1.LoanPlanFromJSON)), - }; -} -function LoanPlanResponseToJSON(json) { - return LoanPlanResponseToJSONTyped(json, false); -} -function LoanPlanResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(LoanPlan_1.LoanPlanToJSON)), - }; -} -//# sourceMappingURL=LoanPlanResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanPlanResponse.js.map b/dist/wallet/src/models/LoanPlanResponse.js.map deleted file mode 100644 index 3cd7795..0000000 --- a/dist/wallet/src/models/LoanPlanResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanPlanResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanPlanResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,gEAGC;AAED,4DAEC;AAED,sEAQC;AAED,wDAEC;AAED,kEASC;AAxDD,yCAKoB;AAgBpB;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAgB,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAc,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanToValueOptions.d.ts b/dist/wallet/src/models/LoanToValueOptions.d.ts deleted file mode 100644 index 3a91883..0000000 --- a/dist/wallet/src/models/LoanToValueOptions.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * The loan to value percentage options - * @export - */ -export declare const LoanToValueOptions: { - readonly RISKY: "Risky"; - readonly NORMAL: "Normal"; - readonly SAFE: "Safe"; -}; -export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; -export declare function instanceOfLoanToValueOptions(value: any): boolean; -export declare function LoanToValueOptionsFromJSON(json: any): LoanToValueOptions; -export declare function LoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanToValueOptions; -export declare function LoanToValueOptionsToJSON(value?: LoanToValueOptions | null): any; -export declare function LoanToValueOptionsToJSONTyped(value: any, ignoreDiscriminator: boolean): LoanToValueOptions; -//# sourceMappingURL=LoanToValueOptions.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanToValueOptions.d.ts.map b/dist/wallet/src/models/LoanToValueOptions.d.ts.map deleted file mode 100644 index 89c121f..0000000 --- a/dist/wallet/src/models/LoanToValueOptions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanToValueOptions.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanToValueOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAG5F,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAShE;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAE3G;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,GAAG,CAE/E;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAE1G"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoanToValueOptions.js b/dist/wallet/src/models/LoanToValueOptions.js deleted file mode 100644 index f83c16a..0000000 --- a/dist/wallet/src/models/LoanToValueOptions.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LoanToValueOptions = void 0; -exports.instanceOfLoanToValueOptions = instanceOfLoanToValueOptions; -exports.LoanToValueOptionsFromJSON = LoanToValueOptionsFromJSON; -exports.LoanToValueOptionsFromJSONTyped = LoanToValueOptionsFromJSONTyped; -exports.LoanToValueOptionsToJSON = LoanToValueOptionsToJSON; -exports.LoanToValueOptionsToJSONTyped = LoanToValueOptionsToJSONTyped; -/** - * The loan to value percentage options - * @export - */ -exports.LoanToValueOptions = { - RISKY: 'Risky', - NORMAL: 'Normal', - SAFE: 'Safe' -}; -function instanceOfLoanToValueOptions(value) { - for (const key in exports.LoanToValueOptions) { - if (Object.prototype.hasOwnProperty.call(exports.LoanToValueOptions, key)) { - if (exports.LoanToValueOptions[key] === value) { - return true; - } - } - } - return false; -} -function LoanToValueOptionsFromJSON(json) { - return LoanToValueOptionsFromJSONTyped(json, false); -} -function LoanToValueOptionsFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function LoanToValueOptionsToJSON(value) { - return value; -} -function LoanToValueOptionsToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=LoanToValueOptions.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoanToValueOptions.js.map b/dist/wallet/src/models/LoanToValueOptions.js.map deleted file mode 100644 index 68bad53..0000000 --- a/dist/wallet/src/models/LoanToValueOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoanToValueOptions.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoanToValueOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,oEASC;AAED,gEAEC;AAED,0EAEC;AAED,4DAEC;AAED,sEAEC;AArCD;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAIX,SAAgB,4BAA4B,CAAC,KAAU;IACnD,KAAK,MAAM,GAAG,IAAI,0BAAkB,EAAE,CAAC;QACnC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,0BAAkB,EAAE,GAAG,CAAC,EAAE,CAAC;YAChE,IAAI,0BAAkB,CAAC,GAAsC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACvE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,OAAO,IAA0B,CAAC;AACtC,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAAiC;IACtE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAU,EAAE,mBAA4B;IAClF,OAAO,KAA2B,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponse.d.ts b/dist/wallet/src/models/LoansResponse.d.ts deleted file mode 100644 index 6d483de..0000000 --- a/dist/wallet/src/models/LoansResponse.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { BulletContent } from './BulletContent'; -import type { Currency } from './Currency'; -import type { LoanPlan } from './LoanPlan'; -/** - * - * @export - * @interface LoansResponse - */ -export interface LoansResponse { - /** - * Identifier for the vault. - * @type {string} - * @memberof LoansResponse - */ - id?: string; - /** - * Identifier for the user. - * @type {number} - * @memberof LoansResponse - */ - userId: number; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - liquidationPrice: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - collateral: Currency; - /** - * The collateralization ratio of the vault. - * @type {string} - * @memberof LoansResponse - */ - collateralizationRatio: string; - /** - * The loan to value of the vault. - * @type {string} - * @memberof LoansResponse - */ - loanToValue: string; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - debt: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - principal: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - scaledDebt: Currency; - /** - * - * @type {LoanPlan} - * @memberof LoansResponse - */ - plan: LoanPlan; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LoansResponse - */ - state: { - [key: string]: string | undefined; - }; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - updatedCollateralTokenBalance?: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - updatedDebtTokenBalance?: Currency; - /** - * - * @type {BulletContent} - * @memberof LoansResponse - */ - termsAndConditions?: BulletContent; -} -/** - * Check if a given object implements the LoansResponse interface. - */ -export declare function instanceOfLoansResponse(value: object): value is LoansResponse; -export declare function LoansResponseFromJSON(json: any): LoansResponse; -export declare function LoansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponse; -export declare function LoansResponseToJSON(json: any): LoansResponse; -export declare function LoansResponseToJSONTyped(value?: LoansResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoansResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponse.d.ts.map b/dist/wallet/src/models/LoansResponse.d.ts.map deleted file mode 100644 index 29f9607..0000000 --- a/dist/wallet/src/models/LoansResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoansResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,gBAAgB,EAAE,QAAQ,CAAC;IAC3B;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,QAAQ,CAAC;IACzC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAY7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAqBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsBhH"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponse.js b/dist/wallet/src/models/LoansResponse.js deleted file mode 100644 index 69ee698..0000000 --- a/dist/wallet/src/models/LoansResponse.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLoansResponse = instanceOfLoansResponse; -exports.LoansResponseFromJSON = LoansResponseFromJSON; -exports.LoansResponseFromJSONTyped = LoansResponseFromJSONTyped; -exports.LoansResponseToJSON = LoansResponseToJSON; -exports.LoansResponseToJSONTyped = LoansResponseToJSONTyped; -const BulletContent_1 = require("./BulletContent"); -const Currency_1 = require("./Currency"); -const LoanPlan_1 = require("./LoanPlan"); -/** - * Check if a given object implements the LoansResponse interface. - */ -function instanceOfLoansResponse(value) { - if (!('userId' in value) || value['userId'] === undefined) - return false; - if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) - return false; - if (!('collateral' in value) || value['collateral'] === undefined) - return false; - if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) - return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) - return false; - if (!('debt' in value) || value['debt'] === undefined) - return false; - if (!('principal' in value) || value['principal'] === undefined) - return false; - if (!('scaledDebt' in value) || value['scaledDebt'] === undefined) - return false; - if (!('plan' in value) || value['plan'] === undefined) - return false; - if (!('state' in value) || value['state'] === undefined) - return false; - return true; -} -function LoansResponseFromJSON(json) { - return LoansResponseFromJSONTyped(json, false); -} -function LoansResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'] == null ? undefined : json['id'], - 'userId': json['userId'], - 'liquidationPrice': (0, Currency_1.CurrencyFromJSON)(json['liquidationPrice']), - 'collateral': (0, Currency_1.CurrencyFromJSON)(json['collateral']), - 'collateralizationRatio': json['collateralizationRatio'], - 'loanToValue': json['loanToValue'], - 'debt': (0, Currency_1.CurrencyFromJSON)(json['debt']), - 'principal': (0, Currency_1.CurrencyFromJSON)(json['principal']), - 'scaledDebt': (0, Currency_1.CurrencyFromJSON)(json['scaledDebt']), - 'plan': (0, LoanPlan_1.LoanPlanFromJSON)(json['plan']), - 'state': json['state'], - 'updatedCollateralTokenBalance': json['updatedCollateralTokenBalance'] == null ? undefined : (0, Currency_1.CurrencyFromJSON)(json['updatedCollateralTokenBalance']), - 'updatedDebtTokenBalance': json['updatedDebtTokenBalance'] == null ? undefined : (0, Currency_1.CurrencyFromJSON)(json['updatedDebtTokenBalance']), - 'termsAndConditions': json['termsAndConditions'] == null ? undefined : (0, BulletContent_1.BulletContentFromJSON)(json['termsAndConditions']), - }; -} -function LoansResponseToJSON(json) { - return LoansResponseToJSONTyped(json, false); -} -function LoansResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'userId': value['userId'], - 'liquidationPrice': (0, Currency_1.CurrencyToJSON)(value['liquidationPrice']), - 'collateral': (0, Currency_1.CurrencyToJSON)(value['collateral']), - 'collateralizationRatio': value['collateralizationRatio'], - 'loanToValue': value['loanToValue'], - 'debt': (0, Currency_1.CurrencyToJSON)(value['debt']), - 'principal': (0, Currency_1.CurrencyToJSON)(value['principal']), - 'scaledDebt': (0, Currency_1.CurrencyToJSON)(value['scaledDebt']), - 'plan': (0, LoanPlan_1.LoanPlanToJSON)(value['plan']), - 'state': value['state'], - 'updatedCollateralTokenBalance': (0, Currency_1.CurrencyToJSON)(value['updatedCollateralTokenBalance']), - 'updatedDebtTokenBalance': (0, Currency_1.CurrencyToJSON)(value['updatedDebtTokenBalance']), - 'termsAndConditions': (0, BulletContent_1.BulletContentToJSON)(value['termsAndConditions']), - }; -} -//# sourceMappingURL=LoansResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponse.js.map b/dist/wallet/src/models/LoansResponse.js.map deleted file mode 100644 index 5b60fe1..0000000 --- a/dist/wallet/src/models/LoansResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoansResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwHH,0DAYC;AAED,sDAEC;AAED,gEAqBC;AAED,kDAEC;AAED,4DAsBC;AAvLD,mDAKyB;AAEzB,yCAKoB;AAEpB,yCAKoB;AA8FpB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,wBAAwB,IAAI,KAAK,CA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AC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,kBAAkB,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC7D,YAAY,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACjD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,MAAM,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC,WAAW,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC/C,YAAY,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,+BAA+B,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACvF,yBAAyB,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC3E,oBAAoB,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponseList.d.ts b/dist/wallet/src/models/LoansResponseList.d.ts deleted file mode 100644 index 02f269b..0000000 --- a/dist/wallet/src/models/LoansResponseList.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { LoansResponse } from './LoansResponse'; -/** - * - * @export - * @interface LoansResponseList - */ -export interface LoansResponseList { - /** - * - * @type {Array} - * @memberof LoansResponseList - */ - data: Array; -} -/** - * Check if a given object implements the LoansResponseList interface. - */ -export declare function instanceOfLoansResponseList(value: object): value is LoansResponseList; -export declare function LoansResponseListFromJSON(json: any): LoansResponseList; -export declare function LoansResponseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponseList; -export declare function LoansResponseListToJSON(json: any): LoansResponseList; -export declare function LoansResponseListToJSONTyped(value?: LoansResponseList | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoansResponseList.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponseList.d.ts.map b/dist/wallet/src/models/LoansResponseList.d.ts.map deleted file mode 100644 index bf660c7..0000000 --- a/dist/wallet/src/models/LoansResponseList.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansResponseList.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoansResponseList.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponseList.js b/dist/wallet/src/models/LoansResponseList.js deleted file mode 100644 index 2a8481a..0000000 --- a/dist/wallet/src/models/LoansResponseList.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLoansResponseList = instanceOfLoansResponseList; -exports.LoansResponseListFromJSON = LoansResponseListFromJSON; -exports.LoansResponseListFromJSONTyped = LoansResponseListFromJSONTyped; -exports.LoansResponseListToJSON = LoansResponseListToJSON; -exports.LoansResponseListToJSONTyped = LoansResponseListToJSONTyped; -const LoansResponse_1 = require("./LoansResponse"); -/** - * Check if a given object implements the LoansResponseList interface. - */ -function instanceOfLoansResponseList(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function LoansResponseListFromJSON(json) { - return LoansResponseListFromJSONTyped(json, false); -} -function LoansResponseListFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(LoansResponse_1.LoansResponseFromJSON)), - }; -} -function LoansResponseListToJSON(json) { - return LoansResponseListToJSONTyped(json, false); -} -function LoansResponseListToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(LoansResponse_1.LoansResponseToJSON)), - }; -} -//# sourceMappingURL=LoansResponseList.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoansResponseList.js.map b/dist/wallet/src/models/LoansResponseList.js.map deleted file mode 100644 index 874cfe8..0000000 --- a/dist/wallet/src/models/LoansResponseList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoansResponseList.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoansResponseList.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAxDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qCAAqB,CAAC,CAAC;KACpE,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAmB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoginRequest.d.ts b/dist/wallet/src/models/LoginRequest.d.ts deleted file mode 100644 index 0f113d7..0000000 --- a/dist/wallet/src/models/LoginRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface LoginRequest - */ -export interface LoginRequest { - /** - * user's email - * @type {string} - * @memberof LoginRequest - */ - email: string; - /** - * user's password - * @type {string} - * @memberof LoginRequest - */ - password: string; -} -/** - * Check if a given object implements the LoginRequest interface. - */ -export declare function instanceOfLoginRequest(value: object): value is LoginRequest; -export declare function LoginRequestFromJSON(json: any): LoginRequest; -export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest; -export declare function LoginRequestToJSON(json: any): LoginRequest; -export declare function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=LoginRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoginRequest.d.ts.map b/dist/wallet/src/models/LoginRequest.d.ts.map deleted file mode 100644 index 661efc4..0000000 --- a/dist/wallet/src/models/LoginRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoginRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoginRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/LoginRequest.js b/dist/wallet/src/models/LoginRequest.js deleted file mode 100644 index a1499a0..0000000 --- a/dist/wallet/src/models/LoginRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfLoginRequest = instanceOfLoginRequest; -exports.LoginRequestFromJSON = LoginRequestFromJSON; -exports.LoginRequestFromJSONTyped = LoginRequestFromJSONTyped; -exports.LoginRequestToJSON = LoginRequestToJSON; -exports.LoginRequestToJSONTyped = LoginRequestToJSONTyped; -/** - * Check if a given object implements the LoginRequest interface. - */ -function instanceOfLoginRequest(value) { - if (!('email' in value) || value['email'] === undefined) - return false; - if (!('password' in value) || value['password'] === undefined) - return false; - return true; -} -function LoginRequestFromJSON(json) { - return LoginRequestFromJSONTyped(json, false); -} -function LoginRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'email': json['email'], - 'password': json['password'], - }; -} -function LoginRequestToJSON(json) { - return LoginRequestToJSONTyped(json, false); -} -function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'email': value['email'], - 'password': value['password'], - }; -} -//# sourceMappingURL=LoginRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/LoginRequest.js.map b/dist/wallet/src/models/LoginRequest.js.map deleted file mode 100644 index ba404ee..0000000 --- a/dist/wallet/src/models/LoginRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoginRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/LoginRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/ModelError.d.ts b/dist/wallet/src/models/ModelError.d.ts deleted file mode 100644 index 69d43fa..0000000 --- a/dist/wallet/src/models/ModelError.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * Error message - * @type {string} - * @memberof ModelError - */ - msg: string; - /** - * - * @type {Array} - * @memberof ModelError - */ - reasons: Array; -} -/** - * Check if a given object implements the ModelError interface. - */ -export declare function instanceOfModelError(value: object): value is ModelError; -export declare function ModelErrorFromJSON(json: any): ModelError; -export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError; -export declare function ModelErrorToJSON(json: any): ModelError; -export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ModelError.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/ModelError.d.ts.map b/dist/wallet/src/models/ModelError.d.ts.map deleted file mode 100644 index 7c4c5e8..0000000 --- a/dist/wallet/src/models/ModelError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModelError.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/ModelError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAIvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1G"} \ No newline at end of file diff --git a/dist/wallet/src/models/ModelError.js b/dist/wallet/src/models/ModelError.js deleted file mode 100644 index 1ebe618..0000000 --- a/dist/wallet/src/models/ModelError.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfModelError = instanceOfModelError; -exports.ModelErrorFromJSON = ModelErrorFromJSON; -exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; -exports.ModelErrorToJSON = ModelErrorToJSON; -exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped; -/** - * Check if a given object implements the ModelError interface. - */ -function instanceOfModelError(value) { - if (!('msg' in value) || value['msg'] === undefined) - return false; - if (!('reasons' in value) || value['reasons'] === undefined) - return false; - return true; -} -function ModelErrorFromJSON(json) { - return ModelErrorFromJSONTyped(json, false); -} -function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'msg': json['msg'], - 'reasons': json['reasons'], - }; -} -function ModelErrorToJSON(json) { - return ModelErrorToJSONTyped(json, false); -} -function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'msg': value['msg'], - 'reasons': value['reasons'], - }; -} -//# sourceMappingURL=ModelError.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/ModelError.js.map b/dist/wallet/src/models/ModelError.js.map deleted file mode 100644 index 2d4f86c..0000000 --- a/dist/wallet/src/models/ModelError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/ModelError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oDAIC;AAED,gDAEC;AAED,0DASC;AAED,4CAEC;AAED,sDAUC;AAtCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Network.d.ts b/dist/wallet/src/models/Network.d.ts deleted file mode 100644 index bd6ce63..0000000 --- a/dist/wallet/src/models/Network.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Network - */ -export interface Network { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Network - */ - name: { - [key: string]: string | undefined; - }; - /** - * - * @type {string} - * @memberof Network - */ - logoUri: string; -} -/** - * Check if a given object implements the Network interface. - */ -export declare function instanceOfNetwork(value: object): value is Network; -export declare function NetworkFromJSON(json: any): Network; -export declare function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network; -export declare function NetworkToJSON(json: any): Network; -export declare function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Network.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Network.d.ts.map b/dist/wallet/src/models/Network.d.ts.map deleted file mode 100644 index 12449c3..0000000 --- a/dist/wallet/src/models/Network.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Network.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Network.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Network.js b/dist/wallet/src/models/Network.js deleted file mode 100644 index 8f0760e..0000000 --- a/dist/wallet/src/models/Network.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfNetwork = instanceOfNetwork; -exports.NetworkFromJSON = NetworkFromJSON; -exports.NetworkFromJSONTyped = NetworkFromJSONTyped; -exports.NetworkToJSON = NetworkToJSON; -exports.NetworkToJSONTyped = NetworkToJSONTyped; -/** - * Check if a given object implements the Network interface. - */ -function instanceOfNetwork(value) { - if (!('name' in value) || value['name'] === undefined) - return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) - return false; - return true; -} -function NetworkFromJSON(json) { - return NetworkFromJSONTyped(json, false); -} -function NetworkFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'name': json['name'], - 'logoUri': json['logoUri'], - }; -} -function NetworkToJSON(json) { - return NetworkToJSONTyped(json, false); -} -function NetworkToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'name': value['name'], - 'logoUri': value['logoUri'], - }; -} -//# sourceMappingURL=Network.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Network.js.map b/dist/wallet/src/models/Network.js.map deleted file mode 100644 index e5e9d66..0000000 --- a/dist/wallet/src/models/Network.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Network.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,8CAIC;AAED,0CAEC;AAED,oDASC;AAED,sCAEC;AAED,gDAUC;AAtCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Payment.d.ts b/dist/wallet/src/models/Payment.d.ts deleted file mode 100644 index 1969f93..0000000 --- a/dist/wallet/src/models/Payment.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Payment - */ -export interface Payment { - /** - * Payment amount - * @type {string} - * @memberof Payment - */ - amount: string; - /** - * Payment hash - * @type {string} - * @memberof Payment - */ - hash: string; - /** - * Payment URL - * @type {string} - * @memberof Payment - */ - url: string; - /** - * Sender first name - * @type {string} - * @memberof Payment - */ - senderFirstName: string; - /** - * Payment text - * @type {string} - * @memberof Payment - */ - text: string; - /** - * Share URL - * @type {string} - * @memberof Payment - */ - shareUrl: string; -} -/** - * Check if a given object implements the Payment interface. - */ -export declare function instanceOfPayment(value: object): value is Payment; -export declare function PaymentFromJSON(json: any): Payment; -export declare function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payment; -export declare function PaymentToJSON(json: any): Payment; -export declare function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Payment.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Payment.d.ts.map b/dist/wallet/src/models/Payment.d.ts.map deleted file mode 100644 index 451ad98..0000000 --- a/dist/wallet/src/models/Payment.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Payment.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAQjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAarF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcpG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Payment.js b/dist/wallet/src/models/Payment.js deleted file mode 100644 index e1c4033..0000000 --- a/dist/wallet/src/models/Payment.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPayment = instanceOfPayment; -exports.PaymentFromJSON = PaymentFromJSON; -exports.PaymentFromJSONTyped = PaymentFromJSONTyped; -exports.PaymentToJSON = PaymentToJSON; -exports.PaymentToJSONTyped = PaymentToJSONTyped; -/** - * Check if a given object implements the Payment interface. - */ -function instanceOfPayment(value) { - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('hash' in value) || value['hash'] === undefined) - return false; - if (!('url' in value) || value['url'] === undefined) - return false; - if (!('senderFirstName' in value) || value['senderFirstName'] === undefined) - return false; - if (!('text' in value) || value['text'] === undefined) - return false; - if (!('shareUrl' in value) || value['shareUrl'] === undefined) - return false; - return true; -} -function PaymentFromJSON(json) { - return PaymentFromJSONTyped(json, false); -} -function PaymentFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'amount': json['amount'], - 'hash': json['hash'], - 'url': json['url'], - 'senderFirstName': json['senderFirstName'], - 'text': json['text'], - 'shareUrl': json['shareUrl'], - }; -} -function PaymentToJSON(json) { - return PaymentToJSONTyped(json, false); -} -function PaymentToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'amount': value['amount'], - 'hash': value['hash'], - 'url': value['url'], - 'senderFirstName': value['senderFirstName'], - 'text': value['text'], - 'shareUrl': value['shareUrl'], - }; -} -//# sourceMappingURL=Payment.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Payment.js.map b/dist/wallet/src/models/Payment.js.map deleted file mode 100644 index e607219..0000000 --- a/dist/wallet/src/models/Payment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Payment.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkDH,8CAQC;AAED,0CAEC;AAED,oDAaC;AAED,sCAEC;AAED,gDAcC;AAlDD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,C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AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/PaymentRequest.d.ts b/dist/wallet/src/models/PaymentRequest.d.ts deleted file mode 100644 index 905dd2a..0000000 --- a/dist/wallet/src/models/PaymentRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface PaymentRequest - */ -export interface PaymentRequest { - /** - * Payment amount - * @type {string} - * @memberof PaymentRequest - */ - amount: string; -} -/** - * Check if a given object implements the PaymentRequest interface. - */ -export declare function instanceOfPaymentRequest(value: object): value is PaymentRequest; -export declare function PaymentRequestFromJSON(json: any): PaymentRequest; -export declare function PaymentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentRequest; -export declare function PaymentRequestToJSON(json: any): PaymentRequest; -export declare function PaymentRequestToJSONTyped(value?: PaymentRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PaymentRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/PaymentRequest.d.ts.map b/dist/wallet/src/models/PaymentRequest.d.ts.map deleted file mode 100644 index 10e0f4d..0000000 --- a/dist/wallet/src/models/PaymentRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/PaymentRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/wallet/src/models/PaymentRequest.js b/dist/wallet/src/models/PaymentRequest.js deleted file mode 100644 index 0808456..0000000 --- a/dist/wallet/src/models/PaymentRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPaymentRequest = instanceOfPaymentRequest; -exports.PaymentRequestFromJSON = PaymentRequestFromJSON; -exports.PaymentRequestFromJSONTyped = PaymentRequestFromJSONTyped; -exports.PaymentRequestToJSON = PaymentRequestToJSON; -exports.PaymentRequestToJSONTyped = PaymentRequestToJSONTyped; -/** - * Check if a given object implements the PaymentRequest interface. - */ -function instanceOfPaymentRequest(value) { - if (!('amount' in value) || value['amount'] === undefined) - return false; - return true; -} -function PaymentRequestFromJSON(json) { - return PaymentRequestFromJSONTyped(json, false); -} -function PaymentRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'amount': json['amount'], - }; -} -function PaymentRequestToJSON(json) { - return PaymentRequestToJSONTyped(json, false); -} -function PaymentRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'amount': value['amount'], - }; -} -//# sourceMappingURL=PaymentRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/PaymentRequest.js.map b/dist/wallet/src/models/PaymentRequest.js.map deleted file mode 100644 index 5fcc9b0..0000000 --- a/dist/wallet/src/models/PaymentRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/PaymentRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAnCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts b/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts deleted file mode 100644 index f061a2c..0000000 --- a/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface PhoneOtpSubmitRequest - */ -export interface PhoneOtpSubmitRequest { - /** - * Confirmation code - * @type {number} - * @memberof PhoneOtpSubmitRequest - */ - code: number; -} -/** - * Check if a given object implements the PhoneOtpSubmitRequest interface. - */ -export declare function instanceOfPhoneOtpSubmitRequest(value: object): value is PhoneOtpSubmitRequest; -export declare function PhoneOtpSubmitRequestFromJSON(json: any): PhoneOtpSubmitRequest; -export declare function PhoneOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneOtpSubmitRequest; -export declare function PhoneOtpSubmitRequestToJSON(json: any): PhoneOtpSubmitRequest; -export declare function PhoneOtpSubmitRequestToJSONTyped(value?: PhoneOtpSubmitRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=PhoneOtpSubmitRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map b/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map deleted file mode 100644 index 70a1f51..0000000 --- a/dist/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PhoneOtpSubmitRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/PhoneOtpSubmitRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/wallet/src/models/PhoneOtpSubmitRequest.js b/dist/wallet/src/models/PhoneOtpSubmitRequest.js deleted file mode 100644 index 46e6bc4..0000000 --- a/dist/wallet/src/models/PhoneOtpSubmitRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfPhoneOtpSubmitRequest = instanceOfPhoneOtpSubmitRequest; -exports.PhoneOtpSubmitRequestFromJSON = PhoneOtpSubmitRequestFromJSON; -exports.PhoneOtpSubmitRequestFromJSONTyped = PhoneOtpSubmitRequestFromJSONTyped; -exports.PhoneOtpSubmitRequestToJSON = PhoneOtpSubmitRequestToJSON; -exports.PhoneOtpSubmitRequestToJSONTyped = PhoneOtpSubmitRequestToJSONTyped; -/** - * Check if a given object implements the PhoneOtpSubmitRequest interface. - */ -function instanceOfPhoneOtpSubmitRequest(value) { - if (!('code' in value) || value['code'] === undefined) - return false; - return true; -} -function PhoneOtpSubmitRequestFromJSON(json) { - return PhoneOtpSubmitRequestFromJSONTyped(json, false); -} -function PhoneOtpSubmitRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'code': json['code'], - }; -} -function PhoneOtpSubmitRequestToJSON(json) { - return PhoneOtpSubmitRequestToJSONTyped(json, false); -} -function PhoneOtpSubmitRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'code': value['code'], - }; -} -//# sourceMappingURL=PhoneOtpSubmitRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/PhoneOtpSubmitRequest.js.map b/dist/wallet/src/models/PhoneOtpSubmitRequest.js.map deleted file mode 100644 index 2c13979..0000000 --- a/dist/wallet/src/models/PhoneOtpSubmitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PhoneOtpSubmitRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/PhoneOtpSubmitRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAGC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAnCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/ProfileResponse.d.ts b/dist/wallet/src/models/ProfileResponse.d.ts deleted file mode 100644 index be885aa..0000000 --- a/dist/wallet/src/models/ProfileResponse.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { User } from './User'; -import type { Referral } from './Referral'; -import type { BankInfo } from './BankInfo'; -/** - * - * @export - * @interface ProfileResponse - */ -export interface ProfileResponse { - /** - * - * @type {Referral} - * @memberof ProfileResponse - */ - referral: Referral; - /** - * - * @type {number} - * @memberof ProfileResponse - */ - points: number; - /** - * - * @type {User} - * @memberof ProfileResponse - */ - user: User; - /** - * - * @type {Array} - * @memberof ProfileResponse - */ - bankInfo: Array; -} -/** - * Check if a given object implements the ProfileResponse interface. - */ -export declare function instanceOfProfileResponse(value: object): value is ProfileResponse; -export declare function ProfileResponseFromJSON(json: any): ProfileResponse; -export declare function ProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileResponse; -export declare function ProfileResponseToJSON(json: any): ProfileResponse; -export declare function ProfileResponseToJSONTyped(value?: ProfileResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ProfileResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/ProfileResponse.d.ts.map b/dist/wallet/src/models/ProfileResponse.d.ts.map deleted file mode 100644 index 478a552..0000000 --- a/dist/wallet/src/models/ProfileResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProfileResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/ProfileResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAMjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"} \ No newline at end of file diff --git a/dist/wallet/src/models/ProfileResponse.js b/dist/wallet/src/models/ProfileResponse.js deleted file mode 100644 index c7b8974..0000000 --- a/dist/wallet/src/models/ProfileResponse.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfProfileResponse = instanceOfProfileResponse; -exports.ProfileResponseFromJSON = ProfileResponseFromJSON; -exports.ProfileResponseFromJSONTyped = ProfileResponseFromJSONTyped; -exports.ProfileResponseToJSON = ProfileResponseToJSON; -exports.ProfileResponseToJSONTyped = ProfileResponseToJSONTyped; -const User_1 = require("./User"); -const Referral_1 = require("./Referral"); -const BankInfo_1 = require("./BankInfo"); -/** - * Check if a given object implements the ProfileResponse interface. - */ -function instanceOfProfileResponse(value) { - if (!('referral' in value) || value['referral'] === undefined) - return false; - if (!('points' in value) || value['points'] === undefined) - return false; - if (!('user' in value) || value['user'] === undefined) - return false; - if (!('bankInfo' in value) || value['bankInfo'] === undefined) - return false; - return true; -} -function ProfileResponseFromJSON(json) { - return ProfileResponseFromJSONTyped(json, false); -} -function ProfileResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'referral': (0, Referral_1.ReferralFromJSON)(json['referral']), - 'points': json['points'], - 'user': (0, User_1.UserFromJSON)(json['user']), - 'bankInfo': (json['bankInfo'].map(BankInfo_1.BankInfoFromJSON)), - }; -} -function ProfileResponseToJSON(json) { - return ProfileResponseToJSONTyped(json, false); -} -function ProfileResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'referral': (0, Referral_1.ReferralToJSON)(value['referral']), - 'points': value['points'], - 'user': (0, User_1.UserToJSON)(value['user']), - 'bankInfo': (value['bankInfo'].map(BankInfo_1.BankInfoToJSON)), - }; -} -//# sourceMappingURL=ProfileResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/ProfileResponse.js.map b/dist/wallet/src/models/ProfileResponse.js.map deleted file mode 100644 index 96e924d..0000000 --- a/dist/wallet/src/models/ProfileResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProfileResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/ProfileResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4DH,8DAMC;AAED,0DAEC;AAED,oEAWC;AAED,sDAEC;AAED,gEAYC;AAjGD,iCAKgB;AAEhB,yCAKoB;AAEpB,yCAKoB;AAkCpB;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,C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src/models/Redemption.d.ts b/dist/wallet/src/models/Redemption.d.ts deleted file mode 100644 index ac7e286..0000000 --- a/dist/wallet/src/models/Redemption.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Currency } from './Currency'; -import type { Timestamp } from './Timestamp'; -import type { BankInfo } from './BankInfo'; -/** - * - * @export - * @interface Redemption - */ -export interface Redemption { - /** - * - * @type {Currency} - * @memberof Redemption - */ - amount: Currency; - /** - * - * @type {BankInfo} - * @memberof Redemption - */ - destinationBankInfo: BankInfo; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Redemption - */ - status: { - [key: string]: string | undefined; - }; - /** - * The ID of the redemption request - * @type {string} - * @memberof Redemption - */ - id: string; - /** - * - * @type {Timestamp} - * @memberof Redemption - */ - createdAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof Redemption - */ - updatedAt?: Timestamp; - /** - * The Paya tracking code - * @type {string} - * @memberof Redemption - */ - payaTrackingCode?: string; -} -/** - * Check if a given object implements the Redemption interface. - */ -export declare function instanceOfRedemption(value: object): value is Redemption; -export declare function RedemptionFromJSON(json: any): Redemption; -export declare function RedemptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Redemption; -export declare function RedemptionToJSON(json: any): Redemption; -export declare function RedemptionToJSONTyped(value?: Redemption | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Redemption.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Redemption.d.ts.map b/dist/wallet/src/models/Redemption.d.ts.map deleted file mode 100644 index 0f10423..0000000 --- a/dist/wallet/src/models/Redemption.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Redemption.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Redemption.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,EAAE,QAAQ,CAAC;IAC9B;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAc3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe1G"} \ No newline at end of file diff --git a/dist/wallet/src/models/Redemption.js b/dist/wallet/src/models/Redemption.js deleted file mode 100644 index 439d9c6..0000000 --- a/dist/wallet/src/models/Redemption.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfRedemption = instanceOfRedemption; -exports.RedemptionFromJSON = RedemptionFromJSON; -exports.RedemptionFromJSONTyped = RedemptionFromJSONTyped; -exports.RedemptionToJSON = RedemptionToJSON; -exports.RedemptionToJSONTyped = RedemptionToJSONTyped; -const Currency_1 = require("./Currency"); -const Timestamp_1 = require("./Timestamp"); -const BankInfo_1 = require("./BankInfo"); -/** - * Check if a given object implements the Redemption interface. - */ -function instanceOfRedemption(value) { - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('destinationBankInfo' in value) || value['destinationBankInfo'] === undefined) - return false; - if (!('status' in value) || value['status'] === undefined) - return false; - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) - return false; - return true; -} -function RedemptionFromJSON(json) { - return RedemptionFromJSONTyped(json, false); -} -function RedemptionFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), - 'destinationBankInfo': (0, BankInfo_1.BankInfoFromJSON)(json['destinationBankInfo']), - 'status': json['status'], - 'id': json['id'], - 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), - 'updatedAt': json['updatedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['updatedAt']), - 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], - }; -} -function RedemptionToJSON(json) { - return RedemptionToJSONTyped(json, false); -} -function RedemptionToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), - 'destinationBankInfo': (0, BankInfo_1.BankInfoToJSON)(value['destinationBankInfo']), - 'status': value['status'], - 'id': value['id'], - 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), - 'updatedAt': (0, Timestamp_1.TimestampToJSON)(value['updatedAt']), - 'payaTrackingCode': value['payaTrackingCode'], - }; -} -//# sourceMappingURL=Redemption.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Redemption.js.map b/dist/wallet/src/models/Redemption.js.map deleted file mode 100644 index 24e0ab5..0000000 --- a/dist/wallet/src/models/Redemption.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Redemption.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Redemption.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8EH,oDAOC;AAED,gDAEC;AAED,0DAcC;AAED,4CAEC;AAED,sDAeC;AA1HD,yCAKoB;AAEpB,2CAKqB;AAErB,yCAKoB;AAoDpB;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,qBAAqB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClG,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,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AC,CAAC;QACnE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionRequest.d.ts b/dist/wallet/src/models/RedemptionRequest.d.ts deleted file mode 100644 index a450ba4..0000000 --- a/dist/wallet/src/models/RedemptionRequest.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface RedemptionRequest - */ -export interface RedemptionRequest { - /** - * The amount to be redeemed in ZAR - * @type {string} - * @memberof RedemptionRequest - */ - amount: string; - /** - * The card number to which the redemption amount will be transferred - * @type {string} - * @memberof RedemptionRequest - */ - destinationCardNumber: string; - /** - * The SMS OTP code - * @type {number} - * @memberof RedemptionRequest - */ - smsOtp: number; -} -/** - * Check if a given object implements the RedemptionRequest interface. - */ -export declare function instanceOfRedemptionRequest(value: object): value is RedemptionRequest; -export declare function RedemptionRequestFromJSON(json: any): RedemptionRequest; -export declare function RedemptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionRequest; -export declare function RedemptionRequestToJSON(json: any): RedemptionRequest; -export declare function RedemptionRequestToJSONTyped(value?: RedemptionRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=RedemptionRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionRequest.d.ts.map b/dist/wallet/src/models/RedemptionRequest.d.ts.map deleted file mode 100644 index 5012f9f..0000000 --- a/dist/wallet/src/models/RedemptionRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/RedemptionRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"} \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionRequest.js b/dist/wallet/src/models/RedemptionRequest.js deleted file mode 100644 index c9c5985..0000000 --- a/dist/wallet/src/models/RedemptionRequest.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfRedemptionRequest = instanceOfRedemptionRequest; -exports.RedemptionRequestFromJSON = RedemptionRequestFromJSON; -exports.RedemptionRequestFromJSONTyped = RedemptionRequestFromJSONTyped; -exports.RedemptionRequestToJSON = RedemptionRequestToJSON; -exports.RedemptionRequestToJSONTyped = RedemptionRequestToJSONTyped; -/** - * Check if a given object implements the RedemptionRequest interface. - */ -function instanceOfRedemptionRequest(value) { - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('destinationCardNumber' in value) || value['destinationCardNumber'] === undefined) - return false; - if (!('smsOtp' in value) || value['smsOtp'] === undefined) - return false; - return true; -} -function RedemptionRequestFromJSON(json) { - return RedemptionRequestFromJSONTyped(json, false); -} -function RedemptionRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'amount': json['amount'], - 'destinationCardNumber': json['destinationCardNumber'], - 'smsOtp': json['SmsOtp'], - }; -} -function RedemptionRequestToJSON(json) { - return RedemptionRequestToJSONTyped(json, false); -} -function RedemptionRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'amount': value['amount'], - 'destinationCardNumber': value['destinationCardNumber'], - 'SmsOtp': value['smsOtp'], - }; -} -//# sourceMappingURL=RedemptionRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionRequest.js.map b/dist/wallet/src/models/RedemptionRequest.js.map deleted file mode 100644 index 12367ad..0000000 --- a/dist/wallet/src/models/RedemptionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/RedemptionRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,kEAKC;AAED,8DAEC;AAED,wEAUC;AAED,0DAEC;AAED,oEAWC;AAzCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,uBAAuB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtG,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACtD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionResponse.d.ts b/dist/wallet/src/models/RedemptionResponse.d.ts deleted file mode 100644 index 7d43188..0000000 --- a/dist/wallet/src/models/RedemptionResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Redemption } from './Redemption'; -/** - * - * @export - * @interface RedemptionResponse - */ -export interface RedemptionResponse { - /** - * - * @type {Array} - * @memberof RedemptionResponse - */ - data: Array; -} -/** - * Check if a given object implements the RedemptionResponse interface. - */ -export declare function instanceOfRedemptionResponse(value: object): value is RedemptionResponse; -export declare function RedemptionResponseFromJSON(json: any): RedemptionResponse; -export declare function RedemptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionResponse; -export declare function RedemptionResponseToJSON(json: any): RedemptionResponse; -export declare function RedemptionResponseToJSONTyped(value?: RedemptionResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=RedemptionResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionResponse.d.ts.map b/dist/wallet/src/models/RedemptionResponse.d.ts.map deleted file mode 100644 index 00edbe0..0000000 --- a/dist/wallet/src/models/RedemptionResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/RedemptionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionResponse.js b/dist/wallet/src/models/RedemptionResponse.js deleted file mode 100644 index 7f09792..0000000 --- a/dist/wallet/src/models/RedemptionResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfRedemptionResponse = instanceOfRedemptionResponse; -exports.RedemptionResponseFromJSON = RedemptionResponseFromJSON; -exports.RedemptionResponseFromJSONTyped = RedemptionResponseFromJSONTyped; -exports.RedemptionResponseToJSON = RedemptionResponseToJSON; -exports.RedemptionResponseToJSONTyped = RedemptionResponseToJSONTyped; -const Redemption_1 = require("./Redemption"); -/** - * Check if a given object implements the RedemptionResponse interface. - */ -function instanceOfRedemptionResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function RedemptionResponseFromJSON(json) { - return RedemptionResponseFromJSONTyped(json, false); -} -function RedemptionResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Redemption_1.RedemptionFromJSON)), - }; -} -function RedemptionResponseToJSON(json) { - return RedemptionResponseToJSONTyped(json, false); -} -function RedemptionResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Redemption_1.RedemptionToJSON)), - }; -} -//# sourceMappingURL=RedemptionResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/RedemptionResponse.js.map b/dist/wallet/src/models/RedemptionResponse.js.map deleted file mode 100644 index 6257b24..0000000 --- a/dist/wallet/src/models/RedemptionResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RedemptionResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/RedemptionResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,6CAKsB;AAgBtB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAgB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Referral.d.ts b/dist/wallet/src/models/Referral.d.ts deleted file mode 100644 index 7eddf9c..0000000 --- a/dist/wallet/src/models/Referral.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface Referral - */ -export interface Referral { - /** - * - * @type {number} - * @memberof Referral - */ - id: number; - /** - * - * @type {number} - * @memberof Referral - */ - referrerId: number; - /** - * - * @type {string} - * @memberof Referral - */ - name?: string | null; - /** - * - * @type {number} - * @memberof Referral - */ - usageLimit: number; - /** - * - * @type {number} - * @memberof Referral - */ - usageCount: number; - /** - * - * @type {Timestamp} - * @memberof Referral - */ - createdAt: Timestamp; - /** - * - * @type {string} - * @memberof Referral - */ - link?: string | null; - /** - * - * @type {string} - * @memberof Referral - */ - shareUrl?: string; -} -/** - * Check if a given object implements the Referral interface. - */ -export declare function instanceOfReferral(value: object): value is Referral; -export declare function ReferralFromJSON(json: any): Referral; -export declare function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean): Referral; -export declare function ReferralToJSON(json: any): Referral; -export declare function ReferralToJSONTyped(value?: Referral | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Referral.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Referral.d.ts.map b/dist/wallet/src/models/Referral.d.ts.map deleted file mode 100644 index 5e0a601..0000000 --- a/dist/wallet/src/models/Referral.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referral.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Referral.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAOnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAevF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBtG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Referral.js b/dist/wallet/src/models/Referral.js deleted file mode 100644 index e0e4fbc..0000000 --- a/dist/wallet/src/models/Referral.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfReferral = instanceOfReferral; -exports.ReferralFromJSON = ReferralFromJSON; -exports.ReferralFromJSONTyped = ReferralFromJSONTyped; -exports.ReferralToJSON = ReferralToJSON; -exports.ReferralToJSONTyped = ReferralToJSONTyped; -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the Referral interface. - */ -function instanceOfReferral(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('referrerId' in value) || value['referrerId'] === undefined) - return false; - if (!('usageLimit' in value) || value['usageLimit'] === undefined) - return false; - if (!('usageCount' in value) || value['usageCount'] === undefined) - return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) - return false; - return true; -} -function ReferralFromJSON(json) { - return ReferralFromJSONTyped(json, false); -} -function ReferralFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'referrerId': json['referrerId'], - 'name': json['name'] == null ? undefined : json['name'], - 'usageLimit': json['usageLimit'], - 'usageCount': json['usageCount'], - 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), - 'link': json['link'] == null ? undefined : json['link'], - 'shareUrl': json['shareUrl'] == null ? undefined : json['shareUrl'], - }; -} -function ReferralToJSON(json) { - return ReferralToJSONTyped(json, false); -} -function ReferralToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'referrerId': value['referrerId'], - 'name': value['name'], - 'usageLimit': value['usageLimit'], - 'usageCount': value['usageCount'], - 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), - 'link': value['link'], - 'shareUrl': value['shareUrl'], - }; -} -//# sourceMappingURL=Referral.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Referral.js.map b/dist/wallet/src/models/Referral.js.map deleted file mode 100644 index df13aff..0000000 --- a/dist/wallet/src/models/Referral.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referral.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Referral.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsEH,gDAOC;AAED,4CAEC;AAED,sDAeC;AAED,wCAEC;AAED,kDAgBC;AApHD,2CAKqB;AA0DrB;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,YA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ReferralResponse.d.ts b/dist/wallet/src/models/ReferralResponse.d.ts deleted file mode 100644 index 81ecbfc..0000000 --- a/dist/wallet/src/models/ReferralResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Referral } from './Referral'; -/** - * - * @export - * @interface ReferralResponse - */ -export interface ReferralResponse { - /** - * - * @type {Array} - * @memberof ReferralResponse - */ - data: Array; -} -/** - * Check if a given object implements the ReferralResponse interface. - */ -export declare function instanceOfReferralResponse(value: object): value is ReferralResponse; -export declare function ReferralResponseFromJSON(json: any): ReferralResponse; -export declare function ReferralResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralResponse; -export declare function ReferralResponseToJSON(json: any): ReferralResponse; -export declare function ReferralResponseToJSONTyped(value?: ReferralResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=ReferralResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/ReferralResponse.d.ts.map b/dist/wallet/src/models/ReferralResponse.d.ts.map deleted file mode 100644 index c305b7d..0000000 --- a/dist/wallet/src/models/ReferralResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferralResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/ReferralResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"} \ No newline at end of file diff --git a/dist/wallet/src/models/ReferralResponse.js b/dist/wallet/src/models/ReferralResponse.js deleted file mode 100644 index e13f9bf..0000000 --- a/dist/wallet/src/models/ReferralResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfReferralResponse = instanceOfReferralResponse; -exports.ReferralResponseFromJSON = ReferralResponseFromJSON; -exports.ReferralResponseFromJSONTyped = ReferralResponseFromJSONTyped; -exports.ReferralResponseToJSON = ReferralResponseToJSON; -exports.ReferralResponseToJSONTyped = ReferralResponseToJSONTyped; -const Referral_1 = require("./Referral"); -/** - * Check if a given object implements the ReferralResponse interface. - */ -function instanceOfReferralResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function ReferralResponseFromJSON(json) { - return ReferralResponseFromJSONTyped(json, false); -} -function ReferralResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Referral_1.ReferralFromJSON)), - }; -} -function ReferralResponseToJSON(json) { - return ReferralResponseToJSONTyped(json, false); -} -function ReferralResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Referral_1.ReferralToJSON)), - }; -} -//# sourceMappingURL=ReferralResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/ReferralResponse.js.map b/dist/wallet/src/models/ReferralResponse.js.map deleted file mode 100644 index ac16481..0000000 --- a/dist/wallet/src/models/ReferralResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferralResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/ReferralResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,gEAGC;AAED,4DAEC;AAED,sEAQC;AAED,wDAEC;AAED,kEASC;AAxDD,yCAKoB;AAgBpB;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAgB,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAc,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/RepayLoanRequest.d.ts b/dist/wallet/src/models/RepayLoanRequest.d.ts deleted file mode 100644 index 360fadf..0000000 --- a/dist/wallet/src/models/RepayLoanRequest.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface RepayLoanRequest - */ -export interface RepayLoanRequest { - /** - * Intent to repay a loan - * @type {string} - * @memberof RepayLoanRequest - */ - intent: RepayLoanRequestIntentEnum; - /** - * The id of a loan - * @type {string} - * @memberof RepayLoanRequest - */ - loanId: string; -} -/** - * @export - */ -export declare const RepayLoanRequestIntentEnum: { - readonly REPAY: "Repay"; - readonly PREVIEW: "Preview"; -}; -export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; -/** - * Check if a given object implements the RepayLoanRequest interface. - */ -export declare function instanceOfRepayLoanRequest(value: object): value is RepayLoanRequest; -export declare function RepayLoanRequestFromJSON(json: any): RepayLoanRequest; -export declare function RepayLoanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepayLoanRequest; -export declare function RepayLoanRequestToJSON(json: any): RepayLoanRequest; -export declare function RepayLoanRequestToJSONTyped(value?: RepayLoanRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=RepayLoanRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/RepayLoanRequest.d.ts.map b/dist/wallet/src/models/RepayLoanRequest.d.ts.map deleted file mode 100644 index 98c566f..0000000 --- a/dist/wallet/src/models/RepayLoanRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RepayLoanRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/RepayLoanRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAGD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CASvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtH"} \ No newline at end of file diff --git a/dist/wallet/src/models/RepayLoanRequest.js b/dist/wallet/src/models/RepayLoanRequest.js deleted file mode 100644 index 36e4c13..0000000 --- a/dist/wallet/src/models/RepayLoanRequest.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RepayLoanRequestIntentEnum = void 0; -exports.instanceOfRepayLoanRequest = instanceOfRepayLoanRequest; -exports.RepayLoanRequestFromJSON = RepayLoanRequestFromJSON; -exports.RepayLoanRequestFromJSONTyped = RepayLoanRequestFromJSONTyped; -exports.RepayLoanRequestToJSON = RepayLoanRequestToJSON; -exports.RepayLoanRequestToJSONTyped = RepayLoanRequestToJSONTyped; -/** - * @export - */ -exports.RepayLoanRequestIntentEnum = { - REPAY: 'Repay', - PREVIEW: 'Preview' -}; -/** - * Check if a given object implements the RepayLoanRequest interface. - */ -function instanceOfRepayLoanRequest(value) { - if (!('intent' in value) || value['intent'] === undefined) - return false; - if (!('loanId' in value) || value['loanId'] === undefined) - return false; - return true; -} -function RepayLoanRequestFromJSON(json) { - return RepayLoanRequestFromJSONTyped(json, false); -} -function RepayLoanRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'intent': json['intent'], - 'loanId': json['loanId'], - }; -} -function RepayLoanRequestToJSON(json) { - return RepayLoanRequestToJSONTyped(json, false); -} -function RepayLoanRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'intent': value['intent'], - 'loanId': value['loanId'], - }; -} -//# sourceMappingURL=RepayLoanRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/RepayLoanRequest.js.map b/dist/wallet/src/models/RepayLoanRequest.js.map deleted file mode 100644 index 1f7a4cb..0000000 --- a/dist/wallet/src/models/RepayLoanRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RepayLoanRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/RepayLoanRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqCH,gEAIC;AAED,4DAEC;AAED,sEASC;AAED,wDAEC;AAED,kEAUC;AAhDD;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/SignUpRequest.d.ts b/dist/wallet/src/models/SignUpRequest.d.ts deleted file mode 100644 index 926c1fa..0000000 --- a/dist/wallet/src/models/SignUpRequest.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface SignUpRequest - */ -export interface SignUpRequest { - /** - * user's email - * @type {string} - * @memberof SignUpRequest - */ - email: string; - /** - * user's password - * @type {string} - * @memberof SignUpRequest - */ - password: string; -} -/** - * Check if a given object implements the SignUpRequest interface. - */ -export declare function instanceOfSignUpRequest(value: object): value is SignUpRequest; -export declare function SignUpRequestFromJSON(json: any): SignUpRequest; -export declare function SignUpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignUpRequest; -export declare function SignUpRequestToJSON(json: any): SignUpRequest; -export declare function SignUpRequestToJSONTyped(value?: SignUpRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SignUpRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/SignUpRequest.d.ts.map b/dist/wallet/src/models/SignUpRequest.d.ts.map deleted file mode 100644 index f1504ef..0000000 --- a/dist/wallet/src/models/SignUpRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SignUpRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/SignUpRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CASjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhH"} \ No newline at end of file diff --git a/dist/wallet/src/models/SignUpRequest.js b/dist/wallet/src/models/SignUpRequest.js deleted file mode 100644 index bbec2f5..0000000 --- a/dist/wallet/src/models/SignUpRequest.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSignUpRequest = instanceOfSignUpRequest; -exports.SignUpRequestFromJSON = SignUpRequestFromJSON; -exports.SignUpRequestFromJSONTyped = SignUpRequestFromJSONTyped; -exports.SignUpRequestToJSON = SignUpRequestToJSON; -exports.SignUpRequestToJSONTyped = SignUpRequestToJSONTyped; -/** - * Check if a given object implements the SignUpRequest interface. - */ -function instanceOfSignUpRequest(value) { - if (!('email' in value) || value['email'] === undefined) - return false; - if (!('password' in value) || value['password'] === undefined) - return false; - return true; -} -function SignUpRequestFromJSON(json) { - return SignUpRequestFromJSONTyped(json, false); -} -function SignUpRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'email': json['email'], - 'password': json['password'], - }; -} -function SignUpRequestToJSON(json) { - return SignUpRequestToJSONTyped(json, false); -} -function SignUpRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'email': value['email'], - 'password': value['password'], - }; -} -//# sourceMappingURL=SignUpRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/SignUpRequest.js.map b/dist/wallet/src/models/SignUpRequest.js.map deleted file mode 100644 index a64347f..0000000 --- a/dist/wallet/src/models/SignUpRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SignUpRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/SignUpRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0DAIC;AAED,sDAEC;AAED,gEASC;AAED,kDAEC;AAED,4DAUC;AAtCD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/SimpleResponse.d.ts b/dist/wallet/src/models/SimpleResponse.d.ts deleted file mode 100644 index 5c3db78..0000000 --- a/dist/wallet/src/models/SimpleResponse.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface SimpleResponse - */ -export interface SimpleResponse { - /** - * Localized messages - * @type {{ [key: string]: string | undefined; }} - * @memberof SimpleResponse - */ - messages: { - [key: string]: string | undefined; - }; -} -/** - * Check if a given object implements the SimpleResponse interface. - */ -export declare function instanceOfSimpleResponse(value: object): value is SimpleResponse; -export declare function SimpleResponseFromJSON(json: any): SimpleResponse; -export declare function SimpleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimpleResponse; -export declare function SimpleResponseToJSON(json: any): SimpleResponse; -export declare function SimpleResponseToJSONTyped(value?: SimpleResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SimpleResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/SimpleResponse.d.ts.map b/dist/wallet/src/models/SimpleResponse.d.ts.map deleted file mode 100644 index 60ab305..0000000 --- a/dist/wallet/src/models/SimpleResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SimpleResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/SimpleResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/wallet/src/models/SimpleResponse.js b/dist/wallet/src/models/SimpleResponse.js deleted file mode 100644 index cb1c036..0000000 --- a/dist/wallet/src/models/SimpleResponse.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfSimpleResponse = instanceOfSimpleResponse; -exports.SimpleResponseFromJSON = SimpleResponseFromJSON; -exports.SimpleResponseFromJSONTyped = SimpleResponseFromJSONTyped; -exports.SimpleResponseToJSON = SimpleResponseToJSON; -exports.SimpleResponseToJSONTyped = SimpleResponseToJSONTyped; -/** - * Check if a given object implements the SimpleResponse interface. - */ -function instanceOfSimpleResponse(value) { - if (!('messages' in value) || value['messages'] === undefined) - return false; - return true; -} -function SimpleResponseFromJSON(json) { - return SimpleResponseFromJSONTyped(json, false); -} -function SimpleResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'messages': json['messages'], - }; -} -function SimpleResponseToJSON(json) { - return SimpleResponseToJSONTyped(json, false); -} -function SimpleResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'messages': value['messages'], - }; -} -//# sourceMappingURL=SimpleResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/SimpleResponse.js.map b/dist/wallet/src/models/SimpleResponse.js.map deleted file mode 100644 index f65e0d2..0000000 --- a/dist/wallet/src/models/SimpleResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SimpleResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/SimpleResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAnCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/SwapRequest.d.ts b/dist/wallet/src/models/SwapRequest.d.ts deleted file mode 100644 index b4e9c19..0000000 --- a/dist/wallet/src/models/SwapRequest.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface SwapRequest - */ -export interface SwapRequest { - /** - * Intent to swap - * @type {string} - * @memberof SwapRequest - */ - intent: SwapRequestIntentEnum; - /** - * Quote ID, required if intent is Swap - * @type {string} - * @memberof SwapRequest - */ - quoteId?: string; - /** - * Trade type - * @type {string} - * @memberof SwapRequest - */ - tradeType?: SwapRequestTradeTypeEnum; - /** - * Coin symbol to swap from - * @type {string} - * @memberof SwapRequest - */ - _in?: string; - /** - * Coin symbol to swap to - * @type {string} - * @memberof SwapRequest - */ - out?: string; - /** - * Amount to swap - * @type {string} - * @memberof SwapRequest - */ - amount?: string; -} -/** - * @export - */ -export declare const SwapRequestIntentEnum: { - readonly SWAP: "Swap"; - readonly QUOTE: "Quote"; - readonly PREVIEW: "Preview"; -}; -export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; -/** - * @export - */ -export declare const SwapRequestTradeTypeEnum: { - readonly EXACT_INPUT: "ExactInput"; - readonly EXACT_OUTPUT: "ExactOutput"; -}; -export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; -/** - * Check if a given object implements the SwapRequest interface. - */ -export declare function instanceOfSwapRequest(value: object): value is SwapRequest; -export declare function SwapRequestFromJSON(json: any): SwapRequest; -export declare function SwapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapRequest; -export declare function SwapRequestToJSON(json: any): SwapRequest; -export declare function SwapRequestToJSONTyped(value?: SwapRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SwapRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/SwapRequest.d.ts.map b/dist/wallet/src/models/SwapRequest.d.ts.map deleted file mode 100644 index a534924..0000000 --- a/dist/wallet/src/models/SwapRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/SwapRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;IACrC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErG;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAa7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5G"} \ No newline at end of file diff --git a/dist/wallet/src/models/SwapRequest.js b/dist/wallet/src/models/SwapRequest.js deleted file mode 100644 index fd95561..0000000 --- a/dist/wallet/src/models/SwapRequest.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwapRequestTradeTypeEnum = exports.SwapRequestIntentEnum = void 0; -exports.instanceOfSwapRequest = instanceOfSwapRequest; -exports.SwapRequestFromJSON = SwapRequestFromJSON; -exports.SwapRequestFromJSONTyped = SwapRequestFromJSONTyped; -exports.SwapRequestToJSON = SwapRequestToJSON; -exports.SwapRequestToJSONTyped = SwapRequestToJSONTyped; -/** - * @export - */ -exports.SwapRequestIntentEnum = { - SWAP: 'Swap', - QUOTE: 'Quote', - PREVIEW: 'Preview' -}; -/** - * @export - */ -exports.SwapRequestTradeTypeEnum = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -}; -/** - * Check if a given object implements the SwapRequest interface. - */ -function instanceOfSwapRequest(value) { - if (!('intent' in value) || value['intent'] === undefined) - return false; - return true; -} -function SwapRequestFromJSON(json) { - return SwapRequestFromJSONTyped(json, false); -} -function SwapRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'intent': json['intent'], - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'tradeType': json['tradeType'] == null ? undefined : json['tradeType'], - '_in': json['in'] == null ? undefined : json['in'], - 'out': json['out'] == null ? undefined : json['out'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} -function SwapRequestToJSON(json) { - return SwapRequestToJSONTyped(json, false); -} -function SwapRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'intent': value['intent'], - 'quoteId': value['quoteId'], - 'tradeType': value['tradeType'], - 'in': value['_in'], - 'out': value['out'], - 'amount': value['amount'], - }; -} -//# sourceMappingURL=SwapRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/SwapRequest.js.map b/dist/wallet/src/models/SwapRequest.js.map deleted file mode 100644 index 7e12f85..0000000 --- a/dist/wallet/src/models/SwapRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/SwapRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuEH,sDAGC;AAED,kDAEC;AAED,4DAaC;AAED,8CAEC;AAED,wDAcC;AAjED;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAGX;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC;AAIX;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OA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WAAW,CAAC;QAC/B,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/SwapResponse.d.ts b/dist/wallet/src/models/SwapResponse.d.ts deleted file mode 100644 index 3263fc5..0000000 --- a/dist/wallet/src/models/SwapResponse.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -import type { Currency } from './Currency'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface SwapResponse - */ -export interface SwapResponse { - /** - * - * @type {string} - * @memberof SwapResponse - */ - id: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - tradeType: SwapResponseTradeTypeEnum; - /** - * - * @type {Symbol} - * @memberof SwapResponse - */ - _in: Symbol; - /** - * - * @type {Symbol} - * @memberof SwapResponse - */ - out: Symbol; - /** - * - * @type {string} - * @memberof SwapResponse - */ - amount: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - quote: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - rate: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - inputBalanceAfterSwap?: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - outputBalanceAfterSwap?: string; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - createdAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - expiresAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - executedAt?: Timestamp; - /** - * - * @type {Currency} - * @memberof SwapResponse - */ - value: Currency; -} -/** - * @export - */ -export declare const SwapResponseTradeTypeEnum: { - readonly EXACT_INPUT: "ExactInput"; - readonly EXACT_OUTPUT: "ExactOutput"; -}; -export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; -/** - * Check if a given object implements the SwapResponse interface. - */ -export declare function instanceOfSwapResponse(value: object): value is SwapResponse; -export declare function SwapResponseFromJSON(json: any): SwapResponse; -export declare function SwapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapResponse; -export declare function SwapResponseToJSON(json: any): SwapResponse; -export declare function SwapResponseToJSONTyped(value?: SwapResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=SwapResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/SwapResponse.d.ts.map b/dist/wallet/src/models/SwapResponse.d.ts.map deleted file mode 100644 index 5e00e88..0000000 --- a/dist/wallet/src/models/SwapResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/SwapResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,yBAAyB,CAAC;IACrC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAY3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAoB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/SwapResponse.js b/dist/wallet/src/models/SwapResponse.js deleted file mode 100644 index 6f6a731..0000000 --- a/dist/wallet/src/models/SwapResponse.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwapResponseTradeTypeEnum = void 0; -exports.instanceOfSwapResponse = instanceOfSwapResponse; -exports.SwapResponseFromJSON = SwapResponseFromJSON; -exports.SwapResponseFromJSONTyped = SwapResponseFromJSONTyped; -exports.SwapResponseToJSON = SwapResponseToJSON; -exports.SwapResponseToJSONTyped = SwapResponseToJSONTyped; -const Symbol_1 = require("./Symbol"); -const Currency_1 = require("./Currency"); -const Timestamp_1 = require("./Timestamp"); -/** - * @export - */ -exports.SwapResponseTradeTypeEnum = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -}; -/** - * Check if a given object implements the SwapResponse interface. - */ -function instanceOfSwapResponse(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('tradeType' in value) || value['tradeType'] === undefined) - return false; - if (!('_in' in value) || value['_in'] === undefined) - return false; - if (!('out' in value) || value['out'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('quote' in value) || value['quote'] === undefined) - return false; - if (!('rate' in value) || value['rate'] === undefined) - return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) - return false; - if (!('expiresAt' in value) || value['expiresAt'] === undefined) - return false; - if (!('value' in value) || value['value'] === undefined) - return false; - return true; -} -function SwapResponseFromJSON(json) { - return SwapResponseFromJSONTyped(json, false); -} -function SwapResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'tradeType': json['tradeType'], - '_in': (0, Symbol_1.SymbolFromJSON)(json['in']), - 'out': (0, Symbol_1.SymbolFromJSON)(json['out']), - 'amount': json['amount'], - 'quote': json['quote'], - 'rate': json['rate'], - 'inputBalanceAfterSwap': json['inputBalanceAfterSwap'] == null ? undefined : json['inputBalanceAfterSwap'], - 'outputBalanceAfterSwap': json['outputBalanceAfterSwap'] == null ? undefined : json['outputBalanceAfterSwap'], - 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), - 'expiresAt': (0, Timestamp_1.TimestampFromJSON)(json['expiresAt']), - 'executedAt': json['executedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['executedAt']), - 'value': (0, Currency_1.CurrencyFromJSON)(json['value']), - }; -} -function SwapResponseToJSON(json) { - return SwapResponseToJSONTyped(json, false); -} -function SwapResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'tradeType': value['tradeType'], - 'in': (0, Symbol_1.SymbolToJSON)(value['_in']), - 'out': (0, Symbol_1.SymbolToJSON)(value['out']), - 'amount': value['amount'], - 'quote': value['quote'], - 'rate': value['rate'], - 'inputBalanceAfterSwap': value['inputBalanceAfterSwap'], - 'outputBalanceAfterSwap': value['outputBalanceAfterSwap'], - 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), - 'expiresAt': (0, Timestamp_1.TimestampToJSON)(value['expiresAt']), - 'executedAt': (0, Timestamp_1.TimestampToJSON)(value['executedAt']), - 'value': (0, Currency_1.CurrencyToJSON)(value['value']), - }; -} -//# sourceMappingURL=SwapResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/SwapResponse.js.map b/dist/wallet/src/models/SwapResponse.js.map deleted file mode 100644 index 664d5be..0000000 --- a/dist/wallet/src/models/SwapResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwapResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/SwapResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA6HH,wDAYC;AAED,oDAEC;AAED,8DAoBC;AAED,gDAEC;AAED,0DAqBC;AA1LD,qCAKkB;AAElB,yCAKoB;AAEpB,2CAKqB;AAyFrB;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC;AAIX;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,I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SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChC,KAAK,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,YAAY,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAClD,OAAO,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC1C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Symbol.d.ts b/dist/wallet/src/models/Symbol.d.ts deleted file mode 100644 index bddb649..0000000 --- a/dist/wallet/src/models/Symbol.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * Symbol representation - * @export - */ -export declare const Symbol: { - readonly USD: "USD"; - readonly DAI: "DAI"; - readonly USDT: "USDT"; - readonly USDC: "USDC"; - readonly WBTC: "WBTC"; - readonly ETH: "ETH"; - readonly WETH: "WETH"; - readonly ZAR: "ZAR"; - readonly TMN: "TMN"; -}; -export type Symbol = typeof Symbol[keyof typeof Symbol]; -export declare function instanceOfSymbol(value: any): boolean; -export declare function SymbolFromJSON(json: any): Symbol; -export declare function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol; -export declare function SymbolToJSON(value?: Symbol | null): any; -export declare function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol; -//# sourceMappingURL=Symbol.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Symbol.d.ts.map b/dist/wallet/src/models/Symbol.d.ts.map deleted file mode 100644 index eca65fa..0000000 --- a/dist/wallet/src/models/Symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAGxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"} \ No newline at end of file diff --git a/dist/wallet/src/models/Symbol.js b/dist/wallet/src/models/Symbol.js deleted file mode 100644 index fec2431..0000000 --- a/dist/wallet/src/models/Symbol.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Symbol = void 0; -exports.instanceOfSymbol = instanceOfSymbol; -exports.SymbolFromJSON = SymbolFromJSON; -exports.SymbolFromJSONTyped = SymbolFromJSONTyped; -exports.SymbolToJSON = SymbolToJSON; -exports.SymbolToJSONTyped = SymbolToJSONTyped; -/** - * Symbol representation - * @export - */ -exports.Symbol = { - USD: 'USD', - DAI: 'DAI', - USDT: 'USDT', - USDC: 'USDC', - WBTC: 'WBTC', - ETH: 'ETH', - WETH: 'WETH', - ZAR: 'ZAR', - TMN: 'TMN' -}; -function instanceOfSymbol(value) { - for (const key in exports.Symbol) { - if (Object.prototype.hasOwnProperty.call(exports.Symbol, key)) { - if (exports.Symbol[key] === value) { - return true; - } - } - } - return false; -} -function SymbolFromJSON(json) { - return SymbolFromJSONTyped(json, false); -} -function SymbolFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function SymbolToJSON(value) { - return value; -} -function SymbolToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=Symbol.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Symbol.js.map b/dist/wallet/src/models/Symbol.js.map deleted file mode 100644 index ccfa6f9..0000000 --- a/dist/wallet/src/models/Symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Symbol.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqBH,4CASC;AAED,wCAEC;AAED,kDAEC;AAED,oCAEC;AAED,8CAEC;AA3CD;;;GAGG;AACU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX,SAAgB,gBAAgB,CAAC,KAAU;IACvC,KAAK,MAAM,GAAG,IAAI,cAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,cAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YACpD,IAAI,cAAM,CAAC,GAA0B,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,OAAO,IAAc,CAAC;AAC1B,CAAC;AAED,SAAgB,YAAY,CAAC,KAAqB;IAC9C,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAAU,EAAE,mBAA4B;IACtE,OAAO,KAAe,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Task.d.ts b/dist/wallet/src/models/Task.d.ts deleted file mode 100644 index afd65cf..0000000 --- a/dist/wallet/src/models/Task.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface Task - */ -export interface Task { - /** - * Task ID - * @type {string} - * @memberof Task - */ - id: string; - /** - * Task description - * @type {string} - * @memberof Task - */ - description: string; - /** - * Task reward - * @type {number} - * @memberof Task - */ - points: number; - /** - * Task status. Possible values "Pending", "Completed" - * @type {string} - * @memberof Task - */ - status: string; - /** - * - * @type {Timestamp} - * @memberof Task - */ - completedAt?: Timestamp; -} -/** - * Check if a given object implements the Task interface. - */ -export declare function instanceOfTask(value: object): value is Task; -export declare function TaskFromJSON(json: any): Task; -export declare function TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Task; -export declare function TaskToJSON(json: any): Task; -export declare function TaskToJSONTyped(value?: Task | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Task.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Task.d.ts.map b/dist/wallet/src/models/Task.d.ts.map deleted file mode 100644 index 61529ee..0000000 --- a/dist/wallet/src/models/Task.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAM3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAY/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9F"} \ No newline at end of file diff --git a/dist/wallet/src/models/Task.js b/dist/wallet/src/models/Task.js deleted file mode 100644 index e257c4c..0000000 --- a/dist/wallet/src/models/Task.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTask = instanceOfTask; -exports.TaskFromJSON = TaskFromJSON; -exports.TaskFromJSONTyped = TaskFromJSONTyped; -exports.TaskToJSON = TaskToJSON; -exports.TaskToJSONTyped = TaskToJSONTyped; -const Timestamp_1 = require("./Timestamp"); -/** - * Check if a given object implements the Task interface. - */ -function instanceOfTask(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('description' in value) || value['description'] === undefined) - return false; - if (!('points' in value) || value['points'] === undefined) - return false; - if (!('status' in value) || value['status'] === undefined) - return false; - return true; -} -function TaskFromJSON(json) { - return TaskFromJSONTyped(json, false); -} -function TaskFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'description': json['description'], - 'points': json['points'], - 'status': json['status'], - 'completedAt': json['completedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['completedAt']), - }; -} -function TaskToJSON(json) { - return TaskToJSONTyped(json, false); -} -function TaskToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'description': value['description'], - 'points': value['points'], - 'status': value['status'], - 'completedAt': (0, Timestamp_1.TimestampToJSON)(value['completedAt']), - }; -} -//# sourceMappingURL=Task.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Task.js.map b/dist/wallet/src/models/Task.js.map deleted file mode 100644 index e9a3995..0000000 --- a/dist/wallet/src/models/Task.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Task.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Task.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,wCAMC;AAED,oCAEC;AAED,8CAYC;AAED,gCAEC;AAED,0CAaC;AA3FD,2CAKqB;AAwCrB;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,6BAAiB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAClG,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,aAAa,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/TaskResponse.d.ts b/dist/wallet/src/models/TaskResponse.d.ts deleted file mode 100644 index f7bee70..0000000 --- a/dist/wallet/src/models/TaskResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Task } from './Task'; -/** - * - * @export - * @interface TaskResponse - */ -export interface TaskResponse { - /** - * - * @type {Array} - * @memberof TaskResponse - */ - data: Array; -} -/** - * Check if a given object implements the TaskResponse interface. - */ -export declare function instanceOfTaskResponse(value: object): value is TaskResponse; -export declare function TaskResponseFromJSON(json: any): TaskResponse; -export declare function TaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskResponse; -export declare function TaskResponseToJSON(json: any): TaskResponse; -export declare function TaskResponseToJSONTyped(value?: TaskResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TaskResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/TaskResponse.d.ts.map b/dist/wallet/src/models/TaskResponse.d.ts.map deleted file mode 100644 index 834e34e..0000000 --- a/dist/wallet/src/models/TaskResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TaskResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/TaskResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/wallet/src/models/TaskResponse.js b/dist/wallet/src/models/TaskResponse.js deleted file mode 100644 index 6341ef4..0000000 --- a/dist/wallet/src/models/TaskResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTaskResponse = instanceOfTaskResponse; -exports.TaskResponseFromJSON = TaskResponseFromJSON; -exports.TaskResponseFromJSONTyped = TaskResponseFromJSONTyped; -exports.TaskResponseToJSON = TaskResponseToJSON; -exports.TaskResponseToJSONTyped = TaskResponseToJSONTyped; -const Task_1 = require("./Task"); -/** - * Check if a given object implements the TaskResponse interface. - */ -function instanceOfTaskResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function TaskResponseFromJSON(json) { - return TaskResponseFromJSONTyped(json, false); -} -function TaskResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Task_1.TaskFromJSON)), - }; -} -function TaskResponseToJSON(json) { - return TaskResponseToJSONTyped(json, false); -} -function TaskResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Task_1.TaskToJSON)), - }; -} -//# sourceMappingURL=TaskResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/TaskResponse.js.map b/dist/wallet/src/models/TaskResponse.js.map deleted file mode 100644 index 8b1edc3..0000000 --- a/dist/wallet/src/models/TaskResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TaskResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/TaskResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,iCAKgB;AAgBhB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAY,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/TelegramProfile.d.ts b/dist/wallet/src/models/TelegramProfile.d.ts deleted file mode 100644 index 3303137..0000000 --- a/dist/wallet/src/models/TelegramProfile.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TelegramProfile - */ -export interface TelegramProfile { - /** - * - * @type {string} - * @memberof TelegramProfile - */ - username?: string | null; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - firstName: string; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - lastName?: string | null; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - photoUrl?: string | null; -} -/** - * Check if a given object implements the TelegramProfile interface. - */ -export declare function instanceOfTelegramProfile(value: object): value is TelegramProfile; -export declare function TelegramProfileFromJSON(json: any): TelegramProfile; -export declare function TelegramProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelegramProfile; -export declare function TelegramProfileToJSON(json: any): TelegramProfile; -export declare function TelegramProfileToJSONTyped(value?: TelegramProfile | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TelegramProfile.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/TelegramProfile.d.ts.map b/dist/wallet/src/models/TelegramProfile.d.ts.map deleted file mode 100644 index 206dec1..0000000 --- a/dist/wallet/src/models/TelegramProfile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TelegramProfile.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/TelegramProfile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"} \ No newline at end of file diff --git a/dist/wallet/src/models/TelegramProfile.js b/dist/wallet/src/models/TelegramProfile.js deleted file mode 100644 index 705696a..0000000 --- a/dist/wallet/src/models/TelegramProfile.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTelegramProfile = instanceOfTelegramProfile; -exports.TelegramProfileFromJSON = TelegramProfileFromJSON; -exports.TelegramProfileFromJSONTyped = TelegramProfileFromJSONTyped; -exports.TelegramProfileToJSON = TelegramProfileToJSON; -exports.TelegramProfileToJSONTyped = TelegramProfileToJSONTyped; -/** - * Check if a given object implements the TelegramProfile interface. - */ -function instanceOfTelegramProfile(value) { - if (!('firstName' in value) || value['firstName'] === undefined) - return false; - return true; -} -function TelegramProfileFromJSON(json) { - return TelegramProfileFromJSONTyped(json, false); -} -function TelegramProfileFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'username': json['username'] == null ? undefined : json['username'], - 'firstName': json['firstName'], - 'lastName': json['lastName'] == null ? undefined : json['lastName'], - 'photoUrl': json['photoUrl'] == null ? undefined : json['photoUrl'], - }; -} -function TelegramProfileToJSON(json) { - return TelegramProfileToJSONTyped(json, false); -} -function TelegramProfileToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'username': value['username'], - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'photoUrl': value['photoUrl'], - }; -} -//# sourceMappingURL=TelegramProfile.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/TelegramProfile.js.map b/dist/wallet/src/models/TelegramProfile.js.map deleted file mode 100644 index 1dbbf2a..0000000 --- a/dist/wallet/src/models/TelegramProfile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TelegramProfile.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/TelegramProfile.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,8DAGC;AAED,0DAEC;AAED,oEAWC;AAED,sDAEC;AAED,gEAYC;AAzCD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Timestamp.d.ts b/dist/wallet/src/models/Timestamp.d.ts deleted file mode 100644 index 4f65f31..0000000 --- a/dist/wallet/src/models/Timestamp.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Timestamp - */ -export interface Timestamp { - /** - * Jalaali date - * @type {string} - * @memberof Timestamp - */ - jalaali: string; - /** - * Gregorian date - * @type {string} - * @memberof Timestamp - */ - gregorian: string; -} -/** - * Check if a given object implements the Timestamp interface. - */ -export declare function instanceOfTimestamp(value: object): value is Timestamp; -export declare function TimestampFromJSON(json: any): Timestamp; -export declare function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp; -export declare function TimestampToJSON(json: any): Timestamp; -export declare function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Timestamp.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Timestamp.d.ts.map b/dist/wallet/src/models/Timestamp.d.ts.map deleted file mode 100644 index 0a9690f..0000000 --- a/dist/wallet/src/models/Timestamp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/wallet/src/models/Timestamp.js b/dist/wallet/src/models/Timestamp.js deleted file mode 100644 index f4dbd6e..0000000 --- a/dist/wallet/src/models/Timestamp.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTimestamp = instanceOfTimestamp; -exports.TimestampFromJSON = TimestampFromJSON; -exports.TimestampFromJSONTyped = TimestampFromJSONTyped; -exports.TimestampToJSON = TimestampToJSON; -exports.TimestampToJSONTyped = TimestampToJSONTyped; -/** - * Check if a given object implements the Timestamp interface. - */ -function instanceOfTimestamp(value) { - if (!('jalaali' in value) || value['jalaali'] === undefined) - return false; - if (!('gregorian' in value) || value['gregorian'] === undefined) - return false; - return true; -} -function TimestampFromJSON(json) { - return TimestampFromJSONTyped(json, false); -} -function TimestampFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'jalaali': json['jalaali'], - 'gregorian': json['gregorian'], - }; -} -function TimestampToJSON(json) { - return TimestampToJSONTyped(json, false); -} -function TimestampToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'jalaali': value['jalaali'], - 'gregorian': value['gregorian'], - }; -} -//# sourceMappingURL=Timestamp.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Timestamp.js.map b/dist/wallet/src/models/Timestamp.js.map deleted file mode 100644 index ad858f3..0000000 --- a/dist/wallet/src/models/Timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Timestamp.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAtCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/Transaction.d.ts b/dist/wallet/src/models/Transaction.d.ts deleted file mode 100644 index 08a7bab..0000000 --- a/dist/wallet/src/models/Transaction.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { TransactionType } from './TransactionType'; -import type { ExternalTransaction } from './ExternalTransaction'; -import type { Symbol } from './Symbol'; -import type { Currency } from './Currency'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface Transaction - */ -export interface Transaction { - /** - * Unique identifier of the transaction - * @type {number} - * @memberof Transaction - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof Transaction - */ - time: Timestamp; - /** - * - * @type {TransactionType} - * @memberof Transaction - */ - type: TransactionType; - /** - * The ID of the user from whom the transaction originated - * @type {string} - * @memberof Transaction - */ - from: string; - /** - * The ID of the user to whom the transaction is directed - * @type {string} - * @memberof Transaction - */ - to: string; - /** - * - * @type {Symbol} - * @memberof Transaction - */ - symbol: Symbol; - /** - * - * @type {Currency} - * @memberof Transaction - */ - amount: Currency; - /** - * Equal to "Inbound" if the transaction is directed to the user, and "Outbound" if the transaction is directed from the user. - * @type {string} - * @memberof Transaction - */ - direction: TransactionDirectionEnum; - /** - * - * @type {ExternalTransaction} - * @memberof Transaction - */ - externalTransaction?: ExternalTransaction; -} -/** - * @export - */ -export declare const TransactionDirectionEnum: { - readonly INBOUND: "Inbound"; - readonly OUTBOUND: "Outbound"; -}; -export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; -/** - * Check if a given object implements the Transaction interface. - */ -export declare function instanceOfTransaction(value: object): value is Transaction; -export declare function TransactionFromJSON(json: any): Transaction; -export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction; -export declare function TransactionToJSON(json: any): Transaction; -export declare function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=Transaction.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/Transaction.d.ts.map b/dist/wallet/src/models/Transaction.d.ts.map deleted file mode 100644 index 1a60a25..0000000 --- a/dist/wallet/src/models/Transaction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/Transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EA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AAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB5G"} \ No newline at end of file diff --git a/dist/wallet/src/models/Transaction.js b/dist/wallet/src/models/Transaction.js deleted file mode 100644 index 6b2f8f0..0000000 --- a/dist/wallet/src/models/Transaction.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransactionDirectionEnum = void 0; -exports.instanceOfTransaction = instanceOfTransaction; -exports.TransactionFromJSON = TransactionFromJSON; -exports.TransactionFromJSONTyped = TransactionFromJSONTyped; -exports.TransactionToJSON = TransactionToJSON; -exports.TransactionToJSONTyped = TransactionToJSONTyped; -const TransactionType_1 = require("./TransactionType"); -const ExternalTransaction_1 = require("./ExternalTransaction"); -const Symbol_1 = require("./Symbol"); -const Currency_1 = require("./Currency"); -const Timestamp_1 = require("./Timestamp"); -/** - * @export - */ -exports.TransactionDirectionEnum = { - INBOUND: 'Inbound', - OUTBOUND: 'Outbound' -}; -/** - * Check if a given object implements the Transaction interface. - */ -function instanceOfTransaction(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('time' in value) || value['time'] === undefined) - return false; - if (!('type' in value) || value['type'] === undefined) - return false; - if (!('from' in value) || value['from'] === undefined) - return false; - if (!('to' in value) || value['to'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('direction' in value) || value['direction'] === undefined) - return false; - return true; -} -function TransactionFromJSON(json) { - return TransactionFromJSONTyped(json, false); -} -function TransactionFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'time': (0, Timestamp_1.TimestampFromJSON)(json['time']), - 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']), - 'from': json['from'], - 'to': json['to'], - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), - 'direction': json['direction'], - 'externalTransaction': json['externalTransaction'] == null ? undefined : (0, ExternalTransaction_1.ExternalTransactionFromJSON)(json['externalTransaction']), - }; -} -function TransactionToJSON(json) { - return TransactionToJSONTyped(json, false); -} -function TransactionToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'time': (0, Timestamp_1.TimestampToJSON)(value['time']), - 'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']), - 'from': value['from'], - 'to': value['to'], - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), - 'direction': value['direction'], - 'externalTransaction': (0, ExternalTransaction_1.ExternalTransactionToJSON)(value['externalTransaction']), - }; -} -//# sourceMappingURL=Transaction.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/Transaction.js.map b/dist/wallet/src/models/Transaction.js.map deleted file mode 100644 index 76a1985..0000000 --- a/dist/wallet/src/models/Transaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/Transaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmHH,sDAUC;AAED,kDAEC;AAED,4DAgBC;AAED,8CAEC;AAED,wDAiBC;AAtKD,uDAK2B;AAE3B,+DAK+B;AAE/B,qCAKkB;AAElB,yCAKoB;AAEpB,2CAKqB;AAiErB;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,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ACzC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,qBAAqB,EAAE,IAAA,+CAAyB,EAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;KACjF,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionResponse.d.ts b/dist/wallet/src/models/TransactionResponse.d.ts deleted file mode 100644 index 367e9a7..0000000 --- a/dist/wallet/src/models/TransactionResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Transaction } from './Transaction'; -/** - * - * @export - * @interface TransactionResponse - */ -export interface TransactionResponse { - /** - * - * @type {Array} - * @memberof TransactionResponse - */ - data: Array; -} -/** - * Check if a given object implements the TransactionResponse interface. - */ -export declare function instanceOfTransactionResponse(value: object): value is TransactionResponse; -export declare function TransactionResponseFromJSON(json: any): TransactionResponse; -export declare function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse; -export declare function TransactionResponseToJSON(json: any): TransactionResponse; -export declare function TransactionResponseToJSONTyped(value?: TransactionResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=TransactionResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionResponse.d.ts.map b/dist/wallet/src/models/TransactionResponse.d.ts.map deleted file mode 100644 index e637efa..0000000 --- a/dist/wallet/src/models/TransactionResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionResponse.js b/dist/wallet/src/models/TransactionResponse.js deleted file mode 100644 index b1350e5..0000000 --- a/dist/wallet/src/models/TransactionResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTransactionResponse = instanceOfTransactionResponse; -exports.TransactionResponseFromJSON = TransactionResponseFromJSON; -exports.TransactionResponseFromJSONTyped = TransactionResponseFromJSONTyped; -exports.TransactionResponseToJSON = TransactionResponseToJSON; -exports.TransactionResponseToJSONTyped = TransactionResponseToJSONTyped; -const Transaction_1 = require("./Transaction"); -/** - * Check if a given object implements the TransactionResponse interface. - */ -function instanceOfTransactionResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function TransactionResponseFromJSON(json) { - return TransactionResponseFromJSONTyped(json, false); -} -function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(Transaction_1.TransactionFromJSON)), - }; -} -function TransactionResponseToJSON(json) { - return TransactionResponseToJSONTyped(json, false); -} -function TransactionResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(Transaction_1.TransactionToJSON)), - }; -} -//# sourceMappingURL=TransactionResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionResponse.js.map b/dist/wallet/src/models/TransactionResponse.js.map deleted file mode 100644 index 1c0546c..0000000 --- a/dist/wallet/src/models/TransactionResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,+CAKuB;AAgBvB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAC;KAClE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionStatus.d.ts b/dist/wallet/src/models/TransactionStatus.d.ts deleted file mode 100644 index 86c276f..0000000 --- a/dist/wallet/src/models/TransactionStatus.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const TransactionStatus: { - readonly SENT: "Sent"; - readonly SUCCESS: "Success"; - readonly FAILED: "Failed"; -}; -export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; -export declare function instanceOfTransactionStatus(value: any): boolean; -export declare function TransactionStatusFromJSON(json: any): TransactionStatus; -export declare function TransactionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionStatus; -export declare function TransactionStatusToJSON(value?: TransactionStatus | null): any; -export declare function TransactionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionStatus; -//# sourceMappingURL=TransactionStatus.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionStatus.d.ts.map b/dist/wallet/src/models/TransactionStatus.d.ts.map deleted file mode 100644 index 40d067b..0000000 --- a/dist/wallet/src/models/TransactionStatus.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionStatus.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAGzF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS/D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAEzG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,GAAG,CAE7E;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAExG"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionStatus.js b/dist/wallet/src/models/TransactionStatus.js deleted file mode 100644 index 6bc544a..0000000 --- a/dist/wallet/src/models/TransactionStatus.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransactionStatus = void 0; -exports.instanceOfTransactionStatus = instanceOfTransactionStatus; -exports.TransactionStatusFromJSON = TransactionStatusFromJSON; -exports.TransactionStatusFromJSONTyped = TransactionStatusFromJSONTyped; -exports.TransactionStatusToJSON = TransactionStatusToJSON; -exports.TransactionStatusToJSONTyped = TransactionStatusToJSONTyped; -/** - * - * @export - */ -exports.TransactionStatus = { - SENT: 'Sent', - SUCCESS: 'Success', - FAILED: 'Failed' -}; -function instanceOfTransactionStatus(value) { - for (const key in exports.TransactionStatus) { - if (Object.prototype.hasOwnProperty.call(exports.TransactionStatus, key)) { - if (exports.TransactionStatus[key] === value) { - return true; - } - } - } - return false; -} -function TransactionStatusFromJSON(json) { - return TransactionStatusFromJSONTyped(json, false); -} -function TransactionStatusFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function TransactionStatusToJSON(value) { - return value; -} -function TransactionStatusToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=TransactionStatus.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionStatus.js.map b/dist/wallet/src/models/TransactionStatus.js.map deleted file mode 100644 index 44cdd80..0000000 --- a/dist/wallet/src/models/TransactionStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionStatus.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionStatus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,kEASC;AAED,8DAEC;AAED,wEAEC;AAED,0DAEC;AAED,oEAEC;AArCD;;;GAGG;AACU,QAAA,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX,SAAgB,2BAA2B,CAAC,KAAU;IAClD,KAAK,MAAM,GAAG,IAAI,yBAAiB,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,yBAAiB,EAAE,GAAG,CAAC,EAAE,CAAC;YAC/D,IAAI,yBAAiB,CAAC,GAAqC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,OAAO,IAAyB,CAAC;AACrC,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAAgC;IACpE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAU,EAAE,mBAA4B;IACjF,OAAO,KAA0B,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionType.d.ts b/dist/wallet/src/models/TransactionType.d.ts deleted file mode 100644 index db290a1..0000000 --- a/dist/wallet/src/models/TransactionType.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const TransactionType: { - readonly CREDIT: "Credit"; - readonly DEBIT: "Debit"; - readonly TRANSFER: "Transfer"; - readonly DEPOSIT: "Deposit"; - readonly WITHDRAW: "Withdraw"; -}; -export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; -export declare function instanceOfTransactionType(value: any): boolean; -export declare function TransactionTypeFromJSON(json: any): TransactionType; -export declare function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType; -export declare function TransactionTypeToJSON(value?: TransactionType | null): any; -export declare function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType; -//# sourceMappingURL=TransactionType.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionType.d.ts.map b/dist/wallet/src/models/TransactionType.d.ts.map deleted file mode 100644 index 66a5f4e..0000000 --- a/dist/wallet/src/models/TransactionType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionType.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGnF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS7D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAErG;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,GAAG,CAEzE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAEpG"} \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionType.js b/dist/wallet/src/models/TransactionType.js deleted file mode 100644 index 109dec9..0000000 --- a/dist/wallet/src/models/TransactionType.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransactionType = void 0; -exports.instanceOfTransactionType = instanceOfTransactionType; -exports.TransactionTypeFromJSON = TransactionTypeFromJSON; -exports.TransactionTypeFromJSONTyped = TransactionTypeFromJSONTyped; -exports.TransactionTypeToJSON = TransactionTypeToJSON; -exports.TransactionTypeToJSONTyped = TransactionTypeToJSONTyped; -/** - * - * @export - */ -exports.TransactionType = { - CREDIT: 'Credit', - DEBIT: 'Debit', - TRANSFER: 'Transfer', - DEPOSIT: 'Deposit', - WITHDRAW: 'Withdraw' -}; -function instanceOfTransactionType(value) { - for (const key in exports.TransactionType) { - if (Object.prototype.hasOwnProperty.call(exports.TransactionType, key)) { - if (exports.TransactionType[key] === value) { - return true; - } - } - } - return false; -} -function TransactionTypeFromJSON(json) { - return TransactionTypeFromJSONTyped(json, false); -} -function TransactionTypeFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function TransactionTypeToJSON(value) { - return value; -} -function TransactionTypeToJSONTyped(value, ignoreDiscriminator) { - return value; -} -//# sourceMappingURL=TransactionType.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/TransactionType.js.map b/dist/wallet/src/models/TransactionType.js.map deleted file mode 100644 index d6dbeec..0000000 --- a/dist/wallet/src/models/TransactionType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionType.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/TransactionType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiBH,8DASC;AAED,0DAEC;AAED,oEAEC;AAED,sDAEC;AAED,gEAEC;AAvCD;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,SAAgB,yBAAyB,CAAC,KAAU;IAChD,KAAK,MAAM,GAAG,IAAI,uBAAe,EAAE,CAAC;QAChC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,uBAAe,EAAE,GAAG,CAAC,EAAE,CAAC;YAC7D,IAAI,uBAAe,CAAC,GAAmC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACjE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,OAAO,IAAuB,CAAC;AACnC,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAA8B;IAChE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAAU,EAAE,mBAA4B;IAC/E,OAAO,KAAwB,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/UpdateEmailRequest.d.ts b/dist/wallet/src/models/UpdateEmailRequest.d.ts deleted file mode 100644 index bac2234..0000000 --- a/dist/wallet/src/models/UpdateEmailRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface UpdateEmailRequest - */ -export interface UpdateEmailRequest { - /** - * Email address - * @type {string} - * @memberof UpdateEmailRequest - */ - email: string; -} -/** - * Check if a given object implements the UpdateEmailRequest interface. - */ -export declare function instanceOfUpdateEmailRequest(value: object): value is UpdateEmailRequest; -export declare function UpdateEmailRequestFromJSON(json: any): UpdateEmailRequest; -export declare function UpdateEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateEmailRequest; -export declare function UpdateEmailRequestToJSON(json: any): UpdateEmailRequest; -export declare function UpdateEmailRequestToJSONTyped(value?: UpdateEmailRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UpdateEmailRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/UpdateEmailRequest.d.ts.map b/dist/wallet/src/models/UpdateEmailRequest.d.ts.map deleted file mode 100644 index 4f142af..0000000 --- a/dist/wallet/src/models/UpdateEmailRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateEmailRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/UpdateEmailRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/wallet/src/models/UpdateEmailRequest.js b/dist/wallet/src/models/UpdateEmailRequest.js deleted file mode 100644 index 044640e..0000000 --- a/dist/wallet/src/models/UpdateEmailRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUpdateEmailRequest = instanceOfUpdateEmailRequest; -exports.UpdateEmailRequestFromJSON = UpdateEmailRequestFromJSON; -exports.UpdateEmailRequestFromJSONTyped = UpdateEmailRequestFromJSONTyped; -exports.UpdateEmailRequestToJSON = UpdateEmailRequestToJSON; -exports.UpdateEmailRequestToJSONTyped = UpdateEmailRequestToJSONTyped; -/** - * Check if a given object implements the UpdateEmailRequest interface. - */ -function instanceOfUpdateEmailRequest(value) { - if (!('email' in value) || value['email'] === undefined) - return false; - return true; -} -function UpdateEmailRequestFromJSON(json) { - return UpdateEmailRequestFromJSONTyped(json, false); -} -function UpdateEmailRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'email': json['email'], - }; -} -function UpdateEmailRequestToJSON(json) { - return UpdateEmailRequestToJSONTyped(json, false); -} -function UpdateEmailRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'email': value['email'], - }; -} -//# sourceMappingURL=UpdateEmailRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/UpdateEmailRequest.js.map b/dist/wallet/src/models/UpdateEmailRequest.js.map deleted file mode 100644 index 689bc0c..0000000 --- a/dist/wallet/src/models/UpdateEmailRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateEmailRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/UpdateEmailRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/UpdatePhoneRequest.d.ts b/dist/wallet/src/models/UpdatePhoneRequest.d.ts deleted file mode 100644 index 7e986b2..0000000 --- a/dist/wallet/src/models/UpdatePhoneRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface UpdatePhoneRequest - */ -export interface UpdatePhoneRequest { - /** - * Phone number - * @type {string} - * @memberof UpdatePhoneRequest - */ - number: string; -} -/** - * Check if a given object implements the UpdatePhoneRequest interface. - */ -export declare function instanceOfUpdatePhoneRequest(value: object): value is UpdatePhoneRequest; -export declare function UpdatePhoneRequestFromJSON(json: any): UpdatePhoneRequest; -export declare function UpdatePhoneRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePhoneRequest; -export declare function UpdatePhoneRequestToJSON(json: any): UpdatePhoneRequest; -export declare function UpdatePhoneRequestToJSONTyped(value?: UpdatePhoneRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UpdatePhoneRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/UpdatePhoneRequest.d.ts.map b/dist/wallet/src/models/UpdatePhoneRequest.d.ts.map deleted file mode 100644 index 8f03eaa..0000000 --- a/dist/wallet/src/models/UpdatePhoneRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdatePhoneRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/UpdatePhoneRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/wallet/src/models/UpdatePhoneRequest.js b/dist/wallet/src/models/UpdatePhoneRequest.js deleted file mode 100644 index b4d09ae..0000000 --- a/dist/wallet/src/models/UpdatePhoneRequest.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUpdatePhoneRequest = instanceOfUpdatePhoneRequest; -exports.UpdatePhoneRequestFromJSON = UpdatePhoneRequestFromJSON; -exports.UpdatePhoneRequestFromJSONTyped = UpdatePhoneRequestFromJSONTyped; -exports.UpdatePhoneRequestToJSON = UpdatePhoneRequestToJSON; -exports.UpdatePhoneRequestToJSONTyped = UpdatePhoneRequestToJSONTyped; -/** - * Check if a given object implements the UpdatePhoneRequest interface. - */ -function instanceOfUpdatePhoneRequest(value) { - if (!('number' in value) || value['number'] === undefined) - return false; - return true; -} -function UpdatePhoneRequestFromJSON(json) { - return UpdatePhoneRequestFromJSONTyped(json, false); -} -function UpdatePhoneRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'number': json['number'], - }; -} -function UpdatePhoneRequestToJSON(json) { - return UpdatePhoneRequestToJSONTyped(json, false); -} -function UpdatePhoneRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'number': value['number'], - }; -} -//# sourceMappingURL=UpdatePhoneRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/UpdatePhoneRequest.js.map b/dist/wallet/src/models/UpdatePhoneRequest.js.map deleted file mode 100644 index e0ba00b..0000000 --- a/dist/wallet/src/models/UpdatePhoneRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdatePhoneRequest.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/UpdatePhoneRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/User.d.ts b/dist/wallet/src/models/User.d.ts deleted file mode 100644 index 082ec99..0000000 --- a/dist/wallet/src/models/User.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { TelegramProfile } from './TelegramProfile'; -/** - * - * @export - * @interface User - */ -export interface User { - /** - * User's first name - * @type {string} - * @memberof User - */ - firstName?: string; - /** - * User's last name - * @type {string} - * @memberof User - */ - lastName?: string; - /** - * - * @type {string} - * @memberof User - */ - email?: string; - /** - * - * @type {string} - * @memberof User - */ - username?: string; - /** - * - * @type {string} - * @memberof User - */ - phone?: string; - /** - * - * @type {boolean} - * @memberof User - */ - isEmailVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isPhoneVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isKycVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isChild?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isSuperUser?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isAdmin?: boolean; - /** - * - * @type {TelegramProfile} - * @memberof User - */ - telegram?: TelegramProfile; -} -/** - * Check if a given object implements the User interface. - */ -export declare function instanceOfUser(value: object): value is User; -export declare function UserFromJSON(json: any): User; -export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User; -export declare function UserToJSON(json: any): User; -export declare function UserToJSONTyped(value?: User | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=User.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/User.d.ts.map b/dist/wallet/src/models/User.d.ts.map deleted file mode 100644 index 7dab94e..0000000 --- a/dist/wallet/src/models/User.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/User.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAE3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAmB/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoB9F"} \ No newline at end of file diff --git a/dist/wallet/src/models/User.js b/dist/wallet/src/models/User.js deleted file mode 100644 index c0e1724..0000000 --- a/dist/wallet/src/models/User.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUser = instanceOfUser; -exports.UserFromJSON = UserFromJSON; -exports.UserFromJSONTyped = UserFromJSONTyped; -exports.UserToJSON = UserToJSON; -exports.UserToJSONTyped = UserToJSONTyped; -const TelegramProfile_1 = require("./TelegramProfile"); -/** - * Check if a given object implements the User interface. - */ -function instanceOfUser(value) { - return true; -} -function UserFromJSON(json) { - return UserFromJSONTyped(json, false); -} -function UserFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'firstName': json['firstName'] == null ? undefined : json['firstName'], - 'lastName': json['lastName'] == null ? undefined : json['lastName'], - 'email': json['email'] == null ? undefined : json['email'], - 'username': json['username'] == null ? undefined : json['username'], - 'phone': json['phone'] == null ? undefined : json['phone'], - 'isEmailVerified': json['isEmailVerified'] == null ? undefined : json['isEmailVerified'], - 'isPhoneVerified': json['isPhoneVerified'] == null ? undefined : json['isPhoneVerified'], - 'isKycVerified': json['isKycVerified'] == null ? undefined : json['isKycVerified'], - 'isChild': json['isChild'] == null ? undefined : json['isChild'], - 'isSuperUser': json['isSuperUser'] == null ? undefined : json['isSuperUser'], - 'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'], - 'telegram': json['telegram'] == null ? undefined : (0, TelegramProfile_1.TelegramProfileFromJSON)(json['telegram']), - }; -} -function UserToJSON(json) { - return UserToJSONTyped(json, false); -} -function UserToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'email': value['email'], - 'username': value['username'], - 'phone': value['phone'], - 'isEmailVerified': value['isEmailVerified'], - 'isPhoneVerified': value['isPhoneVerified'], - 'isKycVerified': value['isKycVerified'], - 'isChild': value['isChild'], - 'isSuperUser': value['isSuperUser'], - 'isAdmin': value['isAdmin'], - 'telegram': (0, TelegramProfile_1.TelegramProfileToJSON)(value['telegram']), - }; -} -//# sourceMappingURL=User.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/User.js.map b/dist/wallet/src/models/User.js.map deleted file mode 100644 index ae3f7b8..0000000 --- a/dist/wallet/src/models/User.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/User.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8FH,wCAEC;AAED,oCAEC;AAED,8CAmBC;AAED,gCAEC;AAED,0CAoBC;AA/ID,uDAK2B;AAkF3B;;GA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AE,KAAK,CAAC,aAAa,CAAC;QACnC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,UAAU,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/UserError.d.ts b/dist/wallet/src/models/UserError.d.ts deleted file mode 100644 index aedb765..0000000 --- a/dist/wallet/src/models/UserError.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ErrorDetail } from './ErrorDetail'; -/** - * - * @export - * @interface UserError - */ -export interface UserError { - /** - * Localized error messages - * @type {{ [key: string]: ErrorDetail | undefined; }} - * @memberof UserError - */ - messages: { - [key: string]: ErrorDetail | undefined; - }; -} -/** - * Check if a given object implements the UserError interface. - */ -export declare function instanceOfUserError(value: object): value is UserError; -export declare function UserErrorFromJSON(json: any): UserError; -export declare function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError; -export declare function UserErrorToJSON(json: any): UserError; -export declare function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=UserError.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/UserError.d.ts.map b/dist/wallet/src/models/UserError.d.ts.map deleted file mode 100644 index 18ede34..0000000 --- a/dist/wallet/src/models/UserError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserError.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/UserError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;KAAE,CAAC;CACzD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAGrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAQzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxG"} \ No newline at end of file diff --git a/dist/wallet/src/models/UserError.js b/dist/wallet/src/models/UserError.js deleted file mode 100644 index 0ba55ef..0000000 --- a/dist/wallet/src/models/UserError.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUserError = instanceOfUserError; -exports.UserErrorFromJSON = UserErrorFromJSON; -exports.UserErrorFromJSONTyped = UserErrorFromJSONTyped; -exports.UserErrorToJSON = UserErrorToJSON; -exports.UserErrorToJSONTyped = UserErrorToJSONTyped; -const runtime_1 = require("../runtime"); -const ErrorDetail_1 = require("./ErrorDetail"); -/** - * Check if a given object implements the UserError interface. - */ -function instanceOfUserError(value) { - if (!('messages' in value) || value['messages'] === undefined) - return false; - return true; -} -function UserErrorFromJSON(json) { - return UserErrorFromJSONTyped(json, false); -} -function UserErrorFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'messages': ((0, runtime_1.mapValues)(json['messages'], ErrorDetail_1.ErrorDetailFromJSON)), - }; -} -function UserErrorToJSON(json) { - return UserErrorToJSONTyped(json, false); -} -function UserErrorToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'messages': ((0, runtime_1.mapValues)(value['messages'], ErrorDetail_1.ErrorDetailToJSON)), - }; -} -//# sourceMappingURL=UserError.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/UserError.js.map b/dist/wallet/src/models/UserError.js.map deleted file mode 100644 index f184d26..0000000 --- a/dist/wallet/src/models/UserError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserError.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/UserError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kDAGC;AAED,8CAEC;AAED,wDAQC;AAED,0CAEC;AAED,oDASC;AA1DD,wCAAuC;AAEvC,+CAKuB;AAgBvB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,iCAAmB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,+BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WalletBalance.d.ts b/dist/wallet/src/models/WalletBalance.d.ts deleted file mode 100644 index 881d312..0000000 --- a/dist/wallet/src/models/WalletBalance.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Currency } from './Currency'; -import type { Balance } from './Balance'; -/** - * - * @export - * @interface WalletBalance - */ -export interface WalletBalance { - /** - * - * @type {Currency} - * @memberof WalletBalance - */ - total: Currency; - /** - * - * @type {Array} - * @memberof WalletBalance - */ - balances: Array; -} -/** - * Check if a given object implements the WalletBalance interface. - */ -export declare function instanceOfWalletBalance(value: object): value is WalletBalance; -export declare function WalletBalanceFromJSON(json: any): WalletBalance; -export declare function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance; -export declare function WalletBalanceToJSON(json: any): WalletBalance; -export declare function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WalletBalance.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WalletBalance.d.ts.map b/dist/wallet/src/models/WalletBalance.d.ts.map deleted file mode 100644 index 4f76f86..0000000 --- a/dist/wallet/src/models/WalletBalance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WalletBalance.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WalletBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CASjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhH"} \ No newline at end of file diff --git a/dist/wallet/src/models/WalletBalance.js b/dist/wallet/src/models/WalletBalance.js deleted file mode 100644 index 33535da..0000000 --- a/dist/wallet/src/models/WalletBalance.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWalletBalance = instanceOfWalletBalance; -exports.WalletBalanceFromJSON = WalletBalanceFromJSON; -exports.WalletBalanceFromJSONTyped = WalletBalanceFromJSONTyped; -exports.WalletBalanceToJSON = WalletBalanceToJSON; -exports.WalletBalanceToJSONTyped = WalletBalanceToJSONTyped; -const Currency_1 = require("./Currency"); -const Balance_1 = require("./Balance"); -/** - * Check if a given object implements the WalletBalance interface. - */ -function instanceOfWalletBalance(value) { - if (!('total' in value) || value['total'] === undefined) - return false; - if (!('balances' in value) || value['balances'] === undefined) - return false; - return true; -} -function WalletBalanceFromJSON(json) { - return WalletBalanceFromJSONTyped(json, false); -} -function WalletBalanceFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'total': (0, Currency_1.CurrencyFromJSON)(json['total']), - 'balances': (json['balances'].map(Balance_1.BalanceFromJSON)), - }; -} -function WalletBalanceToJSON(json) { - return WalletBalanceToJSONTyped(json, false); -} -function WalletBalanceToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'total': (0, Currency_1.CurrencyToJSON)(value['total']), - 'balances': (value['balances'].map(Balance_1.BalanceToJSON)), - }; -} -//# sourceMappingURL=WalletBalance.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WalletBalance.js.map b/dist/wallet/src/models/WalletBalance.js.map deleted file mode 100644 index f5355e1..0000000 --- a/dist/wallet/src/models/WalletBalance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WalletBalance.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/WalletBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0DAIC;AAED,sDAEC;AAED,gEASC;AAED,kDAEC;AAED,4DAUC;AAxED,yCAKoB;AAEpB,uCAKmB;AAsBnB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,UAAU,EAAE,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvC,UAAU,EAAE,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequest.d.ts b/dist/wallet/src/models/WithdrawRequest.d.ts deleted file mode 100644 index 9f1ce97..0000000 --- a/dist/wallet/src/models/WithdrawRequest.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -import type { Network } from './Network'; -import type { Timestamp } from './Timestamp'; -/** - * - * @export - * @interface WithdrawRequest - */ -export interface WithdrawRequest { - /** - * - * @type {number} - * @memberof WithdrawRequest - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof WithdrawRequest - */ - timeCreated: Timestamp; - /** - * - * @type {Network} - * @memberof WithdrawRequest - */ - network: Network; - /** - * - * @type {Symbol} - * @memberof WithdrawRequest - */ - symbol: Symbol; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - amount: string; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - to: string; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - comment?: string | null; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - status: WithdrawRequestStatusEnum; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - blockExplorerUrl?: string | null; -} -/** - * @export - */ -export declare const WithdrawRequestStatusEnum: { - readonly PENDING: "Pending"; - readonly CANCELED: "Canceled"; - readonly APPROVED: "Approved"; - readonly REJECTED: "Rejected"; - readonly PROCCESSING: "Proccessing"; - readonly FAILED: "Failed"; - readonly SENT: "Sent"; - readonly ACCOUNT_DEBITED: "AccountDebited"; - readonly ACCOUNT_BALANCE_UNLOCKED: "AccountBalanceUnlocked"; - readonly COMPLETED: "Completed"; -}; -export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; -/** - * Check if a given object implements the WithdrawRequest interface. - */ -export declare function instanceOfWithdrawRequest(value: object): value is WithdrawRequest; -export declare function WithdrawRequestFromJSON(json: any): WithdrawRequest; -export declare function WithdrawRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequest; -export declare function WithdrawRequestToJSON(json: any): WithdrawRequest; -export declare function WithdrawRequestToJSONTyped(value?: WithdrawRequest | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WithdrawRequest.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequest.d.ts.map b/dist/wallet/src/models/WithdrawRequest.d.ts.map deleted file mode 100644 index 8dbe288..0000000 --- a/dist/wallet/src/models/WithdrawRequest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequest.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAW5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CASjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAgBrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBpH"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequest.js b/dist/wallet/src/models/WithdrawRequest.js deleted file mode 100644 index fb60dc3..0000000 --- a/dist/wallet/src/models/WithdrawRequest.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WithdrawRequestStatusEnum = void 0; -exports.instanceOfWithdrawRequest = instanceOfWithdrawRequest; -exports.WithdrawRequestFromJSON = WithdrawRequestFromJSON; -exports.WithdrawRequestFromJSONTyped = WithdrawRequestFromJSONTyped; -exports.WithdrawRequestToJSON = WithdrawRequestToJSON; -exports.WithdrawRequestToJSONTyped = WithdrawRequestToJSONTyped; -const Symbol_1 = require("./Symbol"); -const Network_1 = require("./Network"); -const Timestamp_1 = require("./Timestamp"); -/** - * @export - */ -exports.WithdrawRequestStatusEnum = { - PENDING: 'Pending', - CANCELED: 'Canceled', - APPROVED: 'Approved', - REJECTED: 'Rejected', - PROCCESSING: 'Proccessing', - FAILED: 'Failed', - SENT: 'Sent', - ACCOUNT_DEBITED: 'AccountDebited', - ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', - COMPLETED: 'Completed' -}; -/** - * Check if a given object implements the WithdrawRequest interface. - */ -function instanceOfWithdrawRequest(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - if (!('timeCreated' in value) || value['timeCreated'] === undefined) - return false; - if (!('network' in value) || value['network'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('to' in value) || value['to'] === undefined) - return false; - if (!('status' in value) || value['status'] === undefined) - return false; - return true; -} -function WithdrawRequestFromJSON(json) { - return WithdrawRequestFromJSONTyped(json, false); -} -function WithdrawRequestFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - 'timeCreated': (0, Timestamp_1.TimestampFromJSON)(json['timeCreated']), - 'network': (0, Network_1.NetworkFromJSON)(json['network']), - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'amount': json['amount'], - 'to': json['to'], - 'comment': json['comment'] == null ? undefined : json['comment'], - 'status': json['status'], - 'blockExplorerUrl': json['blockExplorerUrl'] == null ? undefined : json['blockExplorerUrl'], - }; -} -function WithdrawRequestToJSON(json) { - return WithdrawRequestToJSONTyped(json, false); -} -function WithdrawRequestToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - 'timeCreated': (0, Timestamp_1.TimestampToJSON)(value['timeCreated']), - 'network': (0, Network_1.NetworkToJSON)(value['network']), - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'amount': value['amount'], - 'to': value['to'], - 'comment': value['comment'], - 'status': value['status'], - 'blockExplorerUrl': value['blockExplorerUrl'], - }; -} -//# sourceMappingURL=WithdrawRequest.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequest.js.map b/dist/wallet/src/models/WithdrawRequest.js.map deleted file mode 100644 index e3d3119..0000000 --- a/dist/wallet/src/models/WithdrawRequest.js.map +++ /dev/null @@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,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,aAAa,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpD,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestBody.d.ts b/dist/wallet/src/models/WithdrawRequestBody.d.ts deleted file mode 100644 index d1cc002..0000000 --- a/dist/wallet/src/models/WithdrawRequestBody.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface WithdrawRequestBody - */ -export interface WithdrawRequestBody { - /** - * Network to withdraw - * @type {string} - * @memberof WithdrawRequestBody - */ - network: string; - /** - * Coin symbol - * @type {string} - * @memberof WithdrawRequestBody - */ - symbol: string; - /** - * Amount to withdraw - * @type {string} - * @memberof WithdrawRequestBody - */ - amount: string; - /** - * Withdrawal address - * @type {string} - * @memberof WithdrawRequestBody - */ - address: string; - /** - * - * @type {string} - * @memberof WithdrawRequestBody - */ - comment?: string | null; -} -/** - * Check if a given object implements the WithdrawRequestBody interface. - */ -export declare function instanceOfWithdrawRequestBody(value: object): value is WithdrawRequestBody; -export declare function WithdrawRequestBodyFromJSON(json: any): WithdrawRequestBody; -export declare function WithdrawRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestBody; -export declare function WithdrawRequestBodyToJSON(json: any): WithdrawRequestBody; -export declare function WithdrawRequestBodyToJSONTyped(value?: WithdrawRequestBody | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WithdrawRequestBody.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestBody.d.ts.map b/dist/wallet/src/models/WithdrawRequestBody.d.ts.map deleted file mode 100644 index 80640ed..0000000 --- a/dist/wallet/src/models/WithdrawRequestBody.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestBody.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAMzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAY7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5H"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestBody.js b/dist/wallet/src/models/WithdrawRequestBody.js deleted file mode 100644 index 483f9b4..0000000 --- a/dist/wallet/src/models/WithdrawRequestBody.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWithdrawRequestBody = instanceOfWithdrawRequestBody; -exports.WithdrawRequestBodyFromJSON = WithdrawRequestBodyFromJSON; -exports.WithdrawRequestBodyFromJSONTyped = WithdrawRequestBodyFromJSONTyped; -exports.WithdrawRequestBodyToJSON = WithdrawRequestBodyToJSON; -exports.WithdrawRequestBodyToJSONTyped = WithdrawRequestBodyToJSONTyped; -/** - * Check if a given object implements the WithdrawRequestBody interface. - */ -function instanceOfWithdrawRequestBody(value) { - if (!('network' in value) || value['network'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('address' in value) || value['address'] === undefined) - return false; - return true; -} -function WithdrawRequestBodyFromJSON(json) { - return WithdrawRequestBodyFromJSONTyped(json, false); -} -function WithdrawRequestBodyFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'network': json['network'], - 'symbol': json['symbol'], - 'amount': json['amount'], - 'address': json['address'], - 'comment': json['comment'] == null ? undefined : json['comment'], - }; -} -function WithdrawRequestBodyToJSON(json) { - return WithdrawRequestBodyToJSONTyped(json, false); -} -function WithdrawRequestBodyToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'network': value['network'], - 'symbol': value['symbol'], - 'amount': value['amount'], - 'address': value['address'], - 'comment': value['comment'], - }; -} -//# sourceMappingURL=WithdrawRequestBody.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestBody.js.map b/dist/wallet/src/models/WithdrawRequestBody.js.map deleted file mode 100644 index 282b336..0000000 --- a/dist/wallet/src/models/WithdrawRequestBody.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestBody.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,sEAMC;AAED,kEAEC;AAED,4EAYC;AAED,8DAEC;AAED,wEAaC;AA9CD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestPreview.d.ts b/dist/wallet/src/models/WithdrawRequestPreview.d.ts deleted file mode 100644 index 48e2e5e..0000000 --- a/dist/wallet/src/models/WithdrawRequestPreview.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { Symbol } from './Symbol'; -import type { Currency } from './Currency'; -import type { Network } from './Network'; -/** - * - * @export - * @interface WithdrawRequestPreview - */ -export interface WithdrawRequestPreview { - /** - * Withdrawal address - * @type {string} - * @memberof WithdrawRequestPreview - */ - address: string; - /** - * - * @type {Network} - * @memberof WithdrawRequestPreview - */ - network: Network; - /** - * - * @type {Symbol} - * @memberof WithdrawRequestPreview - */ - symbol: Symbol; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - amount: Currency; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - fee: Currency; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - balanceAfterWithdraw: Currency; -} -/** - * Check if a given object implements the WithdrawRequestPreview interface. - */ -export declare function instanceOfWithdrawRequestPreview(value: object): value is WithdrawRequestPreview; -export declare function WithdrawRequestPreviewFromJSON(json: any): WithdrawRequestPreview; -export declare function WithdrawRequestPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestPreview; -export declare function WithdrawRequestPreviewToJSON(json: any): WithdrawRequestPreview; -export declare function WithdrawRequestPreviewToJSONTyped(value?: WithdrawRequestPreview | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WithdrawRequestPreview.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestPreview.d.ts.map b/dist/wallet/src/models/WithdrawRequestPreview.d.ts.map deleted file mode 100644 index 4081906..0000000 --- a/dist/wallet/src/models/WithdrawRequestPreview.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestPreview.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestPreview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,GAAG,EAAE,QAAQ,CAAC;IACd;;;;OAIG;IACH,oBAAoB,EAAE,QAAQ,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAQ/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAanH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAclI"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestPreview.js b/dist/wallet/src/models/WithdrawRequestPreview.js deleted file mode 100644 index 9e5fb0e..0000000 --- a/dist/wallet/src/models/WithdrawRequestPreview.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWithdrawRequestPreview = instanceOfWithdrawRequestPreview; -exports.WithdrawRequestPreviewFromJSON = WithdrawRequestPreviewFromJSON; -exports.WithdrawRequestPreviewFromJSONTyped = WithdrawRequestPreviewFromJSONTyped; -exports.WithdrawRequestPreviewToJSON = WithdrawRequestPreviewToJSON; -exports.WithdrawRequestPreviewToJSONTyped = WithdrawRequestPreviewToJSONTyped; -const Symbol_1 = require("./Symbol"); -const Currency_1 = require("./Currency"); -const Network_1 = require("./Network"); -/** - * Check if a given object implements the WithdrawRequestPreview interface. - */ -function instanceOfWithdrawRequestPreview(value) { - if (!('address' in value) || value['address'] === undefined) - return false; - if (!('network' in value) || value['network'] === undefined) - return false; - if (!('symbol' in value) || value['symbol'] === undefined) - return false; - if (!('amount' in value) || value['amount'] === undefined) - return false; - if (!('fee' in value) || value['fee'] === undefined) - return false; - if (!('balanceAfterWithdraw' in value) || value['balanceAfterWithdraw'] === undefined) - return false; - return true; -} -function WithdrawRequestPreviewFromJSON(json) { - return WithdrawRequestPreviewFromJSONTyped(json, false); -} -function WithdrawRequestPreviewFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'address': json['address'], - 'network': (0, Network_1.NetworkFromJSON)(json['network']), - 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), - 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), - 'fee': (0, Currency_1.CurrencyFromJSON)(json['fee']), - 'balanceAfterWithdraw': (0, Currency_1.CurrencyFromJSON)(json['balanceAfterWithdraw']), - }; -} -function WithdrawRequestPreviewToJSON(json) { - return WithdrawRequestPreviewToJSONTyped(json, false); -} -function WithdrawRequestPreviewToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'address': value['address'], - 'network': (0, Network_1.NetworkToJSON)(value['network']), - 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), - 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), - 'fee': (0, Currency_1.CurrencyToJSON)(value['fee']), - 'balanceAfterWithdraw': (0, Currency_1.CurrencyToJSON)(value['balanceAfterWithdraw']), - }; -} -//# sourceMappingURL=WithdrawRequestPreview.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestPreview.js.map b/dist/wallet/src/models/WithdrawRequestPreview.js.map deleted file mode 100644 index 8ec48f2..0000000 --- a/dist/wallet/src/models/WithdrawRequestPreview.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestPreview.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestPreview.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0EH,4EAQC;AAED,wEAEC;AAED,kFAaC;AAED,oEAEC;AAED,8EAcC;AArHD,qCAKkB;AAElB,yCAKoB;AAEpB,uCAKmB;AAgDnB;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,sBAAsB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,KAAK,SAAS;QAAE,OAAO,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EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,sBAAsB,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestResponse.d.ts b/dist/wallet/src/models/WithdrawRequestResponse.d.ts deleted file mode 100644 index b4578bc..0000000 --- a/dist/wallet/src/models/WithdrawRequestResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { WithdrawRequest } from './WithdrawRequest'; -/** - * - * @export - * @interface WithdrawRequestResponse - */ -export interface WithdrawRequestResponse { - /** - * - * @type {Array} - * @memberof WithdrawRequestResponse - */ - data: Array; -} -/** - * Check if a given object implements the WithdrawRequestResponse interface. - */ -export declare function instanceOfWithdrawRequestResponse(value: object): value is WithdrawRequestResponse; -export declare function WithdrawRequestResponseFromJSON(json: any): WithdrawRequestResponse; -export declare function WithdrawRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestResponse; -export declare function WithdrawRequestResponseToJSON(json: any): WithdrawRequestResponse; -export declare function WithdrawRequestResponseToJSONTyped(value?: WithdrawRequestResponse | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WithdrawRequestResponse.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestResponse.d.ts.map b/dist/wallet/src/models/WithdrawRequestResponse.d.ts.map deleted file mode 100644 index ff49267..0000000 --- a/dist/wallet/src/models/WithdrawRequestResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestResponse.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAGjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAQrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpI"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestResponse.js b/dist/wallet/src/models/WithdrawRequestResponse.js deleted file mode 100644 index ca459fa..0000000 --- a/dist/wallet/src/models/WithdrawRequestResponse.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWithdrawRequestResponse = instanceOfWithdrawRequestResponse; -exports.WithdrawRequestResponseFromJSON = WithdrawRequestResponseFromJSON; -exports.WithdrawRequestResponseFromJSONTyped = WithdrawRequestResponseFromJSONTyped; -exports.WithdrawRequestResponseToJSON = WithdrawRequestResponseToJSON; -exports.WithdrawRequestResponseToJSONTyped = WithdrawRequestResponseToJSONTyped; -const WithdrawRequest_1 = require("./WithdrawRequest"); -/** - * Check if a given object implements the WithdrawRequestResponse interface. - */ -function instanceOfWithdrawRequestResponse(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function WithdrawRequestResponseFromJSON(json) { - return WithdrawRequestResponseFromJSONTyped(json, false); -} -function WithdrawRequestResponseFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': (json['data'].map(WithdrawRequest_1.WithdrawRequestFromJSON)), - }; -} -function WithdrawRequestResponseToJSON(json) { - return WithdrawRequestResponseToJSONTyped(json, false); -} -function WithdrawRequestResponseToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': (value['data'].map(WithdrawRequest_1.WithdrawRequestToJSON)), - }; -} -//# sourceMappingURL=WithdrawRequestResponse.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawRequestResponse.js.map b/dist/wallet/src/models/WithdrawRequestResponse.js.map deleted file mode 100644 index ba319c5..0000000 --- a/dist/wallet/src/models/WithdrawRequestResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawRequestResponse.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawRequestResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,8EAGC;AAED,0EAEC;AAED,oFAQC;AAED,sEAEC;AAED,gFASC;AAxDD,uDAK2B;AAgB3B;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yCAAuB,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAAsC,EAAE,sBAA+B,KAAK;IAC3H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,uCAAqB,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawResponseBody.d.ts b/dist/wallet/src/models/WithdrawResponseBody.d.ts deleted file mode 100644 index b3055f0..0000000 --- a/dist/wallet/src/models/WithdrawResponseBody.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface WithdrawResponseBody - */ -export interface WithdrawResponseBody { - /** - * Withdrawal request ID - * @type {number} - * @memberof WithdrawResponseBody - */ - id: number; -} -/** - * Check if a given object implements the WithdrawResponseBody interface. - */ -export declare function instanceOfWithdrawResponseBody(value: object): value is WithdrawResponseBody; -export declare function WithdrawResponseBodyFromJSON(json: any): WithdrawResponseBody; -export declare function WithdrawResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawResponseBody; -export declare function WithdrawResponseBodyToJSON(json: any): WithdrawResponseBody; -export declare function WithdrawResponseBodyToJSONTyped(value?: WithdrawResponseBody | null, ignoreDiscriminator?: boolean): any; -//# sourceMappingURL=WithdrawResponseBody.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawResponseBody.d.ts.map b/dist/wallet/src/models/WithdrawResponseBody.d.ts.map deleted file mode 100644 index 7c4ae9f..0000000 --- a/dist/wallet/src/models/WithdrawResponseBody.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawResponseBody.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawResponseBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawResponseBody.js b/dist/wallet/src/models/WithdrawResponseBody.js deleted file mode 100644 index 8aece2b..0000000 --- a/dist/wallet/src/models/WithdrawResponseBody.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfWithdrawResponseBody = instanceOfWithdrawResponseBody; -exports.WithdrawResponseBodyFromJSON = WithdrawResponseBodyFromJSON; -exports.WithdrawResponseBodyFromJSONTyped = WithdrawResponseBodyFromJSONTyped; -exports.WithdrawResponseBodyToJSON = WithdrawResponseBodyToJSON; -exports.WithdrawResponseBodyToJSONTyped = WithdrawResponseBodyToJSONTyped; -/** - * Check if a given object implements the WithdrawResponseBody interface. - */ -function instanceOfWithdrawResponseBody(value) { - if (!('id' in value) || value['id'] === undefined) - return false; - return true; -} -function WithdrawResponseBodyFromJSON(json) { - return WithdrawResponseBodyFromJSONTyped(json, false); -} -function WithdrawResponseBodyFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'id': json['id'], - }; -} -function WithdrawResponseBodyToJSON(json) { - return WithdrawResponseBodyToJSONTyped(json, false); -} -function WithdrawResponseBodyToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'id': value['id'], - }; -} -//# sourceMappingURL=WithdrawResponseBody.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/WithdrawResponseBody.js.map b/dist/wallet/src/models/WithdrawResponseBody.js.map deleted file mode 100644 index c2cd9cb..0000000 --- a/dist/wallet/src/models/WithdrawResponseBody.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithdrawResponseBody.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/WithdrawResponseBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAnCD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;KACpB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/index.d.ts b/dist/wallet/src/models/index.d.ts deleted file mode 100644 index a9df4f9..0000000 --- a/dist/wallet/src/models/index.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -export * from './AdminRedemptionUpdateRequest'; -export * from './AuthTelegramRequest'; -export * from './Balance'; -export * from './BankInfo'; -export * from './BulletContent'; -export * from './Coin'; -export * from './CoinConfig'; -export * from './CoinResponse'; -export * from './CreateChildUserRequest'; -export * from './Currency'; -export * from './DepositResponse'; -export * from './DetailedLoanToValueOptions'; -export * from './EmailOtpSubmitRequest'; -export * from './ErrorDetail'; -export * from './ExternalTransaction'; -export * from './FriendPoints'; -export * from './FriendPointsResponse'; -export * from './HealthStatus'; -export * from './JwtResponse'; -export * from './KycConfirmRequest'; -export * from './KycRequest'; -export * from './KycResponse'; -export * from './LoanCreateRequest'; -export * from './LoanPlan'; -export * from './LoanPlanResponse'; -export * from './LoanToValueOptions'; -export * from './LoansResponse'; -export * from './LoansResponseList'; -export * from './LoginRequest'; -export * from './ModelError'; -export * from './Network'; -export * from './Payment'; -export * from './PaymentRequest'; -export * from './PhoneOtpSubmitRequest'; -export * from './ProfileResponse'; -export * from './Redemption'; -export * from './RedemptionRequest'; -export * from './RedemptionResponse'; -export * from './Referral'; -export * from './ReferralResponse'; -export * from './RepayLoanRequest'; -export * from './SignUpRequest'; -export * from './SimpleResponse'; -export * from './SwapRequest'; -export * from './SwapResponse'; -export * from './Symbol'; -export * from './Task'; -export * from './TaskResponse'; -export * from './TelegramProfile'; -export * from './Timestamp'; -export * from './Transaction'; -export * from './TransactionResponse'; -export * from './TransactionStatus'; -export * from './TransactionType'; -export * from './UpdateEmailRequest'; -export * from './UpdatePhoneRequest'; -export * from './User'; -export * from './UserError'; -export * from './WalletBalance'; -export * from './WithdrawRequest'; -export * from './WithdrawRequestBody'; -export * from './WithdrawRequestPreview'; -export * from './WithdrawRequestResponse'; -export * from './WithdrawResponseBody'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/models/index.d.ts.map b/dist/wallet/src/models/index.d.ts.map deleted file mode 100644 index cb7027d..0000000 --- a/dist/wallet/src/models/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAA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AC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/wallet/src/models/index.js b/dist/wallet/src/models/index.js deleted file mode 100644 index 8e23727..0000000 --- a/dist/wallet/src/models/index.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -/* tslint:disable */ -/* eslint-disable */ -tslib_1.__exportStar(require("./AdminRedemptionUpdateRequest"), exports); -tslib_1.__exportStar(require("./AuthTelegramRequest"), exports); -tslib_1.__exportStar(require("./Balance"), exports); -tslib_1.__exportStar(require("./BankInfo"), exports); -tslib_1.__exportStar(require("./BulletContent"), exports); -tslib_1.__exportStar(require("./Coin"), exports); -tslib_1.__exportStar(require("./CoinConfig"), exports); -tslib_1.__exportStar(require("./CoinResponse"), exports); -tslib_1.__exportStar(require("./CreateChildUserRequest"), exports); -tslib_1.__exportStar(require("./Currency"), exports); -tslib_1.__exportStar(require("./DepositResponse"), exports); -tslib_1.__exportStar(require("./DetailedLoanToValueOptions"), exports); -tslib_1.__exportStar(require("./EmailOtpSubmitRequest"), exports); -tslib_1.__exportStar(require("./ErrorDetail"), exports); -tslib_1.__exportStar(require("./ExternalTransaction"), exports); -tslib_1.__exportStar(require("./FriendPoints"), exports); -tslib_1.__exportStar(require("./FriendPointsResponse"), exports); -tslib_1.__exportStar(require("./HealthStatus"), exports); -tslib_1.__exportStar(require("./JwtResponse"), exports); -tslib_1.__exportStar(require("./KycConfirmRequest"), exports); -tslib_1.__exportStar(require("./KycRequest"), exports); -tslib_1.__exportStar(require("./KycResponse"), exports); -tslib_1.__exportStar(require("./LoanCreateRequest"), exports); -tslib_1.__exportStar(require("./LoanPlan"), exports); -tslib_1.__exportStar(require("./LoanPlanResponse"), exports); -tslib_1.__exportStar(require("./LoanToValueOptions"), exports); -tslib_1.__exportStar(require("./LoansResponse"), exports); -tslib_1.__exportStar(require("./LoansResponseList"), exports); -tslib_1.__exportStar(require("./LoginRequest"), exports); -tslib_1.__exportStar(require("./ModelError"), exports); -tslib_1.__exportStar(require("./Network"), exports); -tslib_1.__exportStar(require("./Payment"), exports); -tslib_1.__exportStar(require("./PaymentRequest"), exports); -tslib_1.__exportStar(require("./PhoneOtpSubmitRequest"), exports); -tslib_1.__exportStar(require("./ProfileResponse"), exports); -tslib_1.__exportStar(require("./Redemption"), exports); -tslib_1.__exportStar(require("./RedemptionRequest"), exports); -tslib_1.__exportStar(require("./RedemptionResponse"), exports); -tslib_1.__exportStar(require("./Referral"), exports); -tslib_1.__exportStar(require("./ReferralResponse"), exports); -tslib_1.__exportStar(require("./RepayLoanRequest"), exports); -tslib_1.__exportStar(require("./SignUpRequest"), exports); -tslib_1.__exportStar(require("./SimpleResponse"), exports); -tslib_1.__exportStar(require("./SwapRequest"), exports); -tslib_1.__exportStar(require("./SwapResponse"), exports); -tslib_1.__exportStar(require("./Symbol"), exports); -tslib_1.__exportStar(require("./Task"), exports); -tslib_1.__exportStar(require("./TaskResponse"), exports); -tslib_1.__exportStar(require("./TelegramProfile"), exports); -tslib_1.__exportStar(require("./Timestamp"), exports); -tslib_1.__exportStar(require("./Transaction"), exports); -tslib_1.__exportStar(require("./TransactionResponse"), exports); -tslib_1.__exportStar(require("./TransactionStatus"), exports); -tslib_1.__exportStar(require("./TransactionType"), exports); -tslib_1.__exportStar(require("./UpdateEmailRequest"), exports); -tslib_1.__exportStar(require("./UpdatePhoneRequest"), exports); -tslib_1.__exportStar(require("./User"), exports); -tslib_1.__exportStar(require("./UserError"), exports); -tslib_1.__exportStar(require("./WalletBalance"), exports); -tslib_1.__exportStar(require("./WithdrawRequest"), exports); -tslib_1.__exportStar(require("./WithdrawRequestBody"), exports); -tslib_1.__exportStar(require("./WithdrawRequestPreview"), exports); -tslib_1.__exportStar(require("./WithdrawRequestResponse"), exports); -tslib_1.__exportStar(require("./WithdrawResponseBody"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/wallet/src/models/index.js.map b/dist/wallet/src/models/index.js.map deleted file mode 100644 index 2e4ca6c..0000000 --- a/dist/wallet/src/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallet/src/models/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yEAA+C;AAC/C,gEAAsC;AACtC,oDAA0B;AAC1B,qDAA2B;AAC3B,0DAAgC;AAChC,iDAAuB;AACvB,uDAA6B;AAC7B,yDAA+B;AAC/B,mEAAyC;AACzC,qDAA2B;AAC3B,4DAAkC;AAClC,uEAA6C;AAC7C,kEAAwC;AACxC,wDAA8B;AAC9B,gEAAsC;AACtC,yDAA+B;AAC/B,iEAAuC;AACvC,yDAA+B;AAC/B,wDAA8B;AAC9B,8DAAoC;AACpC,uDAA6B;AAC7B,wDAA8B;AAC9B,8DAAoC;AACpC,qDAA2B;AAC3B,6DAAmC;AACnC,+DAAqC;AACrC,0DAAgC;AAChC,8DAAoC;AACpC,yDAA+B;AAC/B,uDAA6B;AAC7B,oDAA0B;AAC1B,oDAA0B;AAC1B,2DAAiC;AACjC,kEAAwC;AACxC,4DAAkC;AAClC,uDAA6B;AAC7B,8DAAoC;AACpC,+DAAqC;AACrC,qDAA2B;AAC3B,6DAAmC;AACnC,6DAAmC;AACnC,0DAAgC;AAChC,2DAAiC;AACjC,wDAA8B;AAC9B,yDAA+B;AAC/B,mDAAyB;AACzB,iDAAuB;AACvB,yDAA+B;AAC/B,4DAAkC;AAClC,sDAA4B;AAC5B,wDAA8B;AAC9B,gEAAsC;AACtC,8DAAoC;AACpC,4DAAkC;AAClC,+DAAqC;AACrC,+DAAqC;AACrC,iDAAuB;AACvB,sDAA4B;AAC5B,0DAAgC;AAChC,4DAAkC;AAClC,gEAAsC;AACtC,mEAAyC;AACzC,oEAA0C;AAC1C,iEAAuC"} \ No newline at end of file diff --git a/dist/wallet/src/runtime.d.ts b/dist/wallet/src/runtime.d.ts deleted file mode 100644 index 6bb0eb7..0000000 --- a/dist/wallet/src/runtime.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export declare const BASE_PATH: string; -export interface ConfigurationParameters { - basePath?: string; - fetchApi?: FetchAPI; - middleware?: Middleware[]; - queryParamsStringify?: (params: HTTPQuery) => string; - username?: string; - password?: string; - apiKey?: string | Promise | ((name: string) => string | Promise); - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); - headers?: HTTPHeaders; - credentials?: RequestCredentials; -} -export declare class Configuration { - private configuration; - constructor(configuration?: ConfigurationParameters); - set config(configuration: Configuration); - get basePath(): string; - get fetchApi(): FetchAPI | undefined; - get middleware(): Middleware[]; - get queryParamsStringify(): (params: HTTPQuery) => string; - get username(): string | undefined; - get password(): string | undefined; - get apiKey(): ((name: string) => string | Promise) | undefined; - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; - get headers(): HTTPHeaders | undefined; - get credentials(): RequestCredentials | undefined; -} -export declare const DefaultConfig: Configuration; -/** - * This is the base class for all generated API classes. - */ -export declare class BaseAPI { - protected configuration: Configuration; - private static readonly jsonRegex; - private middleware; - constructor(configuration?: Configuration); - withMiddleware(this: T, ...middlewares: Middleware[]): T; - withPreMiddleware(this: T, ...preMiddlewares: Array): T; - withPostMiddleware(this: T, ...postMiddlewares: Array): T; - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean; - protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; - private createFetchParams; - private fetchApi; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone; -} -export declare class ResponseError extends Error { - response: Response; - name: "ResponseError"; - constructor(response: Response, msg?: string); -} -export declare class FetchError extends Error { - cause: Error; - name: "FetchError"; - constructor(cause: Error, msg?: string); -} -export declare class RequiredError extends Error { - field: string; - name: "RequiredError"; - constructor(field: string, msg?: string); -} -export declare const COLLECTION_FORMATS: { - csv: string; - ssv: string; - tsv: string; - pipes: string; -}; -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { - [key: string]: string; -}; -export type HTTPQuery = { - [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; -}; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { - headers?: HTTPHeaders; - method: HTTPMethod; - credentials?: RequestCredentials; - body?: HTTPBody; -}; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; -export type InitOverrideFunction = (requestContext: { - init: HTTPRequestInit; - context: RequestOpts; -}) => Promise; -export interface FetchParams { - url: string; - init: RequestInit; -} -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} -export declare function querystring(params: HTTPQuery, prefix?: string): string; -export declare function exists(json: any, key: string): boolean; -export declare function mapValues(data: any, fn: (item: any) => any): {}; -export declare function canConsumeForm(consumes: Consume[]): boolean; -export interface Consume { - contentType: string; -} -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} -export interface ApiResponse { - raw: Response; - value(): Promise; -} -export interface ResponseTransformer { - (json: any): T; -} -export declare class JSONApiResponse { - raw: Response; - private transformer; - constructor(raw: Response, transformer?: ResponseTransformer); - value(): Promise; -} -export declare class VoidApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -export declare class BlobApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -export declare class TextApiResponse { - raw: Response; - constructor(raw: Response); - value(): Promise; -} -//# sourceMappingURL=runtime.d.ts.map \ No newline at end of file diff --git a/dist/wallet/src/runtime.d.ts.map b/dist/wallet/src/runtime.d.ts.map deleted file mode 100644 index 3ab90ff..0000000 --- a/dist/wallet/src/runtime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/wallet/src/runtime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,eAAO,MAAM,SAAS,QAA+C,CAAC;AAEtE,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACjF,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,E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EAAE,QAAQ,CAAC;IACd,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IAClC,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;CAClB;AAED,qBAAa,eAAe,CAAC,CAAC;IACP,GAAG,EAAE,QAAQ;IAAE,OAAO,CAAC,WAAW;gBAAlC,GAAG,EAAE,QAAQ,EAAU,WAAW,GAAE,mBAAmB,CAAC,CAAC,CAAiC;IAEvG,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAGjC"} \ No newline at end of file diff --git a/dist/wallet/src/runtime.js b/dist/wallet/src/runtime.js deleted file mode 100644 index 05f31e0..0000000 --- a/dist/wallet/src/runtime.js +++ /dev/null @@ -1,346 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; -exports.querystring = querystring; -exports.exists = exists; -exports.mapValues = mapValues; -exports.canConsumeForm = canConsumeForm; -exports.BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); -class Configuration { - configuration; - constructor(configuration = {}) { - this.configuration = configuration; - } - set config(configuration) { - this.configuration = configuration; - } - get basePath() { - return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; - } - get fetchApi() { - return this.configuration.fetchApi; - } - get middleware() { - return this.configuration.middleware || []; - } - get queryParamsStringify() { - return this.configuration.queryParamsStringify || querystring; - } - get username() { - return this.configuration.username; - } - get password() { - return this.configuration.password; - } - get apiKey() { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - get accessToken() { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - get headers() { - return this.configuration.headers; - } - get credentials() { - return this.configuration.credentials; - } -} -exports.Configuration = Configuration; -exports.DefaultConfig = new Configuration(); -/** - * This is the base class for all generated API classes. - */ -class BaseAPI { - configuration; - static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - middleware; - constructor(configuration = exports.DefaultConfig) { - this.configuration = configuration; - this.middleware = configuration.middleware; - } - withMiddleware(...middlewares) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - withPreMiddleware(...preMiddlewares) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - withPostMiddleware(...postMiddlewares) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime) { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - async request(context, initOverrides) { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - async createFetchParams(context, initOverrides) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - const initOverrideFn = typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - const overriddenInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - let body; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } - else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); - } - else { - body = overriddenInit.body; - } - const init = { - ...overriddenInit, - body - }; - return { url, init }; - } - fetchApi = async (url, init) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } - catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } - else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - }; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - clone() { - const constructor = this.constructor; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -} -exports.BaseAPI = BaseAPI; -; -function isBlob(value) { - return typeof Blob !== 'undefined' && value instanceof Blob; -} -function isFormData(value) { - return typeof FormData !== "undefined" && value instanceof FormData; -} -class ResponseError extends Error { - response; - name = "ResponseError"; - constructor(response, msg) { - super(msg); - this.response = response; - } -} -exports.ResponseError = ResponseError; -class FetchError extends Error { - cause; - name = "FetchError"; - constructor(cause, msg) { - super(msg); - this.cause = cause; - } -} -exports.FetchError = FetchError; -class RequiredError extends Error { - field; - name = "RequiredError"; - constructor(field, msg) { - super(msg); - this.field = field; - } -} -exports.RequiredError = RequiredError; -exports.COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; -function querystring(params, prefix = '') { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} -function querystringSingleKey(key, value, keyPrefix = '') { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} -function exists(json, key) { - const value = json[key]; - return value !== null && value !== undefined; -} -function mapValues(data, fn) { - return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); -} -function canConsumeForm(consumes) { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} -class JSONApiResponse { - raw; - transformer; - constructor(raw, transformer = (jsonValue) => jsonValue) { - this.raw = raw; - this.transformer = transformer; - } - async value() { - return this.transformer(await this.raw.json()); - } -} -exports.JSONApiResponse = JSONApiResponse; -class VoidApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return undefined; - } -} -exports.VoidApiResponse = VoidApiResponse; -class BlobApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.blob(); - } - ; -} -exports.BlobApiResponse = BlobApiResponse; -class TextApiResponse { - raw; - constructor(raw) { - this.raw = raw; - } - async value() { - return await this.raw.text(); - } - ; -} -exports.TextApiResponse = TextApiResponse; -//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/dist/wallet/src/runtime.js.map b/dist/wallet/src/runtime.js.map deleted file mode 100644 index 534af79..0000000 --- a/dist/wallet/src/runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/wallet/src/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA4SH,kCAKC;AAsBD,wBAGC;AAED,8BAKC;AAED,wCAOC;AAvVY,QAAA,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAetE,MAAa,aAAa;IACF;IAApB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,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,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;CACJ;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAND,0CAMC"} \ No newline at end of file diff --git a/examples/signup.ts b/examples/signup.ts index 08c79ce..859cacb 100644 --- a/examples/signup.ts +++ b/examples/signup.ts @@ -10,31 +10,22 @@ async function signupExample(): Promise { const authApi = new Wallet.AuthApi.AuthApi(cfg); // Prepare the signup request data - const signupRequest = Wallet.SignUpRequestFromJSON({ - email: "user@example.com", - password: "yourSecuredPassword", - }); + const signupRequest: Wallet.SignUpRequest = { + email: "arashalaei22@gmail.com", + password: "12345678", + }; try { // Call the signup API - const response = await authApi.signupWithEmailAndPassword({ - signUpRequest: signupRequest, - }); + let response, + _ = await authApi.signupWithEmailAndPassword(signupRequest); console.log("Signup successful!"); console.log("Confirmation link sent."); console.log(`Message: ${JSON.stringify(response.messages, null, 2)}`); return response; } catch (error) { - const modelError = Wallet.instanceOfModelError(error); - if (modelError) { - console.log( - `Exception when calling authApi->signupWithEmailAndPassword: ${error}` - ); - console.log(`Error message: ${error.msg}`); - } else { - console.error("Unexpected error:", error); - } + console.log(error.response.data); throw error; } } diff --git a/fix-exports.cjs b/fix-exports.cjs index 7650879..780801f 100644 --- a/fix-exports.cjs +++ b/fix-exports.cjs @@ -3,15 +3,20 @@ const path = require("path"); const paths = ["service", "wallet"]; for (const p of paths) { - // Path to the generated api.ts file - const apiFilePath = path.resolve(__dirname, `./src/${p}/src/apis/index.ts`); + // Path to the generated index.ts file + const apiFilePath = path.resolve(__dirname, `./src/${p}/api.ts`); // Read the file content let apiFileContent = fs.readFileSync(apiFilePath, "utf-8"); // Use regex to transform `export * from` to `export * as NameApi from` apiFileContent = apiFileContent.replace( - /export \* from ['"]\.\/([A-Za-z]+)Api['"];/g, + /export \* from '\.\/api\/([a-z\-]+)-api';/g, (match, p1) => { - return `export * as ${p1}Api from "./${p1}Api";`; + // Capitalize the first letter of the API name + const apiName = p1 + .split("-") + .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) + .join(""); + return `export * as ${apiName}Api from './api/${p1}-api';`; } ); // Write the updated content back to the file diff --git a/openapitools.json b/openapitools.json index 49fc82f..c5c4049 100644 --- a/openapitools.json +++ b/openapitools.json @@ -5,7 +5,7 @@ "version": "7.10.0", "generators": { "service": { - "generatorName": "typescript-fetch", + "generatorName": "typescript-axios", "output": "./src/service", "inputSpec": "./api_specs/service.openapi.yaml", "additionalProperties": { @@ -16,7 +16,7 @@ "apiPackage": "api", "modelPackage": "model", "npmName": "zarban", - "npmVersion": "0.1.8", + "npmVersion": "0.2.0", "modelPropertyNaming": "camelCase", "enumPropertyNaming": "UPPERCASE", "nullSafeAdditionalProps": true @@ -29,7 +29,7 @@ "inputSpec": "./api_specs/service.openapi.yaml" }, "wallet": { - "generatorName": "typescript-fetch", + "generatorName": "typescript-axios", "output": "./src/wallet", "inputSpec": "./api_specs/wallet.openapi.yaml", "additionalProperties": { @@ -40,7 +40,7 @@ "apiPackage": "api", "modelPackage": "model", "npmName": "zarban", - "npmVersion": "0.1.8", + "npmVersion": "0.2.0", "modelPropertyNaming": "camelCase", "enumPropertyNaming": "UPPERCASE", "nullSafeAdditionalProps": true diff --git a/package-lock.json b/package-lock.json index 68f8d38..c8c0870 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "zarban", - "version": "0.1.7", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "zarban", - "version": "0.1.7", + "version": "0.2.0", "license": "MIT", "dependencies": { - "axios": "^1.7.9", + "axios": "^1.6.1", "tslib": "^2.8.1" }, "devDependencies": { diff --git a/package.json b/package.json index 614b00b..0104ac5 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,12 @@ { "name": "zarban", - "version": "0.1.8", + "version": "0.2.0", "description": "Zarban - A TypeScript SDK", "type": "commonjs", "main": "./dist/index.js", - "module": "dist/index.js", - "types": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - } - }, + "typings": "./dist/index.d.ts", + "module": "dist/esm/index.js", + "sideEffects": false, "files": [ "dist", "README.md" @@ -21,7 +15,7 @@ "clean": "rimraf dist && rimraf src/service && rimraf src/wallet && rimraf docs", "generate": "npx openapi-generator-cli generate", "post-generate": "node fix-exports.cjs", - "build": "npm run clean && npm run generate && npm run post-generate && tsc", + "build": "npm run clean && npm run generate && npm run post-generate && tsc && tsc -p tsconfig.esm.json", "prepublishOnly": "npm run build", "test": "jest", "lint": "eslint . --ext .ts", @@ -29,7 +23,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^1.7.9", + "axios": "^1.6.1", "tslib": "^2.8.1" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 13892ad..1ad8e7f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ -export * as Service from "./service/src/index.js"; -export * as Wallet from "./wallet/src/index.js"; +export * as Service from "./service"; +export * as Wallet from "./wallet"; diff --git a/src/service/.npmignore b/src/service/.npmignore index 42061c0..999d88d 100644 --- a/src/service/.npmignore +++ b/src/service/.npmignore @@ -1 +1 @@ -README.md \ No newline at end of file +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/src/service/.openapi-generator/FILES b/src/service/.openapi-generator/FILES index bcdb3e8..98dcb01 100644 --- a/src/service/.openapi-generator/FILES +++ b/src/service/.openapi-generator/FILES @@ -2,133 +2,136 @@ .npmignore .openapi-generator-ignore README.md +api.ts +api/accounts-api.ts +api/addresses-api.ts +api/borrows-api.ts +api/collector-api.ts +api/deposits-api.ts +api/ilks-api.ts +api/lending-pool-api.ts +api/logs-api.ts +api/orders-api.ts +api/permit-api.ts +api/points-api.ts +api/prices-api.ts +api/stable-coin-system-api.ts +api/staking-api.ts +api/swap-api.ts +api/vaults-api.ts +api/websocket-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +model/account-lendingpool-summary.ts +model/account-stablecoin-system-summary.ts +model/account-staking-summary.ts +model/account.ts +model/address-response.ts +model/address.ts +model/balance.ts +model/basic-event.ts +model/chain-activity-step-data.ts +model/chain-activity-step.ts +model/chain-activity.ts +model/dutch-amount.ts +model/eip712-sign-request.ts +model/error-message.ts +model/event-details-response.ts +model/event-domain.ts +model/event-name.ts +model/event-type.ts +model/extended-event.ts +model/formatted-reserve-data.ts +model/ilk.ts +model/ilks-response.ts +model/index.ts +model/lendingpool-borrow-tx-request.ts +model/lendingpool-borrow-tx-response.ts +model/lendingpool-borrow.ts +model/lendingpool-deposit-tx-request.ts +model/lendingpool-deposit-tx-response.ts +model/lendingpool-deposit.ts +model/lendingpool-repay-tx-request.ts +model/lendingpool-repay-tx-response.ts +model/lendingpool-stats.ts +model/lendingpool-tx-response.ts +model/lendingpool-use-asset-as-collateral-tx-request.ts +model/lendingpool-use-asset-as-collateral-tx-response.ts +model/lendingpool-withdraw-tx-request.ts +model/lendingpool-withdraw-tx-response.ts +model/log.ts +model/method-parameters.ts +model/model-error.ts +model/order-info.ts +model/order-response.ts +model/order-type.ts +model/order.ts +model/permit-single.ts +model/personal-sign-request.ts +model/prepared-tx.ts +model/price-list-response.ts +model/price.ts +model/quote-request-options.ts +model/quote-request.ts +model/quote-response.ts +model/raw-dutch-amount.ts +model/route-item.ts +model/scoreboard-item.ts +model/scoreboard.ts +model/stablecoin-system-bark-tx-request.ts +model/stablecoin-system-create-vault-tx-request.ts +model/stablecoin-system-deposit-collateral-tx-request.ts +model/stablecoin-system-gemexit-tx-request.ts +model/stablecoin-system-mint-zar-tx-request.ts +model/stablecoin-system-redo-tx-request.ts +model/stablecoin-system-repay-zar-tx-request.ts +model/stablecoin-system-stats.ts +model/stablecoin-system-take-tx-request.ts +model/stablecoin-system-withdraw-collateral-tx-request.ts +model/stablecoin-system-zarexit-tx-request.ts +model/stablecoin-system-zarjoin-tx-request.ts +model/stake-balance.ts +model/stake-plan.ts +model/stake-plans-response.ts +model/staking-collect-reward-tx-request.ts +model/staking-collect-reward-tx-response.ts +model/staking-stake-tx-request.ts +model/staking-stake-tx-response.ts +model/staking-withdraw-tx-request.ts +model/staking-withdraw-tx-response.ts +model/stats.ts +model/symbol.ts +model/system-bad-debt.ts +model/system-debt-ceiling.ts +model/system-debt.ts +model/system-surplus-buffer.ts +model/system-surplus-lot-size.ts +model/system-surplus.ts +model/time-range.ts +model/timestamp.ts +model/token.ts +model/trade-type.ts +model/type.ts +model/typed-data-domain.ts +model/typed-data.ts +model/unclaimed-reward.ts +model/update-order-request.ts +model/user-borrows-response.ts +model/user-deposits-response.ts +model/user-error.ts +model/user-stake.ts +model/user-stakes-response.ts +model/v3-pool-in-route.ts +model/vault-event-extension.ts +model/vault-event-item.ts +model/vault-event.ts +model/vault-events-response.ts +model/vault.ts +model/vaults-response.ts +model/wallet-balance.ts package.json -src/apis/AccountsApi.ts -src/apis/AddressesApi.ts -src/apis/BorrowsApi.ts -src/apis/CollectorApi.ts -src/apis/DepositsApi.ts -src/apis/IlksApi.ts -src/apis/LendingPoolApi.ts -src/apis/LogsApi.ts -src/apis/OrdersApi.ts -src/apis/PermitApi.ts -src/apis/PointsApi.ts -src/apis/PricesApi.ts -src/apis/StableCoinSystemApi.ts -src/apis/StakingApi.ts -src/apis/SwapApi.ts -src/apis/VaultsApi.ts -src/apis/WebsocketApi.ts -src/apis/index.ts -src/index.ts -src/models/Account.ts -src/models/AccountLendingpoolSummary.ts -src/models/AccountStablecoinSystemSummary.ts -src/models/AccountStakingSummary.ts -src/models/Address.ts -src/models/AddressResponse.ts -src/models/Balance.ts -src/models/BasicEvent.ts -src/models/ChainActivity.ts -src/models/ChainActivityStep.ts -src/models/ChainActivityStepData.ts -src/models/DutchAmount.ts -src/models/EIP712SignRequest.ts -src/models/ErrorMessage.ts -src/models/EventDetailsResponse.ts -src/models/EventDomain.ts -src/models/EventName.ts -src/models/EventType.ts -src/models/ExtendedEvent.ts -src/models/FormattedReserveData.ts -src/models/Ilk.ts -src/models/IlksResponse.ts -src/models/LendingpoolBorrow.ts -src/models/LendingpoolBorrowTxRequest.ts -src/models/LendingpoolBorrowTxResponse.ts -src/models/LendingpoolDeposit.ts -src/models/LendingpoolDepositTxRequest.ts -src/models/LendingpoolDepositTxResponse.ts -src/models/LendingpoolRepayTxRequest.ts -src/models/LendingpoolRepayTxResponse.ts -src/models/LendingpoolStats.ts -src/models/LendingpoolTxResponse.ts -src/models/LendingpoolUseAssetAsCollateralTxRequest.ts -src/models/LendingpoolUseAssetAsCollateralTxResponse.ts -src/models/LendingpoolWithdrawTxRequest.ts -src/models/LendingpoolWithdrawTxResponse.ts -src/models/Log.ts -src/models/MethodParameters.ts -src/models/ModelError.ts -src/models/Order.ts -src/models/OrderInfo.ts -src/models/OrderResponse.ts -src/models/OrderType.ts -src/models/PermitSingle.ts -src/models/PersonalSignRequest.ts -src/models/PreparedTx.ts -src/models/Price.ts -src/models/PriceListResponse.ts -src/models/QuoteRequest.ts -src/models/QuoteRequestOptions.ts -src/models/QuoteResponse.ts -src/models/RawDutchAmount.ts -src/models/RouteItem.ts -src/models/Scoreboard.ts -src/models/ScoreboardItem.ts -src/models/StablecoinSystemBarkTxRequest.ts -src/models/StablecoinSystemCreateVaultTxRequest.ts -src/models/StablecoinSystemDepositCollateralTxRequest.ts -src/models/StablecoinSystemGemexitTxRequest.ts -src/models/StablecoinSystemMintZarTxRequest.ts -src/models/StablecoinSystemRedoTxRequest.ts -src/models/StablecoinSystemRepayZarTxRequest.ts -src/models/StablecoinSystemStats.ts -src/models/StablecoinSystemTakeTxRequest.ts -src/models/StablecoinSystemWithdrawCollateralTxRequest.ts -src/models/StablecoinSystemZarexitTxRequest.ts -src/models/StablecoinSystemZarjoinTxRequest.ts -src/models/StakeBalance.ts -src/models/StakePlan.ts -src/models/StakePlansResponse.ts -src/models/StakingCollectRewardTxRequest.ts -src/models/StakingCollectRewardTxResponse.ts -src/models/StakingStakeTxRequest.ts -src/models/StakingStakeTxResponse.ts -src/models/StakingWithdrawTxRequest.ts -src/models/StakingWithdrawTxResponse.ts -src/models/Stats.ts -src/models/Symbol.ts -src/models/SystemBadDebt.ts -src/models/SystemDebt.ts -src/models/SystemDebtCeiling.ts -src/models/SystemSurplus.ts -src/models/SystemSurplusBuffer.ts -src/models/SystemSurplusLotSize.ts -src/models/TimeRange.ts -src/models/Timestamp.ts -src/models/Token.ts -src/models/TradeType.ts -src/models/Type.ts -src/models/TypedData.ts -src/models/TypedDataDomain.ts -src/models/UnclaimedReward.ts -src/models/UpdateOrderRequest.ts -src/models/UserBorrowsResponse.ts -src/models/UserDepositsResponse.ts -src/models/UserError.ts -src/models/UserStake.ts -src/models/UserStakesResponse.ts -src/models/V3PoolInRoute.ts -src/models/Vault.ts -src/models/VaultEvent.ts -src/models/VaultEventExtension.ts -src/models/VaultEventItem.ts -src/models/VaultEventsResponse.ts -src/models/VaultsResponse.ts -src/models/WalletBalance.ts -src/models/index.ts -src/runtime.ts tsconfig.esm.json tsconfig.json diff --git a/src/service/README.md b/src/service/README.md index 144d3b4..6b8dd42 100644 --- a/src/service/README.md +++ b/src/service/README.md @@ -1,6 +1,6 @@ -## zarban@0.1.8 +## zarban@0.2.0 -This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: +This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: Environment * Node.js @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install zarban@0.1.8 --save +npm install zarban@0.2.0 --save ``` _unPublished (not recommended):_ diff --git a/src/service/api.ts b/src/service/api.ts new file mode 100644 index 0000000..94214ab --- /dev/null +++ b/src/service/api.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * as AccountsApi from './api/accounts-api'; +export * as AddressesApi from './api/addresses-api'; +export * as BorrowsApi from './api/borrows-api'; +export * as CollectorApi from './api/collector-api'; +export * as DepositsApi from './api/deposits-api'; +export * as IlksApi from './api/ilks-api'; +export * as LendingPoolApi from './api/lending-pool-api'; +export * as LogsApi from './api/logs-api'; +export * as OrdersApi from './api/orders-api'; +export * as PermitApi from './api/permit-api'; +export * as PointsApi from './api/points-api'; +export * as PricesApi from './api/prices-api'; +export * as StableCoinSystemApi from './api/stable-coin-system-api'; +export * as StakingApi from './api/staking-api'; +export * as SwapApi from './api/swap-api'; +export * as VaultsApi from './api/vaults-api'; +export * as WebsocketApi from './api/websocket-api'; + diff --git a/src/service/api/accounts-api.ts b/src/service/api/accounts-api.ts new file mode 100644 index 0000000..f045929 --- /dev/null +++ b/src/service/api/accounts-api.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Account } from '../model'; +/** + * AccountsApi - axios parameter creator + * @export + */ +export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress: async (address: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'address' is not null or undefined + assertParamExists('getAccountByAddress', 'address', address) + const localVarPath = `/v2/accounts/{address}` + .replace(`{${"address"}}`, encodeURIComponent(String(address))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AccountsApi - functional programming interface + * @export + */ +export const AccountsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration) + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAccountByAddress(address: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountByAddress(address, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountByAddress']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * AccountsApi - factory interface + * @export + */ +export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AccountsApiFp(configuration) + return { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAccountByAddress(address, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AccountsApi - interface + * @export + * @interface AccountsApi + */ +export interface AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApiInterface + */ + getAccountByAddress(address: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * AccountsApi - object-oriented interface + * @export + * @class AccountsApi + * @extends {BaseAPI} + */ +export class AccountsApi extends BaseAPI implements AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApi + */ + public getAccountByAddress(address: string, options?: RawAxiosRequestConfig) { + return AccountsApiFp(this.configuration).getAccountByAddress(address, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/addresses-api.ts b/src/service/api/addresses-api.ts new file mode 100644 index 0000000..69512aa --- /dev/null +++ b/src/service/api/addresses-api.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { AddressResponse } from '../model'; +/** + * AddressesApi - axios parameter creator + * @export + */ +export const AddressesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses: async (format?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/addresses`; + // 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; + + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AddressesApi - functional programming interface + * @export + */ +export const AddressesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration) + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllAddresses(format?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAddresses(format, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AddressesApi.getAllAddresses']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * AddressesApi - factory interface + * @export + */ +export const AddressesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AddressesApiFp(configuration) + return { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllAddresses(format, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AddressesApi - interface + * @export + * @interface AddressesApi + */ +export interface AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApiInterface + */ + getAllAddresses(format?: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * AddressesApi - object-oriented interface + * @export + * @class AddressesApi + * @extends {BaseAPI} + */ +export class AddressesApi extends BaseAPI implements AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApi + */ + public getAllAddresses(format?: string, options?: RawAxiosRequestConfig) { + return AddressesApiFp(this.configuration).getAllAddresses(format, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/borrows-api.ts b/src/service/api/borrows-api.ts new file mode 100644 index 0000000..9ab62a3 --- /dev/null +++ b/src/service/api/borrows-api.ts @@ -0,0 +1,180 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { UserBorrowsResponse } from '../model'; +/** + * BorrowsApi - axios parameter creator + * @export + */ +export const BorrowsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: async (user?: string, reserve?: string, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/lendingpool/borrows`; + // 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; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * BorrowsApi - functional programming interface + * @export + */ +export const BorrowsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = BorrowsApiAxiosParamCreator(configuration) + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['BorrowsApi.getUserBorrows']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * BorrowsApi - factory interface + * @export + */ +export const BorrowsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = BorrowsApiFp(configuration) + return { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * BorrowsApi - interface + * @export + * @interface BorrowsApi + */ +export interface BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * BorrowsApi - object-oriented interface + * @export + * @class BorrowsApi + * @extends {BaseAPI} + */ +export class BorrowsApi extends BaseAPI implements BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApi + */ + public getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return BorrowsApiFp(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/collector-api.ts b/src/service/api/collector-api.ts new file mode 100644 index 0000000..dfa7edf --- /dev/null +++ b/src/service/api/collector-api.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Stats } from '../model'; +/** + * CollectorApi - axios parameter creator + * @export + */ +export const CollectorApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/stats`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * CollectorApi - functional programming interface + * @export + */ +export const CollectorApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = CollectorApiAxiosParamCreator(configuration) + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CollectorApi.getCollectorData']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * CollectorApi - factory interface + * @export + */ +export const CollectorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CollectorApiFp(configuration) + return { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * CollectorApi - interface + * @export + * @interface CollectorApi + */ +export interface CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * CollectorApi - object-oriented interface + * @export + * @class CollectorApi + * @extends {BaseAPI} + */ +export class CollectorApi extends BaseAPI implements CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApi + */ + public getCollectorData(options?: RawAxiosRequestConfig) { + return CollectorApiFp(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/deposits-api.ts b/src/service/api/deposits-api.ts new file mode 100644 index 0000000..e9428bb --- /dev/null +++ b/src/service/api/deposits-api.ts @@ -0,0 +1,180 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { UserDepositsResponse } from '../model'; +/** + * DepositsApi - axios parameter creator + * @export + */ +export const DepositsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: async (user?: string, reserve?: string, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/lendingpool/deposits`; + // 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; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DepositsApi - functional programming interface + * @export + */ +export const DepositsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DepositsApiAxiosParamCreator(configuration) + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DepositsApi.getUserDeposits']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * DepositsApi - factory interface + * @export + */ +export const DepositsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DepositsApiFp(configuration) + return { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * DepositsApi - interface + * @export + * @interface DepositsApi + */ +export interface DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * DepositsApi - object-oriented interface + * @export + * @class DepositsApi + * @extends {BaseAPI} + */ +export class DepositsApi extends BaseAPI implements DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApi + */ + public getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return DepositsApiFp(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/ilks-api.ts b/src/service/api/ilks-api.ts new file mode 100644 index 0000000..bb28533 --- /dev/null +++ b/src/service/api/ilks-api.ts @@ -0,0 +1,225 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Ilk } from '../model'; +// @ts-ignore +import type { IlksResponse } from '../model'; +/** + * IlksApi - axios parameter creator + * @export + */ +export const IlksApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/ilks`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getIlkByName', 'name', name) + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * IlksApi - functional programming interface + * @export + */ +export const IlksApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = IlksApiAxiosParamCreator(configuration) + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['IlksApi.getAllIlks']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['IlksApi.getIlkByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * IlksApi - factory interface + * @export + */ +export const IlksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = IlksApiFp(configuration) + return { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * IlksApi - interface + * @export + * @interface IlksApi + */ +export interface IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * IlksApi - object-oriented interface + * @export + * @class IlksApi + * @extends {BaseAPI} + */ +export class IlksApi extends BaseAPI implements IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + public getAllIlks(options?: RawAxiosRequestConfig) { + return IlksApiFp(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApi + */ + public getIlkByName(name: string, options?: RawAxiosRequestConfig) { + return IlksApiFp(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/lending-pool-api.ts b/src/service/api/lending-pool-api.ts new file mode 100644 index 0000000..a069c76 --- /dev/null +++ b/src/service/api/lending-pool-api.ts @@ -0,0 +1,798 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { FormattedReserveData } from '../model'; +// @ts-ignore +import type { LendingpoolBorrowTxRequest } from '../model'; +// @ts-ignore +import type { LendingpoolBorrowTxResponse } from '../model'; +// @ts-ignore +import type { LendingpoolDepositTxRequest } from '../model'; +// @ts-ignore +import type { LendingpoolDepositTxResponse } from '../model'; +// @ts-ignore +import type { LendingpoolRepayTxRequest } from '../model'; +// @ts-ignore +import type { LendingpoolRepayTxResponse } from '../model'; +// @ts-ignore +import type { LendingpoolUseAssetAsCollateralTxRequest } from '../model'; +// @ts-ignore +import type { LendingpoolUseAssetAsCollateralTxResponse } from '../model'; +// @ts-ignore +import type { LendingpoolWithdrawTxRequest } from '../model'; +// @ts-ignore +import type { LendingpoolWithdrawTxResponse } from '../model'; +// @ts-ignore +import type { UserBorrowsResponse } from '../model'; +// @ts-ignore +import type { UserDepositsResponse } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * LendingPoolApi - axios parameter creator + * @export + */ +export const LendingPoolApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow: async (lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'lendingpoolBorrowTxRequest' is not null or undefined + assertParamExists('createLendingPoolBorrow', 'lendingpoolBorrowTxRequest', lendingpoolBorrowTxRequest) + const localVarPath = `/v2/lendingpool/tx/borrow`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolBorrowTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit: async (lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'lendingpoolDepositTxRequest' is not null or undefined + assertParamExists('createLendingPoolDeposit', 'lendingpoolDepositTxRequest', lendingpoolDepositTxRequest) + const localVarPath = `/v2/lendingpool/tx/deposit`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolDepositTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay: async (lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'lendingpoolRepayTxRequest' is not null or undefined + assertParamExists('createLendingPoolRepay', 'lendingpoolRepayTxRequest', lendingpoolRepayTxRequest) + const localVarPath = `/v2/lendingpool/tx/repay`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolRepayTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw: async (lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'lendingpoolWithdrawTxRequest' is not null or undefined + assertParamExists('createLendingPoolWithdraw', 'lendingpoolWithdrawTxRequest', lendingpoolWithdrawTxRequest) + const localVarPath = `/v2/lendingpool/tx/withdraw`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolWithdrawTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset: async (asset?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/lendingpool/reserves`; + // 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; + + if (asset !== undefined) { + localVarQueryParameter['asset'] = asset; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows: async (user?: string, reserve?: string, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/lendingpool/borrows`; + // 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; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits: async (user?: string, reserve?: string, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/lendingpool/deposits`; + // 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; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (reserve !== undefined) { + localVarQueryParameter['reserve'] = reserve; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral: async (lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'lendingpoolUseAssetAsCollateralTxRequest' is not null or undefined + assertParamExists('setLendingPoolAssetCollateral', 'lendingpoolUseAssetAsCollateralTxRequest', lendingpoolUseAssetAsCollateralTxRequest) + const localVarPath = `/v2/lendingpool/tx/useassetascollateral`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(lendingpoolUseAssetAsCollateralTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * LendingPoolApi - functional programming interface + * @export + */ +export const LendingPoolApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LendingPoolApiAxiosParamCreator(configuration) + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.createLendingPoolBorrow']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createLendingPoolDeposit(lendingpoolDepositTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.createLendingPoolDeposit']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createLendingPoolRepay(lendingpoolRepayTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.createLendingPoolRepay']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.createLendingPoolWithdraw']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fetchReserveDataByAsset(asset, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.fetchReserveDataByAsset']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBorrows(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.getUserBorrows']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDeposits(user, reserve, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.getUserDeposits']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LendingPoolApi.setLendingPoolAssetCollateral']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * LendingPoolApi - factory interface + * @export + */ +export const LendingPoolApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LendingPoolApiFp(configuration) + return { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fetchReserveDataByAsset(asset, options).then((request) => request(axios, basePath)); + }, + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LendingPoolApi - interface + * @export + * @interface LendingPoolApi + */ +export interface LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * LendingPoolApi - object-oriented interface + * @export + * @class LendingPoolApi + * @extends {BaseAPI} + */ +export class LendingPoolApi extends BaseAPI implements LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public createLendingPoolBorrow(lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).createLendingPoolBorrow(lendingpoolBorrowTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public createLendingPoolDeposit(lendingpoolDepositTxRequest: LendingpoolDepositTxRequest, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).createLendingPoolDeposit(lendingpoolDepositTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public createLendingPoolRepay(lendingpoolRepayTxRequest: LendingpoolRepayTxRequest, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).createLendingPoolRepay(lendingpoolRepayTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public createLendingPoolWithdraw(lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).createLendingPoolWithdraw(lendingpoolWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public fetchReserveDataByAsset(asset?: string, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).fetchReserveDataByAsset(asset, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public getUserBorrows(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).getUserBorrows(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public getUserDeposits(user?: string, reserve?: string, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).getUserDeposits(user, reserve, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApi + */ + public setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest, options?: RawAxiosRequestConfig) { + return LendingPoolApiFp(this.configuration).setLendingPoolAssetCollateral(lendingpoolUseAssetAsCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/logs-api.ts b/src/service/api/logs-api.ts new file mode 100644 index 0000000..15f5f43 --- /dev/null +++ b/src/service/api/logs-api.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { EventDetailsResponse } from '../model'; +/** + * LogsApi - axios parameter creator + * @export + */ +export const LogsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash: async (txHash: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'txHash' is not null or undefined + assertParamExists('getLogsByTransactionHash', 'txHash', txHash) + const localVarPath = `/v2/logs/{txHash}` + .replace(`{${"txHash"}}`, encodeURIComponent(String(txHash))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * LogsApi - functional programming interface + * @export + */ +export const LogsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LogsApiAxiosParamCreator(configuration) + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLogsByTransactionHash(txHash, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LogsApi.getLogsByTransactionHash']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * LogsApi - factory interface + * @export + */ +export const LogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LogsApiFp(configuration) + return { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getLogsByTransactionHash(txHash, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LogsApi - interface + * @export + * @interface LogsApi + */ +export interface LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApiInterface + */ + getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * LogsApi - object-oriented interface + * @export + * @class LogsApi + * @extends {BaseAPI} + */ +export class LogsApi extends BaseAPI implements LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApi + */ + public getLogsByTransactionHash(txHash: string, options?: RawAxiosRequestConfig) { + return LogsApiFp(this.configuration).getLogsByTransactionHash(txHash, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/orders-api.ts b/src/service/api/orders-api.ts new file mode 100644 index 0000000..b69affd --- /dev/null +++ b/src/service/api/orders-api.ts @@ -0,0 +1,345 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { OrderResponse } from '../model'; +// @ts-ignore +import type { TimeRange } from '../model'; +// @ts-ignore +import type { UpdateOrderRequest } from '../model'; +/** + * OrdersApi - axios parameter creator + * @export + */ +export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders: async (type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/orders`; + // 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; + + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (offerer !== undefined) { + localVarQueryParameter['offerer'] = offerer; + } + + if (filler !== undefined) { + localVarQueryParameter['filler'] = filler; + } + + if (decayStartTime !== undefined) { + for (const [key, value] of Object.entries(decayStartTime)) { + localVarQueryParameter[key] = value; + } + } + + if (decayEndTime !== undefined) { + for (const [key, value] of Object.entries(decayEndTime)) { + localVarQueryParameter[key] = value; + } + } + + if (deadline !== undefined) { + for (const [key, value] of Object.entries(deadline)) { + localVarQueryParameter[key] = value; + } + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder: async (updateOrderRequest: UpdateOrderRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'updateOrderRequest' is not null or undefined + assertParamExists('syncOrder', 'updateOrderRequest', updateOrderRequest) + const localVarPath = `/v2/orders/sync`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updateOrderRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * OrdersApi - functional programming interface + * @export + */ +export const OrdersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration) + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['OrdersApi.getUnfilledOrders']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.syncOrder(updateOrderRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['OrdersApi.syncOrder']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * OrdersApi - factory interface + * @export + */ +export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = OrdersApiFp(configuration) + return { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.syncOrder(updateOrderRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * OrdersApi - interface + * @export + * @interface OrdersApi + */ +export interface OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * OrdersApi - object-oriented interface + * @export + * @class OrdersApi + * @extends {BaseAPI} + */ +export class OrdersApi extends BaseAPI implements OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {GetUnfilledOrdersTypeEnum} [type] Type of the order + * @param {string} [hash] order hash + * @param {GetUnfilledOrdersStatusEnum} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + public getUnfilledOrders(type?: GetUnfilledOrdersTypeEnum, hash?: string, status?: GetUnfilledOrdersStatusEnum, offerer?: string, filler?: string, decayStartTime?: TimeRange, decayEndTime?: TimeRange, deadline?: TimeRange, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return OrdersApiFp(this.configuration).getUnfilledOrders(type, hash, status, offerer, filler, decayStartTime, decayEndTime, deadline, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + public syncOrder(updateOrderRequest: UpdateOrderRequest, options?: RawAxiosRequestConfig) { + return OrdersApiFp(this.configuration).syncOrder(updateOrderRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetUnfilledOrdersTypeEnum = { + LIMIT: 'limit', + DUTCH: 'dutch' +} as const; +export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; +/** + * @export + */ +export const GetUnfilledOrdersStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +} as const; +export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; diff --git a/src/service/api/permit-api.ts b/src/service/api/permit-api.ts new file mode 100644 index 0000000..f324494 --- /dev/null +++ b/src/service/api/permit-api.ts @@ -0,0 +1,166 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { PermitSingle } from '../model'; +/** + * PermitApi - axios parameter creator + * @export + */ +export const PermitApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit: async (token: string, user: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'token' is not null or undefined + assertParamExists('getSingleTokenPermit', 'token', token) + // verify required parameter 'user' is not null or undefined + assertParamExists('getSingleTokenPermit', 'user', user) + const localVarPath = `/v2/permit/single`; + // 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; + + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PermitApi - functional programming interface + * @export + */ +export const PermitApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PermitApiAxiosParamCreator(configuration) + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSingleTokenPermit(token, user, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PermitApi.getSingleTokenPermit']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * PermitApi - factory interface + * @export + */ +export const PermitApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PermitApiFp(configuration) + return { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSingleTokenPermit(token, user, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PermitApi - interface + * @export + * @interface PermitApi + */ +export interface PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApiInterface + */ + getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PermitApi - object-oriented interface + * @export + * @class PermitApi + * @extends {BaseAPI} + */ +export class PermitApi extends BaseAPI implements PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApi + */ + public getSingleTokenPermit(token: string, user: string, options?: RawAxiosRequestConfig) { + return PermitApiFp(this.configuration).getSingleTokenPermit(token, user, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/points-api.ts b/src/service/api/points-api.ts new file mode 100644 index 0000000..a064ced --- /dev/null +++ b/src/service/api/points-api.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Scoreboard } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export const PointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/points/scoreboard`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PointsApi - functional programming interface + * @export + */ +export const PointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PointsApiAxiosParamCreator(configuration) + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getScoreboard(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getScoreboard(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PointsApi.getScoreboard']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * PointsApi - factory interface + * @export + */ +export const PointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PointsApiFp(configuration) + return { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getScoreboard(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getScoreboard(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + public getScoreboard(options?: RawAxiosRequestConfig) { + return PointsApiFp(this.configuration).getScoreboard(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/prices-api.ts b/src/service/api/prices-api.ts new file mode 100644 index 0000000..bd4e6cd --- /dev/null +++ b/src/service/api/prices-api.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { PriceListResponse } from '../model'; +/** + * PricesApi - axios parameter creator + * @export + */ +export const PricesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices: async (symbol?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/prices`; + // 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; + + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PricesApi - functional programming interface + * @export + */ +export const PricesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PricesApiAxiosParamCreator(configuration) + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listPrices(symbol?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listPrices(symbol, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PricesApi.listPrices']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * PricesApi - factory interface + * @export + */ +export const PricesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PricesApiFp(configuration) + return { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.listPrices(symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PricesApi - interface + * @export + * @interface PricesApi + */ +export interface PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApiInterface + */ + listPrices(symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PricesApi - object-oriented interface + * @export + * @class PricesApi + * @extends {BaseAPI} + */ +export class PricesApi extends BaseAPI implements PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApi + */ + public listPrices(symbol?: string, options?: RawAxiosRequestConfig) { + return PricesApiFp(this.configuration).listPrices(symbol, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/stable-coin-system-api.ts b/src/service/api/stable-coin-system-api.ts new file mode 100644 index 0000000..4f8a04e --- /dev/null +++ b/src/service/api/stable-coin-system-api.ts @@ -0,0 +1,1476 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { ChainActivity } from '../model'; +// @ts-ignore +import type { Ilk } from '../model'; +// @ts-ignore +import type { IlksResponse } from '../model'; +// @ts-ignore +import type { StablecoinSystemBarkTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemCreateVaultTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemDepositCollateralTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemGemexitTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemMintZarTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemRedoTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemRepayZarTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemTakeTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemWithdrawCollateralTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemZarexitTxRequest } from '../model'; +// @ts-ignore +import type { StablecoinSystemZarjoinTxRequest } from '../model'; +// @ts-ignore +import type { Stats } from '../model'; +// @ts-ignore +import type { Vault } from '../model'; +// @ts-ignore +import type { VaultEventsResponse } from '../model'; +// @ts-ignore +import type { VaultsResponse } from '../model'; +/** + * StableCoinSystemApi - axios parameter creator + * @export + */ +export const StableCoinSystemApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction: async (stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemZarjoinTxRequest' is not null or undefined + assertParamExists('approveAndJoinZarTransaction', 'stablecoinSystemZarjoinTxRequest', stablecoinSystemZarjoinTxRequest) + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarjoin`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemZarjoinTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault: async (stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemCreateVaultTxRequest' is not null or undefined + assertParamExists('createStableCoinVault', 'stablecoinSystemCreateVaultTxRequest', stablecoinSystemCreateVaultTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/createvault`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemCreateVaultTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral: async (stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemDepositCollateralTxRequest' is not null or undefined + assertParamExists('depositStableCoinCollateral', 'stablecoinSystemDepositCollateralTxRequest', stablecoinSystemDepositCollateralTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/depositcollateral`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemDepositCollateralTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction: async (stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemGemexitTxRequest' is not null or undefined + assertParamExists('exitGemTransaction', 'stablecoinSystemGemexitTxRequest', stablecoinSystemGemexitTxRequest) + const localVarPath = `/v2/stablecoinsystem/auctions/tx/gemexit`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemGemexitTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction: async (stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemZarexitTxRequest' is not null or undefined + assertParamExists('exitZarTransaction', 'stablecoinSystemZarexitTxRequest', stablecoinSystemZarexitTxRequest) + const localVarPath = `/v2/stablecoinsystem/auctions/tx/zarexit`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemZarexitTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/ilks`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/stats`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'name' is not null or undefined + assertParamExists('getIlkByName', 'name', name) + const localVarPath = `/v2/ilks/{name}` + .replace(`{${"name"}}`, encodeURIComponent(String(name))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: async (id: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultById', 'id', id) + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: async (id: number, type?: GetVaultEventsByIdTypeEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultEventsById', 'id', id) + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: async (owner?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/vaults`; + // 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; + + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction: async (stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemBarkTxRequest' is not null or undefined + assertParamExists('liquidateVaultTransaction', 'stablecoinSystemBarkTxRequest', stablecoinSystemBarkTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/bark`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemBarkTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction: async (stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemMintZarTxRequest' is not null or undefined + assertParamExists('mintZarTransaction', 'stablecoinSystemMintZarTxRequest', stablecoinSystemMintZarTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/mintzar`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemMintZarTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction: async (stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemRepayZarTxRequest' is not null or undefined + assertParamExists('repayZarTransaction', 'stablecoinSystemRepayZarTxRequest', stablecoinSystemRepayZarTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/repayzar`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemRepayZarTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction: async (stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemRedoTxRequest' is not null or undefined + assertParamExists('resetAuctionTransaction', 'stablecoinSystemRedoTxRequest', stablecoinSystemRedoTxRequest) + const localVarPath = `/v2/stablecoinsystem/auctions/tx/redo`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemRedoTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction: async (stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemTakeTxRequest' is not null or undefined + assertParamExists('takeAuctionTransaction', 'stablecoinSystemTakeTxRequest', stablecoinSystemTakeTxRequest) + const localVarPath = `/v2/stablecoinsystem/auctions/tx/take`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemTakeTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction: async (stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stablecoinSystemWithdrawCollateralTxRequest' is not null or undefined + assertParamExists('withdrawCollateralTransaction', 'stablecoinSystemWithdrawCollateralTxRequest', stablecoinSystemWithdrawCollateralTxRequest) + const localVarPath = `/v2/stablecoinsystem/tx/withdrawcollateral`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stablecoinSystemWithdrawCollateralTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * StableCoinSystemApi - functional programming interface + * @export + */ +export const StableCoinSystemApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StableCoinSystemApiAxiosParamCreator(configuration) + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.approveAndJoinZarTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.createStableCoinVault']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.depositStableCoinCollateral']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.exitGemTransaction(stablecoinSystemGemexitTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.exitGemTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.exitZarTransaction(stablecoinSystemZarexitTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.exitZarTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllIlks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllIlks(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getAllIlks']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCollectorData(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCollectorData(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getCollectorData']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getIlkByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getIlkByName(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getIlkByName']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getVaultById']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getVaultEventsById']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.getVaultsByOwner']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.liquidateVaultTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.mintZarTransaction(stablecoinSystemMintZarTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.mintZarTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.repayZarTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.resetAuctionTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.takeAuctionTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StableCoinSystemApi.withdrawCollateralTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * StableCoinSystemApi - factory interface + * @export + */ +export const StableCoinSystemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StableCoinSystemApiFp(configuration) + return { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllIlks(options).then((request) => request(axios, basePath)); + }, + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getCollectorData(options).then((request) => request(axios, basePath)); + }, + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getIlkByName(name, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * StableCoinSystemApi - interface + * @export + * @interface StableCoinSystemApi + */ +export interface StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getAllIlks(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getCollectorData(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getIlkByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * StableCoinSystemApi - object-oriented interface + * @export + * @class StableCoinSystemApi + * @extends {BaseAPI} + */ +export class StableCoinSystemApi extends BaseAPI implements StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).approveAndJoinZarTransaction(stablecoinSystemZarjoinTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public createStableCoinVault(stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).createStableCoinVault(stablecoinSystemCreateVaultTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).depositStableCoinCollateral(stablecoinSystemDepositCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public exitGemTransaction(stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).exitGemTransaction(stablecoinSystemGemexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public exitZarTransaction(stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).exitZarTransaction(stablecoinSystemZarexitTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getAllIlks(options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getAllIlks(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getCollectorData(options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getCollectorData(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getIlkByName(name: string, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getIlkByName(name, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getVaultById(id: number, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public liquidateVaultTransaction(stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).liquidateVaultTransaction(stablecoinSystemBarkTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public mintZarTransaction(stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).mintZarTransaction(stablecoinSystemMintZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public repayZarTransaction(stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).repayZarTransaction(stablecoinSystemRepayZarTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public resetAuctionTransaction(stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).resetAuctionTransaction(stablecoinSystemRedoTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public takeAuctionTransaction(stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).takeAuctionTransaction(stablecoinSystemTakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApi + */ + public withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest, options?: RawAxiosRequestConfig) { + return StableCoinSystemApiFp(this.configuration).withdrawCollateralTransaction(stablecoinSystemWithdrawCollateralTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +} as const; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; diff --git a/src/service/api/staking-api.ts b/src/service/api/staking-api.ts new file mode 100644 index 0000000..1843dd0 --- /dev/null +++ b/src/service/api/staking-api.ts @@ -0,0 +1,519 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { StakePlansResponse } from '../model'; +// @ts-ignore +import type { StakingCollectRewardTxRequest } from '../model'; +// @ts-ignore +import type { StakingCollectRewardTxResponse } from '../model'; +// @ts-ignore +import type { StakingStakeTxRequest } from '../model'; +// @ts-ignore +import type { StakingStakeTxResponse } from '../model'; +// @ts-ignore +import type { StakingWithdrawTxRequest } from '../model'; +// @ts-ignore +import type { StakingWithdrawTxResponse } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +// @ts-ignore +import type { UserStakesResponse } from '../model'; +/** + * StakingApi - axios parameter creator + * @export + */ +export const StakingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward: async (stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stakingCollectRewardTxRequest' is not null or undefined + assertParamExists('collectStakingReward', 'stakingCollectRewardTxRequest', stakingCollectRewardTxRequest) + const localVarPath = `/v2/staking/tx/collectreward`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stakingCollectRewardTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/staking/plans`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats: async (user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/staking/stats`; + // 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; + + if (user !== undefined) { + localVarQueryParameter['user'] = user; + } + + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + + if (active !== undefined) { + localVarQueryParameter['active'] = active; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract: async (stakingStakeTxRequest: StakingStakeTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stakingStakeTxRequest' is not null or undefined + assertParamExists('stakeToStakingContract', 'stakingStakeTxRequest', stakingStakeTxRequest) + const localVarPath = `/v2/staking/tx/stake`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stakingStakeTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset: async (stakingWithdrawTxRequest: StakingWithdrawTxRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'stakingWithdrawTxRequest' is not null or undefined + assertParamExists('withdrawStakedAsset', 'stakingWithdrawTxRequest', stakingWithdrawTxRequest) + const localVarPath = `/v2/staking/tx/withdraw`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(stakingWithdrawTxRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * StakingApi - functional programming interface + * @export + */ +export const StakingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StakingApiAxiosParamCreator(configuration) + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.collectStakingReward(stakingCollectRewardTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StakingApi.collectStakingReward']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getStakingPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStakingPlans(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StakingApi.getStakingPlans']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserStakingStats(user, address, active, cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StakingApi.getUserStakingStats']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.stakeToStakingContract(stakingStakeTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StakingApi.stakeToStakingContract']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawStakedAsset(stakingWithdrawTxRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['StakingApi.withdrawStakedAsset']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * StakingApi - factory interface + * @export + */ +export const StakingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StakingApiFp(configuration) + return { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getStakingPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(axios, basePath)); + }, + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * StakingApi - interface + * @export + * @interface StakingApi + */ +export interface StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getStakingPlans(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * StakingApi - object-oriented interface + * @export + * @class StakingApi + * @extends {BaseAPI} + */ +export class StakingApi extends BaseAPI implements StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public collectStakingReward(stakingCollectRewardTxRequest: StakingCollectRewardTxRequest, options?: RawAxiosRequestConfig) { + return StakingApiFp(this.configuration).collectStakingReward(stakingCollectRewardTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getStakingPlans(options?: RawAxiosRequestConfig) { + return StakingApiFp(this.configuration).getStakingPlans(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public getUserStakingStats(user?: string, address?: string, active?: boolean, cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return StakingApiFp(this.configuration).getUserStakingStats(user, address, active, cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public stakeToStakingContract(stakingStakeTxRequest: StakingStakeTxRequest, options?: RawAxiosRequestConfig) { + return StakingApiFp(this.configuration).stakeToStakingContract(stakingStakeTxRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApi + */ + public withdrawStakedAsset(stakingWithdrawTxRequest: StakingWithdrawTxRequest, options?: RawAxiosRequestConfig) { + return StakingApiFp(this.configuration).withdrawStakedAsset(stakingWithdrawTxRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/swap-api.ts b/src/service/api/swap-api.ts new file mode 100644 index 0000000..32b28ec --- /dev/null +++ b/src/service/api/swap-api.ts @@ -0,0 +1,156 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { QuoteRequest } from '../model'; +// @ts-ignore +import type { QuoteResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export const SwapApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote: async (quoteRequest: QuoteRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'quoteRequest' is not null or undefined + assertParamExists('getSwapQuote', 'quoteRequest', quoteRequest) + const localVarPath = `/v2/swap/quote`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(quoteRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * SwapApi - functional programming interface + * @export + */ +export const SwapApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = SwapApiAxiosParamCreator(configuration) + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSwapQuote(quoteRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SwapApi.getSwapQuote']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * SwapApi - factory interface + * @export + */ +export const SwapApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SwapApiFp(configuration) + return { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSwapQuote(quoteRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + public getSwapQuote(quoteRequest: QuoteRequest, options?: RawAxiosRequestConfig) { + return SwapApiFp(this.configuration).getSwapQuote(quoteRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/api/vaults-api.ts b/src/service/api/vaults-api.ts new file mode 100644 index 0000000..33946c4 --- /dev/null +++ b/src/service/api/vaults-api.ts @@ -0,0 +1,334 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Vault } from '../model'; +// @ts-ignore +import type { VaultEventsResponse } from '../model'; +// @ts-ignore +import type { VaultsResponse } from '../model'; +/** + * VaultsApi - axios parameter creator + * @export + */ +export const VaultsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById: async (id: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultById', 'id', id) + const localVarPath = `/v2/vaults/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById: async (id: number, type?: GetVaultEventsByIdTypeEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getVaultEventsById', 'id', id) + const localVarPath = `/v2/vaults/{id}/events` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner: async (owner?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/vaults`; + // 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; + + if (owner !== undefined) { + localVarQueryParameter['owner'] = owner; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * VaultsApi - functional programming interface + * @export + */ +export const VaultsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultById(id, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['VaultsApi.getVaultById']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultEventsById(id, type, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['VaultsApi.getVaultEventsById']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsByOwner(owner, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['VaultsApi.getVaultsByOwner']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * VaultsApi - factory interface + * @export + */ +export const VaultsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = VaultsApiFp(configuration) + return { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultById(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultEventsById(id, type, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getVaultsByOwner(owner, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * VaultsApi - interface + * @export + * @interface VaultsApi + */ +export interface VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultById(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * VaultsApi - object-oriented interface + * @export + * @class VaultsApi + * @extends {BaseAPI} + */ +export class VaultsApi extends BaseAPI implements VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + public getVaultById(id: number, options?: RawAxiosRequestConfig) { + return VaultsApiFp(this.configuration).getVaultById(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {GetVaultEventsByIdTypeEnum} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + public getVaultEventsById(id: number, type?: GetVaultEventsByIdTypeEnum, options?: RawAxiosRequestConfig) { + return VaultsApiFp(this.configuration).getVaultEventsById(id, type, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApi + */ + public getVaultsByOwner(owner?: string, options?: RawAxiosRequestConfig) { + return VaultsApiFp(this.configuration).getVaultsByOwner(owner, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +} as const; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; diff --git a/src/service/api/websocket-api.ts b/src/service/api/websocket-api.ts new file mode 100644 index 0000000..defd07e --- /dev/null +++ b/src/service/api/websocket-api.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +/** + * WebsocketApi - axios parameter creator + * @export + */ +export const WebsocketApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v2/ws`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * WebsocketApi - functional programming interface + * @export + */ +export const WebsocketApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = WebsocketApiAxiosParamCreator(configuration) + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUnfilledOrdersWebsocket(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['WebsocketApi.getUnfilledOrdersWebsocket']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * WebsocketApi - factory interface + * @export + */ +export const WebsocketApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = WebsocketApiFp(configuration) + return { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUnfilledOrdersWebsocket(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * WebsocketApi - interface + * @export + * @interface WebsocketApi + */ +export interface WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApiInterface + */ + getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * WebsocketApi - object-oriented interface + * @export + * @class WebsocketApi + * @extends {BaseAPI} + */ +export class WebsocketApi extends BaseAPI implements WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApi + */ + public getUnfilledOrdersWebsocket(options?: RawAxiosRequestConfig) { + return WebsocketApiFp(this.configuration).getUnfilledOrdersWebsocket(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/service/base.ts b/src/service/base.ts new file mode 100644 index 0000000..34a2ceb --- /dev/null +++ b/src/service/base.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/src/service/common.ts b/src/service/common.ts new file mode 100644 index 0000000..98b371d --- /dev/null +++ b/src/service/common.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; +import { URL, URLSearchParams } from 'url'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/src/service/configuration.ts b/src/service/configuration.ts new file mode 100644 index 0000000..4a56c77 --- /dev/null +++ b/src/service/configuration.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/src/service/git_push.sh b/src/service/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/src/service/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/src/service/index.ts b/src/service/index.ts new file mode 100644 index 0000000..728aa69 --- /dev/null +++ b/src/service/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; +export * from "./model"; diff --git a/src/service/model/account-lendingpool-summary.ts b/src/service/model/account-lendingpool-summary.ts new file mode 100644 index 0000000..146c0a3 --- /dev/null +++ b/src/service/model/account-lendingpool-summary.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AccountLendingpoolSummary + */ +export interface AccountLendingpoolSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDebt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalDeposits': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'totalCollateral': { [key: string]: string | undefined; }; + /** + * Health factor in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'healthFactor': string; + /** + * Net annual percentage yield in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'netApy': string; + /** + * Total supply rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalSupplyApy': string; + /** + * Total borrow rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'totalBorrowApy': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + 'availableToBorrow': { [key: string]: string | undefined; }; + /** + * Borrow power used in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'borrowPowerUsed': string; + /** + * Current liquidation threshold in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'currentLiquidationThreshold': string; + /** + * Loan to value in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + 'loanToValue': string; +} + diff --git a/src/service/model/account-stablecoin-system-summary.ts b/src/service/model/account-stablecoin-system-summary.ts new file mode 100644 index 0000000..c5604de --- /dev/null +++ b/src/service/model/account-stablecoin-system-summary.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AccountStablecoinSystemSummary + */ +export interface AccountStablecoinSystemSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDebt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + 'totalDeposits': { [key: string]: string | undefined; }; + /** + * Net annual percentage yield in stablecoin system + * @type {string} + * @memberof AccountStablecoinSystemSummary + */ + 'netApy': string; +} + diff --git a/src/service/model/account-staking-summary.ts b/src/service/model/account-staking-summary.ts new file mode 100644 index 0000000..473c977 --- /dev/null +++ b/src/service/model/account-staking-summary.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AccountStakingSummary + */ +export interface AccountStakingSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'totalStake': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + 'unclaimedReward': { [key: string]: string | undefined; }; + /** + * Net annual percentage yield in staking contract + * @type {string} + * @memberof AccountStakingSummary + */ + 'netApy': string; +} + diff --git a/src/service/model/account.ts b/src/service/model/account.ts new file mode 100644 index 0000000..42bcf0e --- /dev/null +++ b/src/service/model/account.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { AccountLendingpoolSummary } from './account-lendingpool-summary'; +// May contain unused imports in some cases +// @ts-ignore +import type { AccountStablecoinSystemSummary } from './account-stablecoin-system-summary'; +// May contain unused imports in some cases +// @ts-ignore +import type { AccountStakingSummary } from './account-staking-summary'; +// May contain unused imports in some cases +// @ts-ignore +import type { WalletBalance } from './wallet-balance'; + +/** + * + * @export + * @interface Account + */ +export interface Account { + /** + * The number of points the account has. + * @type {number} + * @memberof Account + */ + 'points': number; + /** + * Ethereum address of the account + * @type {string} + * @memberof Account + */ + 'address': string; + /** + * + * @type {WalletBalance} + * @memberof Account + */ + 'walletBalance': WalletBalance; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'netWorth': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDebt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + 'totalDeposits': { [key: string]: string | undefined; }; + /** + * + * @type {AccountLendingpoolSummary} + * @memberof Account + */ + 'lendingpoolSummary': AccountLendingpoolSummary; + /** + * + * @type {AccountStablecoinSystemSummary} + * @memberof Account + */ + 'stabelcoinSystemSummary': AccountStablecoinSystemSummary; + /** + * + * @type {AccountStakingSummary} + * @memberof Account + */ + 'stakingSummary': AccountStakingSummary; +} + diff --git a/src/service/model/address-response.ts b/src/service/model/address-response.ts new file mode 100644 index 0000000..16a475a --- /dev/null +++ b/src/service/model/address-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Address } from './address'; + +/** + * + * @export + * @interface AddressResponse + */ +export interface AddressResponse { + /** + * + * @type {Array
} + * @memberof AddressResponse + */ + 'data': Array
; +} + diff --git a/src/service/model/address.ts b/src/service/model/address.ts new file mode 100644 index 0000000..135a4e5 --- /dev/null +++ b/src/service/model/address.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Address + */ +export interface Address { + /** + * The label of the address. + * @type {string} + * @memberof Address + */ + 'label': string; + /** + * The Ethereum address. + * @type {string} + * @memberof Address + */ + 'address': string; +} + diff --git a/src/service/model/balance.ts b/src/service/model/balance.ts new file mode 100644 index 0000000..7c2f631 --- /dev/null +++ b/src/service/model/balance.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Token} + * @memberof Balance + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Balance + */ + 'balance': { [key: string]: string | undefined; }; +} + diff --git a/src/service/model/basic-event.ts b/src/service/model/basic-event.ts new file mode 100644 index 0000000..338c566 --- /dev/null +++ b/src/service/model/basic-event.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { EventDomain } from './event-domain'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventName } from './event-name'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventType } from './event-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { Log } from './log'; + +/** + * + * @export + * @interface BasicEvent + */ +export interface BasicEvent { + /** + * Identifier for the event. + * @type {number} + * @memberof BasicEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof BasicEvent + */ + 'name': EventName; + /** + * + * @type {EventType} + * @memberof BasicEvent + */ + 'type': EventType; + /** + * + * @type {EventDomain} + * @memberof BasicEvent + */ + 'domain': EventDomain; + /** + * + * @type {Log} + * @memberof BasicEvent + */ + 'raw': Log; +} + + + diff --git a/src/service/model/chain-activity-step-data.ts b/src/service/model/chain-activity-step-data.ts new file mode 100644 index 0000000..3689280 --- /dev/null +++ b/src/service/model/chain-activity-step-data.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { EIP712SignRequest } from './eip712-sign-request'; +// May contain unused imports in some cases +// @ts-ignore +import type { MethodParameters } from './method-parameters'; +// May contain unused imports in some cases +// @ts-ignore +import type { PersonalSignRequest } from './personal-sign-request'; +// May contain unused imports in some cases +// @ts-ignore +import type { PreparedTx } from './prepared-tx'; +// May contain unused imports in some cases +// @ts-ignore +import type { TypedData } from './typed-data'; + +/** + * @type ChainActivityStepData + * @export + */ +export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; + + diff --git a/src/service/model/chain-activity-step.ts b/src/service/model/chain-activity-step.ts new file mode 100644 index 0000000..fc6b4bd --- /dev/null +++ b/src/service/model/chain-activity-step.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivityStepData } from './chain-activity-step-data'; + +/** + * + * @export + * @interface ChainActivityStep + */ +export interface ChainActivityStep { + /** + * + * @type {string} + * @memberof ChainActivityStep + */ + 'type': ChainActivityStepTypeEnum; + /** + * + * @type {ChainActivityStepData} + * @memberof ChainActivityStep + */ + 'data': ChainActivityStepData; +} + +export const ChainActivityStepTypeEnum = { + PREPARED_TX: 'PreparedTx', + EIP712_SIGN_REQUEST: 'EIP712SignRequest', + PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' +} as const; + +export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; + + diff --git a/src/service/model/chain-activity.ts b/src/service/model/chain-activity.ts new file mode 100644 index 0000000..15f49b4 --- /dev/null +++ b/src/service/model/chain-activity.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivityStep } from './chain-activity-step'; + +/** + * + * @export + * @interface ChainActivity + */ +export interface ChainActivity { + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'stepNumber': number; + /** + * + * @type {number} + * @memberof ChainActivity + */ + 'numberOfSteps': number; + /** + * + * @type {Array} + * @memberof ChainActivity + */ + 'steps': Array; +} + diff --git a/src/service/model/dutch-amount.ts b/src/service/model/dutch-amount.ts new file mode 100644 index 0000000..438b7ff --- /dev/null +++ b/src/service/model/dutch-amount.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface DutchAmount + */ +export interface DutchAmount { + /** + * + * @type {Token} + * @memberof DutchAmount + */ + 'token': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'startAmount': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + 'endAmount': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof DutchAmount + */ + 'recipient'?: string; +} + diff --git a/src/service/model/eip712-sign-request.ts b/src/service/model/eip712-sign-request.ts new file mode 100644 index 0000000..77b75dc --- /dev/null +++ b/src/service/model/eip712-sign-request.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { TypedData } from './typed-data'; + +/** + * + * @export + * @interface EIP712SignRequest + */ +export interface EIP712SignRequest { + /** + * The name of the EIP712 signature + * @type {string} + * @memberof EIP712SignRequest + */ + 'name': string; + /** + * + * @type {TypedData} + * @memberof EIP712SignRequest + */ + 'typedData': TypedData; + /** + * The hash of the EIP712 signature that needs to be signed + * @type {string} + * @memberof EIP712SignRequest + */ + 'hash': string; +} + diff --git a/src/service/model/error-message.ts b/src/service/model/error-message.ts new file mode 100644 index 0000000..ed06bac --- /dev/null +++ b/src/service/model/error-message.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ErrorMessage + */ +export interface ErrorMessage { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorMessage + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorMessage + */ + 'solutions': Array; +} + diff --git a/src/service/model/event-details-response.ts b/src/service/model/event-details-response.ts new file mode 100644 index 0000000..138ff0b --- /dev/null +++ b/src/service/model/event-details-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Log } from './log'; + +/** + * + * @export + * @interface EventDetailsResponse + */ +export interface EventDetailsResponse { + /** + * + * @type {Array} + * @memberof EventDetailsResponse + */ + 'data': Array; +} + diff --git a/src/service/model/event-domain.ts b/src/service/model/event-domain.ts new file mode 100644 index 0000000..b9d5867 --- /dev/null +++ b/src/service/model/event-domain.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The domain of the event. + * @export + * @enum {string} + */ + +export const EventDomain = { + STABLE_COIN_SYSTEM: 'stableCoinSystem', + LENDINGPOOL: 'lendingpool', + CHAINLINK: 'chainlink', + UNISWAP_V3: 'uniswapV3' +} as const; + +export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; + + + diff --git a/src/service/model/event-name.ts b/src/service/model/event-name.ts new file mode 100644 index 0000000..430fec8 --- /dev/null +++ b/src/service/model/event-name.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const EventName = { + VAULTS_REPAY: 'VaultsRepay', + VAULTS_WITHDRAW: 'VaultsWithdraw', + VAULTS_DEPOSIT: 'VaultsDeposit', + VAULTS_MINT: 'VaultsMint', + VAULTS_KICK: 'VaultsKick', + VAULTS_TAKE: 'VaultsTake', + VAULTS_REDO: 'VaultsRedo', + VAULTS_YANK: 'VaultsYank', + LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', + LENDINGPOOL_REPAY: 'LendingpoolRepay', + LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', + LENDINGPOOL_BORROW: 'LendingpoolBorrow', + FILE: 'File', + PERMISSION: 'Permission', + MEDIAN: 'Median', + UNKNOWN: 'Unknown' +} as const; + +export type EventName = typeof EventName[keyof typeof EventName]; + + + diff --git a/src/service/model/event-type.ts b/src/service/model/event-type.ts new file mode 100644 index 0000000..67d06ad --- /dev/null +++ b/src/service/model/event-type.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The type of the event. who has triggered the event. + * @export + * @enum {string} + */ + +export const EventType = { + EXECUTIVE: 'executive', + ORACLE: 'oracle', + USER: 'user' +} as const; + +export type EventType = typeof EventType[keyof typeof EventType]; + + + diff --git a/src/service/model/extended-event.ts b/src/service/model/extended-event.ts new file mode 100644 index 0000000..e847ded --- /dev/null +++ b/src/service/model/extended-event.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { EventDomain } from './event-domain'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventName } from './event-name'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventType } from './event-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { Log } from './log'; + +/** + * + * @export + * @interface ExtendedEvent + */ +export interface ExtendedEvent { + /** + * + * @type {EventDomain} + * @memberof ExtendedEvent + */ + 'domain': EventDomain; + /** + * Identifier for the event. + * @type {number} + * @memberof ExtendedEvent + */ + 'id': number; + /** + * + * @type {EventName} + * @memberof ExtendedEvent + */ + 'name': EventName; + /** + * + * @type {Log} + * @memberof ExtendedEvent + */ + 'raw': Log; + /** + * + * @type {EventType} + * @memberof ExtendedEvent + */ + 'type': EventType; + /** + * The payload of the event. The payload is a JSON-marshalled + * @type {{ [key: string]: any | undefined; }} + * @memberof ExtendedEvent + */ + 'payload': { [key: string]: any | undefined; }; +} + + + diff --git a/src/service/model/formatted-reserve-data.ts b/src/service/model/formatted-reserve-data.ts new file mode 100644 index 0000000..2626c88 --- /dev/null +++ b/src/service/model/formatted-reserve-data.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface FormattedReserveData + */ +export interface FormattedReserveData { + /** + * Identifier for the reserve data. + * @type {string} + * @memberof FormattedReserveData + */ + 'id': string; + /** + * + * @type {Token} + * @memberof FormattedReserveData + */ + 'underlyingAsset': Token; + /** + * Address of the associated zToken contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'zTokenAddress': string; + /** + * Address of the associated variable debt token contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + 'variableDebtTokenAddress': string; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'borrowingEnabled': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isActive': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'isFrozen': boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + 'usageAsCollateralEnabled': boolean; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveFactor': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'baseLTVasCollateral': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationThreshold': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'reserveLiquidationBonus': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'utilizationRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalDebt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'totalLiquidity': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'availableLiquidity': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'supplyAPR': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPY': string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + 'variableBorrowAPR': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + 'price': { [key: string]: string | undefined; }; +} + diff --git a/src/service/model/ilk.ts b/src/service/model/ilk.ts new file mode 100644 index 0000000..97f1c80 --- /dev/null +++ b/src/service/model/ilk.ts @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; + +/** + * + * @export + * @interface Ilk + */ +export interface Ilk { + /** + * Name of the ILK + * @type {string} + * @memberof Ilk + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Ilk + */ + 'symbol': Symbol; + /** + * Minimum Collateralization Ratio + * @type {string} + * @memberof Ilk + */ + 'minimumCollateralizationRatio': string; + /** + * Maximum Loan To Value + * @type {string} + * @memberof Ilk + */ + 'maximumLoanToValue': string; + /** + * Liquidation Penalty + * @type {string} + * @memberof Ilk + */ + 'liquidationPenalty': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debtCeiling': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'debt': { [key: string]: string | undefined; }; + /** + * Annual Stability Fee + * @type {string} + * @memberof Ilk + */ + 'annualStabilityFee': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dustLimit': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'price': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'nextPrice': { [key: string]: string | undefined; }; + /** + * Join Address + * @type {string} + * @memberof Ilk + */ + 'join': string; + /** + * Median Address + * @type {string} + * @memberof Ilk + */ + 'median': string; + /** + * Gem Address + * @type {string} + * @memberof Ilk + */ + 'gem': string; + /** + * Clipper Address + * @type {string} + * @memberof Ilk + */ + 'clipper': string; + /** + * Pip Address + * @type {string} + * @memberof Ilk + */ + 'pip': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'hole': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'dirt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + 'availableToBorrow': { [key: string]: string | undefined; }; +} + + + diff --git a/src/service/model/ilks-response.ts b/src/service/model/ilks-response.ts new file mode 100644 index 0000000..37d0a41 --- /dev/null +++ b/src/service/model/ilks-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Ilk } from './ilk'; + +/** + * + * @export + * @interface IlksResponse + */ +export interface IlksResponse { + /** + * + * @type {Array} + * @memberof IlksResponse + */ + 'data': Array; +} + diff --git a/src/service/model/index.ts b/src/service/model/index.ts new file mode 100644 index 0000000..ac8f0e9 --- /dev/null +++ b/src/service/model/index.ts @@ -0,0 +1,106 @@ +export * from './account'; +export * from './account-lendingpool-summary'; +export * from './account-stablecoin-system-summary'; +export * from './account-staking-summary'; +export * from './address'; +export * from './address-response'; +export * from './balance'; +export * from './basic-event'; +export * from './chain-activity'; +export * from './chain-activity-step'; +export * from './chain-activity-step-data'; +export * from './dutch-amount'; +export * from './eip712-sign-request'; +export * from './error-message'; +export * from './event-details-response'; +export * from './event-domain'; +export * from './event-name'; +export * from './event-type'; +export * from './extended-event'; +export * from './formatted-reserve-data'; +export * from './ilk'; +export * from './ilks-response'; +export * from './lendingpool-borrow'; +export * from './lendingpool-borrow-tx-request'; +export * from './lendingpool-borrow-tx-response'; +export * from './lendingpool-deposit'; +export * from './lendingpool-deposit-tx-request'; +export * from './lendingpool-deposit-tx-response'; +export * from './lendingpool-repay-tx-request'; +export * from './lendingpool-repay-tx-response'; +export * from './lendingpool-stats'; +export * from './lendingpool-tx-response'; +export * from './lendingpool-use-asset-as-collateral-tx-request'; +export * from './lendingpool-use-asset-as-collateral-tx-response'; +export * from './lendingpool-withdraw-tx-request'; +export * from './lendingpool-withdraw-tx-response'; +export * from './log'; +export * from './method-parameters'; +export * from './model-error'; +export * from './order'; +export * from './order-info'; +export * from './order-response'; +export * from './order-type'; +export * from './permit-single'; +export * from './personal-sign-request'; +export * from './prepared-tx'; +export * from './price'; +export * from './price-list-response'; +export * from './quote-request'; +export * from './quote-request-options'; +export * from './quote-response'; +export * from './raw-dutch-amount'; +export * from './route-item'; +export * from './scoreboard'; +export * from './scoreboard-item'; +export * from './stablecoin-system-bark-tx-request'; +export * from './stablecoin-system-create-vault-tx-request'; +export * from './stablecoin-system-deposit-collateral-tx-request'; +export * from './stablecoin-system-gemexit-tx-request'; +export * from './stablecoin-system-mint-zar-tx-request'; +export * from './stablecoin-system-redo-tx-request'; +export * from './stablecoin-system-repay-zar-tx-request'; +export * from './stablecoin-system-stats'; +export * from './stablecoin-system-take-tx-request'; +export * from './stablecoin-system-withdraw-collateral-tx-request'; +export * from './stablecoin-system-zarexit-tx-request'; +export * from './stablecoin-system-zarjoin-tx-request'; +export * from './stake-balance'; +export * from './stake-plan'; +export * from './stake-plans-response'; +export * from './staking-collect-reward-tx-request'; +export * from './staking-collect-reward-tx-response'; +export * from './staking-stake-tx-request'; +export * from './staking-stake-tx-response'; +export * from './staking-withdraw-tx-request'; +export * from './staking-withdraw-tx-response'; +export * from './stats'; +export * from './symbol'; +export * from './system-bad-debt'; +export * from './system-debt'; +export * from './system-debt-ceiling'; +export * from './system-surplus'; +export * from './system-surplus-buffer'; +export * from './system-surplus-lot-size'; +export * from './time-range'; +export * from './timestamp'; +export * from './token'; +export * from './trade-type'; +export * from './type'; +export * from './typed-data'; +export * from './typed-data-domain'; +export * from './unclaimed-reward'; +export * from './update-order-request'; +export * from './user-borrows-response'; +export * from './user-deposits-response'; +export * from './user-error'; +export * from './user-stake'; +export * from './user-stakes-response'; +export * from './v3-pool-in-route'; +export * from './vault'; +export * from './vault-event'; +export * from './vault-event-extension'; +export * from './vault-event-item'; +export * from './vault-events-response'; +export * from './vaults-response'; +export * from './wallet-balance'; diff --git a/src/service/model/lendingpool-borrow-tx-request.ts b/src/service/model/lendingpool-borrow-tx-request.ts new file mode 100644 index 0000000..3d0e0ae --- /dev/null +++ b/src/service/model/lendingpool-borrow-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolBorrowTxRequest + */ +export interface LendingpoolBorrowTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'symbol': string; + /** + * The amount to borrow in native token units + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/lendingpool-borrow-tx-response.ts b/src/service/model/lendingpool-borrow-tx-response.ts new file mode 100644 index 0000000..a7648f8 --- /dev/null +++ b/src/service/model/lendingpool-borrow-tx-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; + +/** + * + * @export + * @interface LendingpoolBorrowTxResponse + */ +export interface LendingpoolBorrowTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolBorrowTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolBorrowTxResponse + */ + 'response'?: LendingpoolTxResponse; +} + diff --git a/src/service/model/lendingpool-borrow.ts b/src/service/model/lendingpool-borrow.ts new file mode 100644 index 0000000..3395a58 --- /dev/null +++ b/src/service/model/lendingpool-borrow.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface LendingpoolBorrow + */ +export interface LendingpoolBorrow { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolBorrow + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'amount': { [key: string]: string | undefined; }; + /** + * The borrow rate. + * @type {string} + * @memberof LendingpoolBorrow + */ + 'borrowRate': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + 'maxBorrowAmount': { [key: string]: string | undefined; }; +} + diff --git a/src/service/model/lendingpool-deposit-tx-request.ts b/src/service/model/lendingpool-deposit-tx-request.ts new file mode 100644 index 0000000..3cdaeda --- /dev/null +++ b/src/service/model/lendingpool-deposit-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolDepositTxRequest + */ +export interface LendingpoolDepositTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'symbol': string; + /** + * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/lendingpool-deposit-tx-response.ts b/src/service/model/lendingpool-deposit-tx-response.ts new file mode 100644 index 0000000..d973055 --- /dev/null +++ b/src/service/model/lendingpool-deposit-tx-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; + +/** + * + * @export + * @interface LendingpoolDepositTxResponse + */ +export interface LendingpoolDepositTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolDepositTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolDepositTxResponse + */ + 'response'?: LendingpoolTxResponse; +} + diff --git a/src/service/model/lendingpool-deposit.ts b/src/service/model/lendingpool-deposit.ts new file mode 100644 index 0000000..37c8c42 --- /dev/null +++ b/src/service/model/lendingpool-deposit.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface LendingpoolDeposit + */ +export interface LendingpoolDeposit { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'user': string; + /** + * + * @type {Token} + * @memberof LendingpoolDeposit + */ + 'underlyingAsset': Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolDeposit + */ + 'amount': { [key: string]: string | undefined; }; + /** + * Whether the user has enabled the asset as collateral. + * @type {boolean} + * @memberof LendingpoolDeposit + */ + 'usageAsCollateralEnabledOnUser': boolean; + /** + * The supply APY. + * @type {string} + * @memberof LendingpoolDeposit + */ + 'supplyAPY': string; +} + diff --git a/src/service/model/lendingpool-repay-tx-request.ts b/src/service/model/lendingpool-repay-tx-request.ts new file mode 100644 index 0000000..2c1a63e --- /dev/null +++ b/src/service/model/lendingpool-repay-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolRepayTxRequest + */ +export interface LendingpoolRepayTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'symbol': string; + /** + * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/lendingpool-repay-tx-response.ts b/src/service/model/lendingpool-repay-tx-response.ts new file mode 100644 index 0000000..c8e8b85 --- /dev/null +++ b/src/service/model/lendingpool-repay-tx-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; + +/** + * + * @export + * @interface LendingpoolRepayTxResponse + */ +export interface LendingpoolRepayTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolRepayTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolRepayTxResponse + */ + 'response'?: LendingpoolTxResponse; +} + diff --git a/src/service/model/lendingpool-stats.ts b/src/service/model/lendingpool-stats.ts new file mode 100644 index 0000000..1c3e69e --- /dev/null +++ b/src/service/model/lendingpool-stats.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolStats + */ +export interface LendingpoolStats { + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalAvailable': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalBorrows': any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + 'totalMarketSize': any; +} + diff --git a/src/service/model/lendingpool-tx-response.ts b/src/service/model/lendingpool-tx-response.ts new file mode 100644 index 0000000..ba212b1 --- /dev/null +++ b/src/service/model/lendingpool-tx-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolTxResponse + */ +export interface LendingpoolTxResponse { + /** + * The health factor after the deposit + * @type {string} + * @memberof LendingpoolTxResponse + */ + 'nextHealthFactor'?: string; +} + diff --git a/src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts b/src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts new file mode 100644 index 0000000..87de363 --- /dev/null +++ b/src/service/model/lendingpool-use-asset-as-collateral-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxRequest + */ +export interface LendingpoolUseAssetAsCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'user': string; + /** + * Symbol of asset + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'symbol': string; + /** + * Enable or disable the asset as collateral + * @type {boolean} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + 'enabled': boolean; +} + diff --git a/src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts b/src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts new file mode 100644 index 0000000..1141283 --- /dev/null +++ b/src/service/model/lendingpool-use-asset-as-collateral-tx-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; + +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxResponse + */ +export interface LendingpoolUseAssetAsCollateralTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + 'response'?: LendingpoolTxResponse; +} + diff --git a/src/service/model/lendingpool-withdraw-tx-request.ts b/src/service/model/lendingpool-withdraw-tx-request.ts new file mode 100644 index 0000000..cb2bc8d --- /dev/null +++ b/src/service/model/lendingpool-withdraw-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LendingpoolWithdrawTxRequest + */ +export interface LendingpoolWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'user': string; + /** + * + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'symbol': string; + /** + * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/lendingpool-withdraw-tx-response.ts b/src/service/model/lendingpool-withdraw-tx-response.ts new file mode 100644 index 0000000..0bb1d73 --- /dev/null +++ b/src/service/model/lendingpool-withdraw-tx-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolTxResponse } from './lendingpool-tx-response'; + +/** + * + * @export + * @interface LendingpoolWithdrawTxResponse + */ +export interface LendingpoolWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolWithdrawTxResponse + */ + 'response'?: LendingpoolTxResponse; +} + diff --git a/src/service/model/log.ts b/src/service/model/log.ts new file mode 100644 index 0000000..09c83de --- /dev/null +++ b/src/service/model/log.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface Log + */ +export interface Log { + /** + * The name of the log + * @type {string} + * @memberof Log + */ + 'name': string; + /** + * The contract address + * @type {string} + * @memberof Log + */ + 'contract': string; + /** + * + * @type {Timestamp} + * @memberof Log + */ + 'timestamp': Timestamp; + /** + * The Ethereum address + * @type {string} + * @memberof Log + */ + 'address': string; + /** + * The block number + * @type {number} + * @memberof Log + */ + 'blockNumber': number; + /** + * The transaction hash + * @type {string} + * @memberof Log + */ + 'txHash': string; + /** + * The block hash + * @type {string} + * @memberof Log + */ + 'blockHash': string; + /** + * The index + * @type {number} + * @memberof Log + */ + 'index': number; + /** + * + * @type {Array} + * @memberof Log + */ + 'topics': Array; + /** + * The data of the log + * @type {string} + * @memberof Log + */ + 'data': string; + /** + * The decoded log, if available + * @type {{ [key: string]: string | undefined; }} + * @memberof Log + */ + 'decoded'?: { [key: string]: string | undefined; }; +} + diff --git a/src/service/model/method-parameters.ts b/src/service/model/method-parameters.ts new file mode 100644 index 0000000..f4864b7 --- /dev/null +++ b/src/service/model/method-parameters.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MethodParameters + */ +export interface MethodParameters { + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'to': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'calldata': string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + 'value': string; +} + diff --git a/src/service/model/model-error.ts b/src/service/model/model-error.ts new file mode 100644 index 0000000..a275003 --- /dev/null +++ b/src/service/model/model-error.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} + diff --git a/src/service/model/order-info.ts b/src/service/model/order-info.ts new file mode 100644 index 0000000..2d4f570 --- /dev/null +++ b/src/service/model/order-info.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { DutchAmount } from './dutch-amount'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface OrderInfo + */ +export interface OrderInfo { + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'permit2Address': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'reactor': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'swapper': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'nonce': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'deadline': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationContract': string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'additionalValidationData': string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayStartTime': Timestamp; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + 'decayEndTime': Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + 'exclusiveFiller': string; + /** + * + * @type {number} + * @memberof OrderInfo + */ + 'exclusivityOverrideBps': number; + /** + * + * @type {DutchAmount} + * @memberof OrderInfo + */ + 'input': DutchAmount; + /** + * + * @type {Array} + * @memberof OrderInfo + */ + 'outputs': Array; +} + diff --git a/src/service/model/order-response.ts b/src/service/model/order-response.ts new file mode 100644 index 0000000..55be2c6 --- /dev/null +++ b/src/service/model/order-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Order } from './order'; + +/** + * + * @export + * @interface OrderResponse + */ +export interface OrderResponse { + /** + * + * @type {Array} + * @memberof OrderResponse + */ + 'data': Array; +} + diff --git a/src/service/model/order-type.ts b/src/service/model/order-type.ts new file mode 100644 index 0000000..4a8ab9b --- /dev/null +++ b/src/service/model/order-type.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const OrderType = { + CLASSIC: 'Classic', + DUTCH_LIMIT: 'DutchLimit' +} as const; + +export type OrderType = typeof OrderType[keyof typeof OrderType]; + + + diff --git a/src/service/model/order.ts b/src/service/model/order.ts new file mode 100644 index 0000000..242a3af --- /dev/null +++ b/src/service/model/order.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { RawDutchAmount } from './raw-dutch-amount'; + +/** + * + * @export + * @interface Order + */ +export interface Order { + /** + * + * @type {string} + * @memberof Order + */ + 'quoteId'?: string; + /** + * + * @type {Array} + * @memberof Order + */ + 'outputs': Array; + /** + * + * @type {string} + * @memberof Order + */ + 'encodedOrder': string; + /** + * + * @type {string} + * @memberof Order + */ + 'signature': string; + /** + * + * @type {RawDutchAmount} + * @memberof Order + */ + 'input': RawDutchAmount; + /** + * + * @type {string} + * @memberof Order + */ + 'orderStatus': OrderOrderStatusEnum; + /** + * + * @type {number} + * @memberof Order + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof Order + */ + 'orderHash': string; + /** + * + * @type {string} + * @memberof Order + */ + 'orderType': OrderOrderTypeEnum; +} + +export const OrderOrderStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +} as const; + +export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; +export const OrderOrderTypeEnum = { + DUTCH: 'dutch', + LIMIT: 'limit' +} as const; + +export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; + + diff --git a/src/service/model/permit-single.ts b/src/service/model/permit-single.ts new file mode 100644 index 0000000..c49fdec --- /dev/null +++ b/src/service/model/permit-single.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { TypedData } from './typed-data'; + +/** + * + * @export + * @interface PermitSingle + */ +export interface PermitSingle { + /** + * + * @type {TypedData} + * @memberof PermitSingle + */ + 'typedData': TypedData; + /** + * The hash of the permit that needs to be signed + * @type {string} + * @memberof PermitSingle + */ + 'hash': string; +} + diff --git a/src/service/model/personal-sign-request.ts b/src/service/model/personal-sign-request.ts new file mode 100644 index 0000000..07e14ac --- /dev/null +++ b/src/service/model/personal-sign-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PersonalSignRequest + */ +export interface PersonalSignRequest { + /** + * The message that needs to be signed + * @type {string} + * @memberof PersonalSignRequest + */ + 'message': string; +} + diff --git a/src/service/model/prepared-tx.ts b/src/service/model/prepared-tx.ts new file mode 100644 index 0000000..c749ec6 --- /dev/null +++ b/src/service/model/prepared-tx.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MethodParameters } from './method-parameters'; + +/** + * + * @export + * @interface PreparedTx + */ +export interface PreparedTx { + /** + * + * @type {string} + * @memberof PreparedTx + */ + 'type': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'label': { [key: string]: string | undefined; }; + /** + * + * @type {number} + * @memberof PreparedTx + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + 'gasFeeEstimate': { [key: string]: string | undefined; }; + /** + * + * @type {MethodParameters} + * @memberof PreparedTx + */ + 'methodParameters': MethodParameters; +} + diff --git a/src/service/model/price-list-response.ts b/src/service/model/price-list-response.ts new file mode 100644 index 0000000..f4b6c1b --- /dev/null +++ b/src/service/model/price-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Price } from './price'; + +/** + * + * @export + * @interface PriceListResponse + */ +export interface PriceListResponse { + /** + * + * @type {Array} + * @memberof PriceListResponse + */ + 'data': Array; +} + diff --git a/src/service/model/price.ts b/src/service/model/price.ts new file mode 100644 index 0000000..cfaae31 --- /dev/null +++ b/src/service/model/price.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface Price + */ +export interface Price { + /** + * + * @type {Symbol} + * @memberof Price + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Price + */ + 'value': { [key: string]: string | undefined; }; + /** + * + * @type {Timestamp} + * @memberof Price + */ + 'timestamp': Timestamp; +} + + + diff --git a/src/service/model/quote-request-options.ts b/src/service/model/quote-request-options.ts new file mode 100644 index 0000000..0be82dd --- /dev/null +++ b/src/service/model/quote-request-options.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface QuoteRequestOptions + */ +export interface QuoteRequestOptions { + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'dryRun'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'slippageTolerance'?: string; + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + 'useSyntheticQuotes'?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitSignature'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitNonce'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitExpiration'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'permitAmount'?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + 'permitSigDeadline'?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'quoteId'?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + 'encodedOrder'?: string; +} + diff --git a/src/service/model/quote-request.ts b/src/service/model/quote-request.ts new file mode 100644 index 0000000..f66f824 --- /dev/null +++ b/src/service/model/quote-request.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { OrderType } from './order-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { QuoteRequestOptions } from './quote-request-options'; +// May contain unused imports in some cases +// @ts-ignore +import type { TradeType } from './trade-type'; + +/** + * + * @export + * @interface QuoteRequest + */ +export interface QuoteRequest { + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'requestId'?: string; + /** + * + * @type {OrderType} + * @memberof QuoteRequest + */ + 'type'?: OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteRequest + */ + 'tradeType': TradeType; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'inputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'outputToken': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + 'recipient': string; + /** + * + * @type {QuoteRequestOptions} + * @memberof QuoteRequest + */ + 'options'?: QuoteRequestOptions; +} + + + diff --git a/src/service/model/quote-response.ts b/src/service/model/quote-response.ts new file mode 100644 index 0000000..ba32edd --- /dev/null +++ b/src/service/model/quote-response.ts @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MethodParameters } from './method-parameters'; +// May contain unused imports in some cases +// @ts-ignore +import type { OrderInfo } from './order-info'; +// May contain unused imports in some cases +// @ts-ignore +import type { OrderType } from './order-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { RouteItem } from './route-item'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; +// May contain unused imports in some cases +// @ts-ignore +import type { TradeType } from './trade-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { TypedData } from './typed-data'; + +/** + * + * @export + * @interface QuoteResponse + */ +export interface QuoteResponse { + /** + * + * @type {OrderType} + * @memberof QuoteResponse + */ + 'type': OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteResponse + */ + 'tradeType': TradeType; + /** + * + * @type {Timestamp} + * @memberof QuoteResponse + */ + 'time': Timestamp; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'amount': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'quote': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'quoteId': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasPrice': { [key: string]: string | undefined; }; + /** + * + * @type {number} + * @memberof QuoteResponse + */ + 'gasUseEstimate': number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + 'gasFeeEstimate': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'routeString': string; + /** + * + * @type {MethodParameters} + * @memberof QuoteResponse + */ + 'methodParameters'?: MethodParameters; + /** + * + * @type {Array} + * @memberof QuoteResponse + */ + 'route': Array; + /** + * + * @type {OrderInfo} + * @memberof QuoteResponse + */ + 'orderInfo'?: OrderInfo; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'encodedOrder'?: string; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + 'orderHash'?: string; + /** + * + * @type {TypedData} + * @memberof QuoteResponse + */ + 'permitData'?: TypedData; +} + + + diff --git a/src/service/model/raw-dutch-amount.ts b/src/service/model/raw-dutch-amount.ts new file mode 100644 index 0000000..66b65f9 --- /dev/null +++ b/src/service/model/raw-dutch-amount.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RawDutchAmount + */ +export interface RawDutchAmount { + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'token': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'startAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'endAmount': string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + 'recipient'?: string; +} + diff --git a/src/service/model/route-item.ts b/src/service/model/route-item.ts new file mode 100644 index 0000000..b06feba --- /dev/null +++ b/src/service/model/route-item.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; +// May contain unused imports in some cases +// @ts-ignore +import type { V3PoolInRoute } from './v3-pool-in-route'; + +/** + * @type RouteItem + * @export + */ +export type RouteItem = V3PoolInRoute; + + diff --git a/src/service/model/scoreboard-item.ts b/src/service/model/scoreboard-item.ts new file mode 100644 index 0000000..7ff1658 --- /dev/null +++ b/src/service/model/scoreboard-item.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ScoreboardItem + */ +export interface ScoreboardItem { + /** + * + * @type {string} + * @memberof ScoreboardItem + */ + 'address': string; + /** + * + * @type {number} + * @memberof ScoreboardItem + */ + 'points': number; +} + diff --git a/src/service/model/scoreboard.ts b/src/service/model/scoreboard.ts new file mode 100644 index 0000000..ffb5eb1 --- /dev/null +++ b/src/service/model/scoreboard.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ScoreboardItem } from './scoreboard-item'; + +/** + * + * @export + * @interface Scoreboard + */ +export interface Scoreboard { + /** + * + * @type {Array} + * @memberof Scoreboard + */ + 'items': Array; +} + diff --git a/src/service/model/stablecoin-system-bark-tx-request.ts b/src/service/model/stablecoin-system-bark-tx-request.ts new file mode 100644 index 0000000..e0114d1 --- /dev/null +++ b/src/service/model/stablecoin-system-bark-tx-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemBarkTxRequest + */ +export interface StablecoinSystemBarkTxRequest { + /** + * Ethereum address of the user who is liquidating the vault and receiving incentives. + * @type {string} + * @memberof StablecoinSystemBarkTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemBarkTxRequest + */ + 'vaultId': number; +} + diff --git a/src/service/model/stablecoin-system-create-vault-tx-request.ts b/src/service/model/stablecoin-system-create-vault-tx-request.ts new file mode 100644 index 0000000..2ba4248 --- /dev/null +++ b/src/service/model/stablecoin-system-create-vault-tx-request.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemCreateVaultTxRequest + */ +export interface StablecoinSystemCreateVaultTxRequest { + /** + * The name of the ilk + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'ilkName': string; + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'user': string; + /** + * The amount of collateral to deposit in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'collateralAmount'?: string; + /** + * The amount of stablecoin to mint in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + 'mintAmount': string; +} + diff --git a/src/service/model/stablecoin-system-deposit-collateral-tx-request.ts b/src/service/model/stablecoin-system-deposit-collateral-tx-request.ts new file mode 100644 index 0000000..f661b7c --- /dev/null +++ b/src/service/model/stablecoin-system-deposit-collateral-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemDepositCollateralTxRequest + */ +export interface StablecoinSystemDepositCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/stablecoin-system-gemexit-tx-request.ts b/src/service/model/stablecoin-system-gemexit-tx-request.ts new file mode 100644 index 0000000..cb5205a --- /dev/null +++ b/src/service/model/stablecoin-system-gemexit-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemGemexitTxRequest + */ +export interface StablecoinSystemGemexitTxRequest { + /** + * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'user': string; + /** + * The amount of Gem token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'amount': string; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + 'ilk': string; +} + diff --git a/src/service/model/stablecoin-system-mint-zar-tx-request.ts b/src/service/model/stablecoin-system-mint-zar-tx-request.ts new file mode 100644 index 0000000..2951499 --- /dev/null +++ b/src/service/model/stablecoin-system-mint-zar-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemMintZarTxRequest + */ +export interface StablecoinSystemMintZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/stablecoin-system-redo-tx-request.ts b/src/service/model/stablecoin-system-redo-tx-request.ts new file mode 100644 index 0000000..8a5e102 --- /dev/null +++ b/src/service/model/stablecoin-system-redo-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemRedoTxRequest + */ +export interface StablecoinSystemRedoTxRequest { + /** + * Ethereum address of the user resetting the auction and receiving incentives. + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemRedoTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + 'ilk': string; +} + diff --git a/src/service/model/stablecoin-system-repay-zar-tx-request.ts b/src/service/model/stablecoin-system-repay-zar-tx-request.ts new file mode 100644 index 0000000..eaffa5b --- /dev/null +++ b/src/service/model/stablecoin-system-repay-zar-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemRepayZarTxRequest + */ +export interface StablecoinSystemRepayZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'vaultId': number; + /** + * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/stablecoin-system-stats.ts b/src/service/model/stablecoin-system-stats.ts new file mode 100644 index 0000000..300b6c1 --- /dev/null +++ b/src/service/model/stablecoin-system-stats.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemStats + */ +export interface StablecoinSystemStats { + /** + * System surplus + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplus': { [key: string]: string | undefined; }; + /** + * System debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebt': { [key: string]: string | undefined; }; + /** + * System debt ceiling + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemDebtCeiling': { [key: string]: string | undefined; }; + /** + * System surplus buffer + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusBuffer': { [key: string]: string | undefined; }; + /** + * System bad debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemBadDebt': { [key: string]: string | undefined; }; + /** + * System surplus lot size + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + 'systemSurplusLotSize': { [key: string]: string | undefined; }; +} + diff --git a/src/service/model/stablecoin-system-take-tx-request.ts b/src/service/model/stablecoin-system-take-tx-request.ts new file mode 100644 index 0000000..4ca9b0f --- /dev/null +++ b/src/service/model/stablecoin-system-take-tx-request.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemTakeTxRequest + */ +export interface StablecoinSystemTakeTxRequest { + /** + * Ethereum address of the user taking the auction. + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'user': string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemTakeTxRequest + */ + 'auctionId': number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'ilk': string; + /** + * upper limit on the amount of collateral to buy [wad] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'collateralAmountUpperLimit': string; + /** + * Maximum acceptable price (ZAR / collateral) [ray] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + 'maxAcceptablePrice': string; +} + diff --git a/src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts b/src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts new file mode 100644 index 0000000..b1fb194 --- /dev/null +++ b/src/service/model/stablecoin-system-withdraw-collateral-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemWithdrawCollateralTxRequest + */ +export interface StablecoinSystemWithdrawCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'user': string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'vaultId': number; + /** + * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/stablecoin-system-zarexit-tx-request.ts b/src/service/model/stablecoin-system-zarexit-tx-request.ts new file mode 100644 index 0000000..4908938 --- /dev/null +++ b/src/service/model/stablecoin-system-zarexit-tx-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemZarexitTxRequest + */ +export interface StablecoinSystemZarexitTxRequest { + /** + * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'user': string; + /** + * The amount of Zar token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + 'amount': string; +} + diff --git a/src/service/model/stablecoin-system-zarjoin-tx-request.ts b/src/service/model/stablecoin-system-zarjoin-tx-request.ts new file mode 100644 index 0000000..674c22f --- /dev/null +++ b/src/service/model/stablecoin-system-zarjoin-tx-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StablecoinSystemZarjoinTxRequest + */ +export interface StablecoinSystemZarjoinTxRequest { + /** + * Ethereum address of the user intends to join zar tokens into the Vat contract. + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'user': string; + /** + * The amount of ZAR to approve and join into Vat contract + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + 'amount': string; +} + diff --git a/src/service/model/stake-balance.ts b/src/service/model/stake-balance.ts new file mode 100644 index 0000000..3af15a2 --- /dev/null +++ b/src/service/model/stake-balance.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The amount of asset staked in native token units + * @export + * @interface StakeBalance + */ +export interface StakeBalance { +} + diff --git a/src/service/model/stake-plan.ts b/src/service/model/stake-plan.ts new file mode 100644 index 0000000..8ee9158 --- /dev/null +++ b/src/service/model/stake-plan.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface StakePlan + */ +export interface StakePlan { + /** + * Name of staking plan + * @type {string} + * @memberof StakePlan + */ + 'planName': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakePlan + */ + 'contractAddress': string; + /** + * Annual percentage yield of the staking plan + * @type {string} + * @memberof StakePlan + */ + 'apy': string; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'stakeToken': Token; + /** + * + * @type {Token} + * @memberof StakePlan + */ + 'rewardToken': Token; + /** + * + * @type {Timestamp} + * @memberof StakePlan + */ + 'finishAt': Timestamp; +} + diff --git a/src/service/model/stake-plans-response.ts b/src/service/model/stake-plans-response.ts new file mode 100644 index 0000000..72de95e --- /dev/null +++ b/src/service/model/stake-plans-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { StakePlan } from './stake-plan'; + +/** + * + * @export + * @interface StakePlansResponse + */ +export interface StakePlansResponse { + /** + * + * @type {Array} + * @memberof StakePlansResponse + */ + 'data': Array; +} + diff --git a/src/service/model/staking-collect-reward-tx-request.ts b/src/service/model/staking-collect-reward-tx-request.ts new file mode 100644 index 0000000..0d650a9 --- /dev/null +++ b/src/service/model/staking-collect-reward-tx-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StakingCollectRewardTxRequest + */ +export interface StakingCollectRewardTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + 'contractAddress': string; +} + diff --git a/src/service/model/staking-collect-reward-tx-response.ts b/src/service/model/staking-collect-reward-tx-response.ts new file mode 100644 index 0000000..6721a47 --- /dev/null +++ b/src/service/model/staking-collect-reward-tx-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; + +/** + * + * @export + * @interface StakingCollectRewardTxResponse + */ +export interface StakingCollectRewardTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingCollectRewardTxResponse + */ + 'chainActivity'?: ChainActivity; +} + diff --git a/src/service/model/staking-stake-tx-request.ts b/src/service/model/staking-stake-tx-request.ts new file mode 100644 index 0000000..b2c4139 --- /dev/null +++ b/src/service/model/staking-stake-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StakingStakeTxRequest + */ +export interface StakingStakeTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to stake in native token units + * @type {string} + * @memberof StakingStakeTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/staking-stake-tx-response.ts b/src/service/model/staking-stake-tx-response.ts new file mode 100644 index 0000000..0ce93bf --- /dev/null +++ b/src/service/model/staking-stake-tx-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; + +/** + * + * @export + * @interface StakingStakeTxResponse + */ +export interface StakingStakeTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingStakeTxResponse + */ + 'chainActivity'?: ChainActivity; +} + diff --git a/src/service/model/staking-withdraw-tx-request.ts b/src/service/model/staking-withdraw-tx-request.ts new file mode 100644 index 0000000..bbe2a35 --- /dev/null +++ b/src/service/model/staking-withdraw-tx-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface StakingWithdrawTxRequest + */ +export interface StakingWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'user': string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'contractAddress': string; + /** + * The amount of asset to withdraw in native token units + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + 'amount'?: string; +} + diff --git a/src/service/model/staking-withdraw-tx-response.ts b/src/service/model/staking-withdraw-tx-response.ts new file mode 100644 index 0000000..cfdd300 --- /dev/null +++ b/src/service/model/staking-withdraw-tx-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ChainActivity } from './chain-activity'; + +/** + * + * @export + * @interface StakingWithdrawTxResponse + */ +export interface StakingWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingWithdrawTxResponse + */ + 'chainActivity'?: ChainActivity; +} + diff --git a/src/service/model/stats.ts b/src/service/model/stats.ts new file mode 100644 index 0000000..2b70d58 --- /dev/null +++ b/src/service/model/stats.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolStats } from './lendingpool-stats'; +// May contain unused imports in some cases +// @ts-ignore +import type { StablecoinSystemStats } from './stablecoin-system-stats'; + +/** + * + * @export + * @interface Stats + */ +export interface Stats { + /** + * + * @type {StablecoinSystemStats} + * @memberof Stats + */ + 'stablecoinSystem': StablecoinSystemStats; + /** + * + * @type {LendingpoolStats} + * @memberof Stats + */ + 'lendingpool': LendingpoolStats; +} + diff --git a/src/service/model/symbol.ts b/src/service/model/symbol.ts new file mode 100644 index 0000000..fc6e1e4 --- /dev/null +++ b/src/service/model/symbol.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Symbol representation + * @export + * @enum {string} + */ + +export const Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +} as const; + +export type Symbol = typeof Symbol[keyof typeof Symbol]; + + + diff --git a/src/service/model/system-bad-debt.ts b/src/service/model/system-bad-debt.ts new file mode 100644 index 0000000..3e5019b --- /dev/null +++ b/src/service/model/system-bad-debt.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System bad debt + * @export + * @interface SystemBadDebt + */ +export interface SystemBadDebt { +} + diff --git a/src/service/model/system-debt-ceiling.ts b/src/service/model/system-debt-ceiling.ts new file mode 100644 index 0000000..f4362d1 --- /dev/null +++ b/src/service/model/system-debt-ceiling.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System debt ceiling + * @export + * @interface SystemDebtCeiling + */ +export interface SystemDebtCeiling { +} + diff --git a/src/service/model/system-debt.ts b/src/service/model/system-debt.ts new file mode 100644 index 0000000..0537007 --- /dev/null +++ b/src/service/model/system-debt.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System debt + * @export + * @interface SystemDebt + */ +export interface SystemDebt { +} + diff --git a/src/service/model/system-surplus-buffer.ts b/src/service/model/system-surplus-buffer.ts new file mode 100644 index 0000000..0cc494e --- /dev/null +++ b/src/service/model/system-surplus-buffer.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System surplus buffer + * @export + * @interface SystemSurplusBuffer + */ +export interface SystemSurplusBuffer { +} + diff --git a/src/service/model/system-surplus-lot-size.ts b/src/service/model/system-surplus-lot-size.ts new file mode 100644 index 0000000..2da6163 --- /dev/null +++ b/src/service/model/system-surplus-lot-size.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System surplus lot size + * @export + * @interface SystemSurplusLotSize + */ +export interface SystemSurplusLotSize { +} + diff --git a/src/service/model/system-surplus.ts b/src/service/model/system-surplus.ts new file mode 100644 index 0000000..f6fb355 --- /dev/null +++ b/src/service/model/system-surplus.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * System surplus + * @export + * @interface SystemSurplus + */ +export interface SystemSurplus { +} + diff --git a/src/service/model/time-range.ts b/src/service/model/time-range.ts new file mode 100644 index 0000000..ec0f9b4 --- /dev/null +++ b/src/service/model/time-range.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TimeRange + */ +export interface TimeRange { + /** + * + * @type {string} + * @memberof TimeRange + */ + 'from'?: string; + /** + * + * @type {string} + * @memberof TimeRange + */ + 'to'?: string; +} + diff --git a/src/service/model/timestamp.ts b/src/service/model/timestamp.ts new file mode 100644 index 0000000..693fb14 --- /dev/null +++ b/src/service/model/timestamp.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} + diff --git a/src/service/model/token.ts b/src/service/model/token.ts new file mode 100644 index 0000000..756c4de --- /dev/null +++ b/src/service/model/token.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; + +/** + * + * @export + * @interface Token + */ +export interface Token { + /** + * The name of the token. + * @type {string} + * @memberof Token + */ + 'name': string; + /** + * + * @type {Symbol} + * @memberof Token + */ + 'symbol': Symbol; + /** + * The number of decimals for the token. + * @type {number} + * @memberof Token + */ + 'decimals': number; + /** + * The Ethereum address of the token. + * @type {string} + * @memberof Token + */ + 'address': string; + /** + * The URI of the token\'s logo. + * @type {string} + * @memberof Token + */ + 'logoUri': string; + /** + * The chain ID of the token. + * @type {number} + * @memberof Token + */ + 'chainId': number; + /** + * The Persian name of the token. + * @type {string} + * @memberof Token + */ + 'persianName': string; +} + + + diff --git a/src/service/model/trade-type.ts b/src/service/model/trade-type.ts new file mode 100644 index 0000000..8f51e66 --- /dev/null +++ b/src/service/model/trade-type.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const TradeType = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +} as const; + +export type TradeType = typeof TradeType[keyof typeof TradeType]; + + + diff --git a/src/service/model/type.ts b/src/service/model/type.ts new file mode 100644 index 0000000..289d6d5 --- /dev/null +++ b/src/service/model/type.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Type + */ +export interface Type { + /** + * + * @type {string} + * @memberof Type + */ + 'name': string; + /** + * + * @type {string} + * @memberof Type + */ + 'type': string; +} + diff --git a/src/service/model/typed-data-domain.ts b/src/service/model/typed-data-domain.ts new file mode 100644 index 0000000..61da895 --- /dev/null +++ b/src/service/model/typed-data-domain.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TypedDataDomain + */ +export interface TypedDataDomain { + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'name': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'version'?: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'chainId': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'verifyingContract': string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + 'salt'?: string; +} + diff --git a/src/service/model/typed-data.ts b/src/service/model/typed-data.ts new file mode 100644 index 0000000..1e887e9 --- /dev/null +++ b/src/service/model/typed-data.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Type } from './type'; +// May contain unused imports in some cases +// @ts-ignore +import type { TypedDataDomain } from './typed-data-domain'; + +/** + * + * @export + * @interface TypedData + */ +export interface TypedData { + /** + * A map where each key is a string and each value is a list of Type + * @type {{ [key: string]: Array | undefined; }} + * @memberof TypedData + */ + 'types': { [key: string]: Array | undefined; }; + /** + * + * @type {string} + * @memberof TypedData + */ + 'primaryType': string; + /** + * + * @type {TypedDataDomain} + * @memberof TypedData + */ + 'domain': TypedDataDomain; + /** + * + * @type {{ [key: string]: any | undefined; }} + * @memberof TypedData + */ + 'message': { [key: string]: any | undefined; }; +} + diff --git a/src/service/model/unclaimed-reward.ts b/src/service/model/unclaimed-reward.ts new file mode 100644 index 0000000..d1002ef --- /dev/null +++ b/src/service/model/unclaimed-reward.ts @@ -0,0 +1,24 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The amount of unclaimed reward in native token units + * @export + * @interface UnclaimedReward + */ +export interface UnclaimedReward { +} + diff --git a/src/service/model/update-order-request.ts b/src/service/model/update-order-request.ts new file mode 100644 index 0000000..908a994 --- /dev/null +++ b/src/service/model/update-order-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateOrderRequest + */ +export interface UpdateOrderRequest { + /** + * + * @type {string} + * @memberof UpdateOrderRequest + */ + 'orderHash': string; +} + diff --git a/src/service/model/user-borrows-response.ts b/src/service/model/user-borrows-response.ts new file mode 100644 index 0000000..2ba61b3 --- /dev/null +++ b/src/service/model/user-borrows-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolBorrow } from './lendingpool-borrow'; + +/** + * + * @export + * @interface UserBorrowsResponse + */ +export interface UserBorrowsResponse { + /** + * + * @type {Array} + * @memberof UserBorrowsResponse + */ + 'data': Array; +} + diff --git a/src/service/model/user-deposits-response.ts b/src/service/model/user-deposits-response.ts new file mode 100644 index 0000000..b000949 --- /dev/null +++ b/src/service/model/user-deposits-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LendingpoolDeposit } from './lendingpool-deposit'; + +/** + * + * @export + * @interface UserDepositsResponse + */ +export interface UserDepositsResponse { + /** + * + * @type {Array} + * @memberof UserDepositsResponse + */ + 'data': Array; +} + diff --git a/src/service/model/user-error.ts b/src/service/model/user-error.ts new file mode 100644 index 0000000..ab11a99 --- /dev/null +++ b/src/service/model/user-error.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ErrorMessage } from './error-message'; + +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorMessage | undefined; }} + * @memberof UserError + */ + 'messages': { [key: string]: ErrorMessage | undefined; }; + /** + * + * @type {Array} + * @memberof UserError + */ + 'reasons': Array; +} + diff --git a/src/service/model/user-stake.ts b/src/service/model/user-stake.ts new file mode 100644 index 0000000..7c4f468 --- /dev/null +++ b/src/service/model/user-stake.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UserStake + */ +export interface UserStake { + /** + * Ethereum address of the user + * @type {string} + * @memberof UserStake + */ + 'user': string; + /** + * The amount of asset staked in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'balance': { [key: string]: string | undefined; }; + /** + * The amount of unclaimed reward in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + 'unclaimedReward': { [key: string]: string | undefined; }; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof UserStake + */ + 'contractAddress': string; + /** + * Name of staking plan + * @type {string} + * @memberof UserStake + */ + 'planName': string; +} + diff --git a/src/service/model/user-stakes-response.ts b/src/service/model/user-stakes-response.ts new file mode 100644 index 0000000..fa16484 --- /dev/null +++ b/src/service/model/user-stakes-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { UserStake } from './user-stake'; + +/** + * + * @export + * @interface UserStakesResponse + */ +export interface UserStakesResponse { + /** + * + * @type {Array} + * @memberof UserStakesResponse + */ + 'data': Array; +} + diff --git a/src/service/model/v3-pool-in-route.ts b/src/service/model/v3-pool-in-route.ts new file mode 100644 index 0000000..7db38e9 --- /dev/null +++ b/src/service/model/v3-pool-in-route.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Token } from './token'; + +/** + * + * @export + * @interface V3PoolInRoute + */ +export interface V3PoolInRoute { + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'address': string; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenIn': Token; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + 'tokenOut': Token; + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + 'fee': string; +} + diff --git a/src/service/model/vault-event-extension.ts b/src/service/model/vault-event-extension.ts new file mode 100644 index 0000000..102fd08 --- /dev/null +++ b/src/service/model/vault-event-extension.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { VaultEvent } from './vault-event'; + +/** + * + * @export + * @interface VaultEventExtension + */ +export interface VaultEventExtension { + /** + * + * @type {VaultEvent} + * @memberof VaultEventExtension + */ + 'payload'?: VaultEvent; +} + diff --git a/src/service/model/vault-event-item.ts b/src/service/model/vault-event-item.ts new file mode 100644 index 0000000..459f666 --- /dev/null +++ b/src/service/model/vault-event-item.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BasicEvent } from './basic-event'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventDomain } from './event-domain'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventName } from './event-name'; +// May contain unused imports in some cases +// @ts-ignore +import type { EventType } from './event-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { Log } from './log'; +// May contain unused imports in some cases +// @ts-ignore +import type { VaultEvent } from './vault-event'; +// May contain unused imports in some cases +// @ts-ignore +import type { VaultEventExtension } from './vault-event-extension'; + +/** + * @type VaultEventItem + * @export + */ +export type VaultEventItem = BasicEvent & VaultEventExtension; + + diff --git a/src/service/model/vault-event.ts b/src/service/model/vault-event.ts new file mode 100644 index 0000000..251b74c --- /dev/null +++ b/src/service/model/vault-event.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Ilk } from './ilk'; + +/** + * + * @export + * @interface VaultEvent + */ +export interface VaultEvent { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaCollateral': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + 'deltaDebt': { [key: string]: string | undefined; }; + /** + * + * @type {Ilk} + * @memberof VaultEvent + */ + 'ilk': Ilk; +} + diff --git a/src/service/model/vault-events-response.ts b/src/service/model/vault-events-response.ts new file mode 100644 index 0000000..ea65fb7 --- /dev/null +++ b/src/service/model/vault-events-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ExtendedEvent } from './extended-event'; + +/** + * + * @export + * @interface VaultEventsResponse + */ +export interface VaultEventsResponse { + /** + * + * @type {Array} + * @memberof VaultEventsResponse + */ + 'data': Array; +} + diff --git a/src/service/model/vault.ts b/src/service/model/vault.ts new file mode 100644 index 0000000..4d27cf0 --- /dev/null +++ b/src/service/model/vault.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Ilk } from './ilk'; + +/** + * + * @export + * @interface Vault + */ +export interface Vault { + /** + * Identifier for the vault. + * @type {number} + * @memberof Vault + */ + 'id': number; + /** + * Ethereum address of the vault owner. + * @type {string} + * @memberof Vault + */ + 'owner': string; + /** + * Ethereum address of the vault urn. + * @type {string} + * @memberof Vault + */ + 'urn': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'liquidationPrice': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'collateralLocked': { [key: string]: string | undefined; }; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof Vault + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof Vault + */ + 'loanToValue': string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'debt': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToWithdraw': { [key: string]: string | undefined; }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + 'availableToMint': { [key: string]: string | undefined; }; + /** + * + * @type {Ilk} + * @memberof Vault + */ + 'ilk': Ilk; +} + diff --git a/src/service/model/vaults-response.ts b/src/service/model/vaults-response.ts new file mode 100644 index 0000000..b803c10 --- /dev/null +++ b/src/service/model/vaults-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Vault } from './vault'; + +/** + * + * @export + * @interface VaultsResponse + */ +export interface VaultsResponse { + /** + * + * @type {Array} + * @memberof VaultsResponse + */ + 'data': Array; +} + diff --git a/src/service/model/wallet-balance.ts b/src/service/model/wallet-balance.ts new file mode 100644 index 0000000..c1a140f --- /dev/null +++ b/src/service/model/wallet-balance.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Balance } from './balance'; + +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} + diff --git a/src/service/package.json b/src/service/package.json index e683f67..7a93350 100644 --- a/src/service/package.json +++ b/src/service/package.json @@ -1,12 +1,20 @@ { "name": "zarban", - "version": "0.1.8", + "version": "0.2.0", "description": "OpenAPI client for zarban", - "author": "OpenAPI-Generator", + "author": "OpenAPI-Generator Contributors", "repository": { "type": "git", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, + "keywords": [ + "axios", + "typescript", + "openapi-client", + "openapi-generator", + "zarban" + ], + "license": "Unlicense", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", @@ -15,7 +23,11 @@ "build": "tsc && tsc -p tsconfig.esm.json", "prepare": "npm run build" }, + "dependencies": { + "axios": "^1.6.1" + }, "devDependencies": { + "@types/node": "12.11.5 - 12.20.42", "typescript": "^4.0 || ^5.0" } } diff --git a/src/service/src/apis/AccountsApi.ts b/src/service/src/apis/AccountsApi.ts deleted file mode 100644 index 5946e3b..0000000 --- a/src/service/src/apis/AccountsApi.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Account, -} from '../models/index'; -import { - AccountFromJSON, - AccountToJSON, -} from '../models/index'; - -export interface GetAccountByAddressRequest { - address: string; -} - -/** - * AccountsApi - interface - * - * @export - * @interface AccountsApiInterface - */ -export interface AccountsApiInterface { - /** - * Get account by address - * @summary Get account by address - * @param {string} address Ethereum address of the account - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AccountsApiInterface - */ - getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get account by address - * Get account by address - */ - getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface { - - /** - * Get account by address - * Get account by address - */ - async getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['address'] == null) { - throw new runtime.RequiredError( - 'address', - 'Required parameter "address" was null or undefined when calling getAccountByAddress().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/accounts/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => AccountFromJSON(jsonValue)); - } - - /** - * Get account by address - * Get account by address - */ - async getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAccountByAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/AddressesApi.ts b/src/service/src/apis/AddressesApi.ts deleted file mode 100644 index 47ca6e8..0000000 --- a/src/service/src/apis/AddressesApi.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - AddressResponse, -} from '../models/index'; -import { - AddressResponseFromJSON, - AddressResponseToJSON, -} from '../models/index'; - -export interface GetAllAddressesRequest { - format?: string; -} - -/** - * AddressesApi - interface - * - * @export - * @interface AddressesApiInterface - */ -export interface AddressesApiInterface { - /** - * All addresses knows to Zarban. - * @summary Get all addresses - * @param {string} [format] The type of addresses to return - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AddressesApiInterface - */ - getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * All addresses knows to Zarban. - * Get all addresses - */ - getAllAddresses(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class AddressesApi extends runtime.BaseAPI implements AddressesApiInterface { - - /** - * All addresses knows to Zarban. - * Get all addresses - */ - async getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/addresses`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => AddressResponseFromJSON(jsonValue)); - } - - /** - * All addresses knows to Zarban. - * Get all addresses - */ - async getAllAddresses(requestParameters: GetAllAddressesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllAddressesRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/BorrowsApi.ts b/src/service/src/apis/BorrowsApi.ts deleted file mode 100644 index ab8877b..0000000 --- a/src/service/src/apis/BorrowsApi.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - UserBorrowsResponse, -} from '../models/index'; -import { - UserBorrowsResponseFromJSON, - UserBorrowsResponseToJSON, -} from '../models/index'; - -export interface GetUserBorrowsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} - -/** - * BorrowsApi - interface - * - * @export - * @interface BorrowsApiInterface - */ -export interface BorrowsApiInterface { - /** - * Get user borrows of lendingpool - * @summary Get user borrows of lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BorrowsApiInterface - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class BorrowsApi extends runtime.BaseAPI implements BorrowsApiInterface { - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/lendingpool/borrows`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserBorrowsResponseFromJSON(jsonValue)); - } - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrows(requestParameters: GetUserBorrowsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/CollectorApi.ts b/src/service/src/apis/CollectorApi.ts deleted file mode 100644 index ccca46c..0000000 --- a/src/service/src/apis/CollectorApi.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Stats, -} from '../models/index'; -import { - StatsFromJSON, - StatsToJSON, -} from '../models/index'; - -/** - * CollectorApi - interface - * - * @export - * @interface CollectorApiInterface - */ -export interface CollectorApiInterface { - /** - * Get collector data - * @summary Get collector data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CollectorApiInterface - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class CollectorApi extends runtime.BaseAPI implements CollectorApiInterface { - - /** - * Get collector data - * Get collector data - */ - async getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StatsFromJSON(jsonValue)); - } - - /** - * Get collector data - * Get collector data - */ - async getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCollectorDataRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/DepositsApi.ts b/src/service/src/apis/DepositsApi.ts deleted file mode 100644 index b9e08ff..0000000 --- a/src/service/src/apis/DepositsApi.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - UserDepositsResponse, -} from '../models/index'; -import { - UserDepositsResponseFromJSON, - UserDepositsResponseToJSON, -} from '../models/index'; - -export interface GetUserDepositsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} - -/** - * DepositsApi - interface - * - * @export - * @interface DepositsApiInterface - */ -export interface DepositsApiInterface { - /** - * Get user deposits of Lendingpool - * @summary Get user deposits of Lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DepositsApiInterface - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class DepositsApi extends runtime.BaseAPI implements DepositsApiInterface { - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/lendingpool/deposits`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserDepositsResponseFromJSON(jsonValue)); - } - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDeposits(requestParameters: GetUserDepositsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserDepositsRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/IlksApi.ts b/src/service/src/apis/IlksApi.ts deleted file mode 100644 index 228558e..0000000 --- a/src/service/src/apis/IlksApi.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Ilk, - IlksResponse, -} from '../models/index'; -import { - IlkFromJSON, - IlkToJSON, - IlksResponseFromJSON, - IlksResponseToJSON, -} from '../models/index'; - -export interface GetIlkByNameRequest { - name: string; -} - -/** - * IlksApi - interface - * - * @export - * @interface IlksApiInterface - */ -export interface IlksApiInterface { - /** - * Retrieve a list of all available ilks. - * @summary Get all Ilks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IlksApiInterface - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Retrieve an Ilk by providing its name. - * @summary Get Ilk by name - * @param {string} name Name of the ILK - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IlksApiInterface - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class IlksApi extends runtime.BaseAPI implements IlksApiInterface { - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/ilks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IlksResponseFromJSON(jsonValue)); - } - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllIlksRaw(initOverrides); - return await response.value(); - } - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['name'] == null) { - throw new runtime.RequiredError( - 'name', - 'Required parameter "name" was null or undefined when calling getIlkByName().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IlkFromJSON(jsonValue)); - } - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getIlkByNameRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/LendingPoolApi.ts b/src/service/src/apis/LendingPoolApi.ts deleted file mode 100644 index e3f85b6..0000000 --- a/src/service/src/apis/LendingPoolApi.ts +++ /dev/null @@ -1,560 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - FormattedReserveData, - LendingpoolBorrowTxRequest, - LendingpoolBorrowTxResponse, - LendingpoolDepositTxRequest, - LendingpoolDepositTxResponse, - LendingpoolRepayTxRequest, - LendingpoolRepayTxResponse, - LendingpoolUseAssetAsCollateralTxRequest, - LendingpoolUseAssetAsCollateralTxResponse, - LendingpoolWithdrawTxRequest, - LendingpoolWithdrawTxResponse, - UserBorrowsResponse, - UserDepositsResponse, - UserError, -} from '../models/index'; -import { - FormattedReserveDataFromJSON, - FormattedReserveDataToJSON, - LendingpoolBorrowTxRequestFromJSON, - LendingpoolBorrowTxRequestToJSON, - LendingpoolBorrowTxResponseFromJSON, - LendingpoolBorrowTxResponseToJSON, - LendingpoolDepositTxRequestFromJSON, - LendingpoolDepositTxRequestToJSON, - LendingpoolDepositTxResponseFromJSON, - LendingpoolDepositTxResponseToJSON, - LendingpoolRepayTxRequestFromJSON, - LendingpoolRepayTxRequestToJSON, - LendingpoolRepayTxResponseFromJSON, - LendingpoolRepayTxResponseToJSON, - LendingpoolUseAssetAsCollateralTxRequestFromJSON, - LendingpoolUseAssetAsCollateralTxRequestToJSON, - LendingpoolUseAssetAsCollateralTxResponseFromJSON, - LendingpoolUseAssetAsCollateralTxResponseToJSON, - LendingpoolWithdrawTxRequestFromJSON, - LendingpoolWithdrawTxRequestToJSON, - LendingpoolWithdrawTxResponseFromJSON, - LendingpoolWithdrawTxResponseToJSON, - UserBorrowsResponseFromJSON, - UserBorrowsResponseToJSON, - UserDepositsResponseFromJSON, - UserDepositsResponseToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface CreateLendingPoolBorrowRequest { - lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest; -} - -export interface CreateLendingPoolDepositRequest { - lendingpoolDepositTxRequest: LendingpoolDepositTxRequest; -} - -export interface CreateLendingPoolRepayRequest { - lendingpoolRepayTxRequest: LendingpoolRepayTxRequest; -} - -export interface CreateLendingPoolWithdrawRequest { - lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest; -} - -export interface FetchReserveDataByAssetRequest { - asset?: string; -} - -export interface GetUserBorrowsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} - -export interface GetUserDepositsRequest { - user?: string; - reserve?: string; - cursor?: number; - limit?: number; -} - -export interface SetLendingPoolAssetCollateralRequest { - lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest; -} - -/** - * LendingPoolApi - interface - * - * @export - * @interface LendingPoolApiInterface - */ -export interface LendingPoolApiInterface { - /** - * Borrow from lending pool - * @summary Borrow from lending pool - * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Borrow from lending pool - * Borrow from lending pool - */ - createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Deposit to lending pool - * @summary Deposit to lending pool - * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Deposit to lending pool - * Deposit to lending pool - */ - createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Repay to lending pool - * @summary Repay to lending pool - * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Repay to lending pool - * Repay to lending pool - */ - createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Withdraw from lending pool - * @summary Withdraw from lending pool - * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Retrieve data of reserves - * @summary Fetch Reserve Data By Asset - * @param {string} [asset] The asset address in hexadecimal format. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - fetchReserveDataByAsset(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get user borrows of lendingpool - * @summary Get user borrows of lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get user deposits of Lendingpool - * @summary Get user deposits of Lendingpool - * @param {string} [user] Ethereum address of the user - * @param {string} [reserve] Ethereum address of the reserve - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of deposits returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Allows to enable/disable a specific asset as collateral - * @summary Enable/Disable asset as collateral - * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LendingPoolApiInterface - */ - setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class LendingPoolApi extends runtime.BaseAPI implements LendingPoolApiInterface { - - /** - * Borrow from lending pool - * Borrow from lending pool - */ - async createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['lendingpoolBorrowTxRequest'] == null) { - throw new runtime.RequiredError( - 'lendingpoolBorrowTxRequest', - 'Required parameter "lendingpoolBorrowTxRequest" was null or undefined when calling createLendingPoolBorrow().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/lendingpool/tx/borrow`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LendingpoolBorrowTxRequestToJSON(requestParameters['lendingpoolBorrowTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LendingpoolBorrowTxResponseFromJSON(jsonValue)); - } - - /** - * Borrow from lending pool - * Borrow from lending pool - */ - async createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLendingPoolBorrowRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Deposit to lending pool - * Deposit to lending pool - */ - async createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['lendingpoolDepositTxRequest'] == null) { - throw new runtime.RequiredError( - 'lendingpoolDepositTxRequest', - 'Required parameter "lendingpoolDepositTxRequest" was null or undefined when calling createLendingPoolDeposit().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/lendingpool/tx/deposit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LendingpoolDepositTxRequestToJSON(requestParameters['lendingpoolDepositTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LendingpoolDepositTxResponseFromJSON(jsonValue)); - } - - /** - * Deposit to lending pool - * Deposit to lending pool - */ - async createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLendingPoolDepositRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Repay to lending pool - * Repay to lending pool - */ - async createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['lendingpoolRepayTxRequest'] == null) { - throw new runtime.RequiredError( - 'lendingpoolRepayTxRequest', - 'Required parameter "lendingpoolRepayTxRequest" was null or undefined when calling createLendingPoolRepay().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/lendingpool/tx/repay`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LendingpoolRepayTxRequestToJSON(requestParameters['lendingpoolRepayTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LendingpoolRepayTxResponseFromJSON(jsonValue)); - } - - /** - * Repay to lending pool - * Repay to lending pool - */ - async createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLendingPoolRepayRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - async createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['lendingpoolWithdrawTxRequest'] == null) { - throw new runtime.RequiredError( - 'lendingpoolWithdrawTxRequest', - 'Required parameter "lendingpoolWithdrawTxRequest" was null or undefined when calling createLendingPoolWithdraw().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/lendingpool/tx/withdraw`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LendingpoolWithdrawTxRequestToJSON(requestParameters['lendingpoolWithdrawTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LendingpoolWithdrawTxResponseFromJSON(jsonValue)); - } - - /** - * Withdraw from lending pool - * Withdraw from lending pool - */ - async createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLendingPoolWithdrawRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - async fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['asset'] != null) { - queryParameters['asset'] = requestParameters['asset']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/lendingpool/reserves`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FormattedReserveDataFromJSON(jsonValue)); - } - - /** - * Retrieve data of reserves - * Fetch Reserve Data By Asset - */ - async fetchReserveDataByAsset(requestParameters: FetchReserveDataByAssetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.fetchReserveDataByAssetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/lendingpool/borrows`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserBorrowsResponseFromJSON(jsonValue)); - } - - /** - * Get user borrows of lendingpool - * Get user borrows of lendingpool - */ - async getUserBorrows(requestParameters: GetUserBorrowsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - if (requestParameters['reserve'] != null) { - queryParameters['reserve'] = requestParameters['reserve']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/lendingpool/deposits`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserDepositsResponseFromJSON(jsonValue)); - } - - /** - * Get user deposits of Lendingpool - * Get user deposits of Lendingpool - */ - async getUserDeposits(requestParameters: GetUserDepositsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserDepositsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - async setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['lendingpoolUseAssetAsCollateralTxRequest'] == null) { - throw new runtime.RequiredError( - 'lendingpoolUseAssetAsCollateralTxRequest', - 'Required parameter "lendingpoolUseAssetAsCollateralTxRequest" was null or undefined when calling setLendingPoolAssetCollateral().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/lendingpool/tx/useassetascollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LendingpoolUseAssetAsCollateralTxRequestToJSON(requestParameters['lendingpoolUseAssetAsCollateralTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LendingpoolUseAssetAsCollateralTxResponseFromJSON(jsonValue)); - } - - /** - * Allows to enable/disable a specific asset as collateral - * Enable/Disable asset as collateral - */ - async setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.setLendingPoolAssetCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/LogsApi.ts b/src/service/src/apis/LogsApi.ts deleted file mode 100644 index e5cb139..0000000 --- a/src/service/src/apis/LogsApi.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - EventDetailsResponse, -} from '../models/index'; -import { - EventDetailsResponseFromJSON, - EventDetailsResponseToJSON, -} from '../models/index'; - -export interface GetLogsByTransactionHashRequest { - txHash: string; -} - -/** - * LogsApi - interface - * - * @export - * @interface LogsApiInterface - */ -export interface LogsApiInterface { - /** - * Get raw and decoded logs by transaction hash - * @summary Get raw and decoded logs by transaction hash - * @param {string} txHash Transaction hash - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LogsApiInterface - */ - getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class LogsApi extends runtime.BaseAPI implements LogsApiInterface { - - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - async getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['txHash'] == null) { - throw new runtime.RequiredError( - 'txHash', - 'Required parameter "txHash" was null or undefined when calling getLogsByTransactionHash().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/logs/{txHash}`.replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => EventDetailsResponseFromJSON(jsonValue)); - } - - /** - * Get raw and decoded logs by transaction hash - * Get raw and decoded logs by transaction hash - */ - async getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLogsByTransactionHashRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/OrdersApi.ts b/src/service/src/apis/OrdersApi.ts deleted file mode 100644 index 30b171d..0000000 --- a/src/service/src/apis/OrdersApi.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - OrderResponse, - TimeRange, - UpdateOrderRequest, -} from '../models/index'; -import { - OrderResponseFromJSON, - OrderResponseToJSON, - TimeRangeFromJSON, - TimeRangeToJSON, - UpdateOrderRequestFromJSON, - UpdateOrderRequestToJSON, -} from '../models/index'; - -export interface GetUnfilledOrdersRequest { - type?: GetUnfilledOrdersTypeEnum; - hash?: string; - status?: GetUnfilledOrdersStatusEnum; - offerer?: string; - filler?: string; - decayStartTime?: TimeRange; - decayEndTime?: TimeRange; - deadline?: TimeRange; - cursor?: number; - limit?: number; -} - -export interface SyncOrderRequest { - updateOrderRequest: UpdateOrderRequest; -} - -/** - * OrdersApi - interface - * - * @export - * @interface OrdersApiInterface - */ -export interface OrdersApiInterface { - /** - * Get a list of unfilled orders filtered by different parameters. - * @summary Fetch Unfilled Orders - * @param {'limit' | 'dutch'} [type] Type of the order - * @param {string} [hash] order hash - * @param {'open' | 'expired' | 'error' | 'cancelled' | 'filled' | 'insufficient-funds'} [status] Status of the order - * @param {string} [offerer] Ethereum address of the offerer - * @param {string} [filler] Ethereum address of the filler - * @param {TimeRange} [decayStartTime] Decay start time - * @param {TimeRange} [decayEndTime] Decay end time - * @param {TimeRange} [deadline] Order deadline - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of orders returned (default is 10) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof OrdersApiInterface - */ - getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - getUnfilledOrders(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * updates an order entity in database - * @summary Updates Order Entity - * @param {UpdateOrderRequest} updateOrderRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof OrdersApiInterface - */ - syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * updates an order entity in database - * Updates Order Entity - */ - syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class OrdersApi extends runtime.BaseAPI implements OrdersApiInterface { - - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - async getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - - if (requestParameters['hash'] != null) { - queryParameters['hash'] = requestParameters['hash']; - } - - if (requestParameters['status'] != null) { - queryParameters['status'] = requestParameters['status']; - } - - if (requestParameters['offerer'] != null) { - queryParameters['offerer'] = requestParameters['offerer']; - } - - if (requestParameters['filler'] != null) { - queryParameters['filler'] = requestParameters['filler']; - } - - if (requestParameters['decayStartTime'] != null) { - queryParameters['decayStartTime'] = requestParameters['decayStartTime']; - } - - if (requestParameters['decayEndTime'] != null) { - queryParameters['decayEndTime'] = requestParameters['decayEndTime']; - } - - if (requestParameters['deadline'] != null) { - queryParameters['deadline'] = requestParameters['deadline']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/orders`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OrderResponseFromJSON(jsonValue)); - } - - /** - * Get a list of unfilled orders filtered by different parameters. - * Fetch Unfilled Orders - */ - async getUnfilledOrders(requestParameters: GetUnfilledOrdersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUnfilledOrdersRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * updates an order entity in database - * Updates Order Entity - */ - async syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateOrderRequest'] == null) { - throw new runtime.RequiredError( - 'updateOrderRequest', - 'Required parameter "updateOrderRequest" was null or undefined when calling syncOrder().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/orders/sync`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: UpdateOrderRequestToJSON(requestParameters['updateOrderRequest']), - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * updates an order entity in database - * Updates Order Entity - */ - async syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.syncOrderRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const GetUnfilledOrdersTypeEnum = { - LIMIT: 'limit', - DUTCH: 'dutch' -} as const; -export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; -/** - * @export - */ -export const GetUnfilledOrdersStatusEnum = { - OPEN: 'open', - EXPIRED: 'expired', - ERROR: 'error', - CANCELLED: 'cancelled', - FILLED: 'filled', - INSUFFICIENT_FUNDS: 'insufficient-funds' -} as const; -export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; diff --git a/src/service/src/apis/PermitApi.ts b/src/service/src/apis/PermitApi.ts deleted file mode 100644 index 0769857..0000000 --- a/src/service/src/apis/PermitApi.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - PermitSingle, -} from '../models/index'; -import { - PermitSingleFromJSON, - PermitSingleToJSON, -} from '../models/index'; - -export interface GetSingleTokenPermitRequest { - token: string; - user: string; -} - -/** - * PermitApi - interface - * - * @export - * @interface PermitApiInterface - */ -export interface PermitApiInterface { - /** - * Get permit for single token - * @summary Get permit for single token - * @param {string} token Ethereum address of the token - * @param {string} user Ethereum address of the user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PermitApiInterface - */ - getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get permit for single token - * Get permit for single token - */ - getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class PermitApi extends runtime.BaseAPI implements PermitApiInterface { - - /** - * Get permit for single token - * Get permit for single token - */ - async getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['token'] == null) { - throw new runtime.RequiredError( - 'token', - 'Required parameter "token" was null or undefined when calling getSingleTokenPermit().' - ); - } - - if (requestParameters['user'] == null) { - throw new runtime.RequiredError( - 'user', - 'Required parameter "user" was null or undefined when calling getSingleTokenPermit().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['token'] != null) { - queryParameters['token'] = requestParameters['token']; - } - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/permit/single`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PermitSingleFromJSON(jsonValue)); - } - - /** - * Get permit for single token - * Get permit for single token - */ - async getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSingleTokenPermitRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/PointsApi.ts b/src/service/src/apis/PointsApi.ts deleted file mode 100644 index ffbe4f3..0000000 --- a/src/service/src/apis/PointsApi.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Scoreboard, -} from '../models/index'; -import { - ScoreboardFromJSON, - ScoreboardToJSON, -} from '../models/index'; - -/** - * PointsApi - interface - * - * @export - * @interface PointsApiInterface - */ -export interface PointsApiInterface { - /** - * Get scoreboard - * @summary Get scoreboard - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PointsApiInterface - */ - getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get scoreboard - * Get scoreboard - */ - getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class PointsApi extends runtime.BaseAPI implements PointsApiInterface { - - /** - * Get scoreboard - * Get scoreboard - */ - async getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/points/scoreboard`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ScoreboardFromJSON(jsonValue)); - } - - /** - * Get scoreboard - * Get scoreboard - */ - async getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getScoreboardRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/PricesApi.ts b/src/service/src/apis/PricesApi.ts deleted file mode 100644 index c538d7b..0000000 --- a/src/service/src/apis/PricesApi.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - PriceListResponse, -} from '../models/index'; -import { - PriceListResponseFromJSON, - PriceListResponseToJSON, -} from '../models/index'; - -export interface ListPricesRequest { - symbol?: string; -} - -/** - * PricesApi - interface - * - * @export - * @interface PricesApiInterface - */ -export interface PricesApiInterface { - /** - * Retrieve a list of price details based on specified query parameters - * @summary List prices based on query parameters - * @param {string} [symbol] Symbol of the price - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PricesApiInterface - */ - listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - listPrices(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class PricesApi extends runtime.BaseAPI implements PricesApiInterface { - - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - async listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['symbol'] != null) { - queryParameters['symbol'] = requestParameters['symbol']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/prices`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PriceListResponseFromJSON(jsonValue)); - } - - /** - * Retrieve a list of price details based on specified query parameters - * List prices based on query parameters - */ - async listPrices(requestParameters: ListPricesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.listPricesRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/StableCoinSystemApi.ts b/src/service/src/apis/StableCoinSystemApi.ts deleted file mode 100644 index 4c2bfac..0000000 --- a/src/service/src/apis/StableCoinSystemApi.ts +++ /dev/null @@ -1,1039 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - ChainActivity, - Ilk, - IlksResponse, - StablecoinSystemBarkTxRequest, - StablecoinSystemCreateVaultTxRequest, - StablecoinSystemDepositCollateralTxRequest, - StablecoinSystemGemexitTxRequest, - StablecoinSystemMintZarTxRequest, - StablecoinSystemRedoTxRequest, - StablecoinSystemRepayZarTxRequest, - StablecoinSystemTakeTxRequest, - StablecoinSystemWithdrawCollateralTxRequest, - StablecoinSystemZarexitTxRequest, - StablecoinSystemZarjoinTxRequest, - Stats, - Vault, - VaultEventsResponse, - VaultsResponse, -} from '../models/index'; -import { - ChainActivityFromJSON, - ChainActivityToJSON, - IlkFromJSON, - IlkToJSON, - IlksResponseFromJSON, - IlksResponseToJSON, - StablecoinSystemBarkTxRequestFromJSON, - StablecoinSystemBarkTxRequestToJSON, - StablecoinSystemCreateVaultTxRequestFromJSON, - StablecoinSystemCreateVaultTxRequestToJSON, - StablecoinSystemDepositCollateralTxRequestFromJSON, - StablecoinSystemDepositCollateralTxRequestToJSON, - StablecoinSystemGemexitTxRequestFromJSON, - StablecoinSystemGemexitTxRequestToJSON, - StablecoinSystemMintZarTxRequestFromJSON, - StablecoinSystemMintZarTxRequestToJSON, - StablecoinSystemRedoTxRequestFromJSON, - StablecoinSystemRedoTxRequestToJSON, - StablecoinSystemRepayZarTxRequestFromJSON, - StablecoinSystemRepayZarTxRequestToJSON, - StablecoinSystemTakeTxRequestFromJSON, - StablecoinSystemTakeTxRequestToJSON, - StablecoinSystemWithdrawCollateralTxRequestFromJSON, - StablecoinSystemWithdrawCollateralTxRequestToJSON, - StablecoinSystemZarexitTxRequestFromJSON, - StablecoinSystemZarexitTxRequestToJSON, - StablecoinSystemZarjoinTxRequestFromJSON, - StablecoinSystemZarjoinTxRequestToJSON, - StatsFromJSON, - StatsToJSON, - VaultFromJSON, - VaultToJSON, - VaultEventsResponseFromJSON, - VaultEventsResponseToJSON, - VaultsResponseFromJSON, - VaultsResponseToJSON, -} from '../models/index'; - -export interface ApproveAndJoinZarTransactionRequest { - stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest; -} - -export interface CreateStableCoinVaultRequest { - stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest; -} - -export interface DepositStableCoinCollateralRequest { - stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest; -} - -export interface ExitGemTransactionRequest { - stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest; -} - -export interface ExitZarTransactionRequest { - stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest; -} - -export interface GetIlkByNameRequest { - name: string; -} - -export interface GetVaultByIdRequest { - id: number; -} - -export interface GetVaultEventsByIdRequest { - id: number; - type?: GetVaultEventsByIdTypeEnum; -} - -export interface GetVaultsByOwnerRequest { - owner?: string; -} - -export interface LiquidateVaultTransactionRequest { - stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest; -} - -export interface MintZarTransactionRequest { - stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest; -} - -export interface RepayZarTransactionRequest { - stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest; -} - -export interface ResetAuctionTransactionRequest { - stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest; -} - -export interface TakeAuctionTransactionRequest { - stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest; -} - -export interface WithdrawCollateralTransactionRequest { - stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest; -} - -/** - * StableCoinSystemApi - interface - * - * @export - * @interface StableCoinSystemApiInterface - */ -export interface StableCoinSystemApiInterface { - /** - * approve and join ZAR token into Vat contract - * @summary approve and join ZAR token into Vat contract - * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Create vault - * @summary Create vault - * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Create vault - * Create vault - */ - createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Deposit collateral - * @summary Deposit collateral - * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Deposit collateral - * Deposit collateral - */ - depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * exit Gem token (which can be used as collateral) from Vat contract - * @summary exit Gem token (which can be used as collateral) from Vat contract - * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * exit ZAR token from Vat contract - * @summary exit ZAR token from Vat contract - * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Retrieve a list of all available ilks. - * @summary Get all Ilks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get collector data - * @summary Get collector data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get collector data - * Get collector data - */ - getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Retrieve an Ilk by providing its name. - * @summary Get Ilk by name - * @param {string} name Name of the ILK - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * - * @summary Get a vault by ID - * @param {number} id Vault ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * - * @summary Get vault events by ID - * @param {number} id Vault ID - * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * - * @summary Get vaults by owner query - * @param {string} [owner] Ethereum address of the owner - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * liquidate a vault - * @summary liquidate a vault - * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * liquidate a vault - * liquidate a vault - */ - liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Mint ZAR - * @summary Mint ZAR - * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Mint ZAR - * Mint ZAR - */ - mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Repay ZAR - * @summary Repay ZAR - * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Repay ZAR - * Repay ZAR - */ - repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * reset a auction - * @summary reset a auction - * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * reset a auction - * reset a auction - */ - resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * take a auction - * @summary take a auction - * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * take a auction - * take a auction - */ - takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Withdraw collateral - * @summary Withdraw collateral - * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StableCoinSystemApiInterface - */ - withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Withdraw collateral - * Withdraw collateral - */ - withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class StableCoinSystemApi extends runtime.BaseAPI implements StableCoinSystemApiInterface { - - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - async approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemZarjoinTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemZarjoinTxRequest', - 'Required parameter "stablecoinSystemZarjoinTxRequest" was null or undefined when calling approveAndJoinZarTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/zarjoin`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemZarjoinTxRequestToJSON(requestParameters['stablecoinSystemZarjoinTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * approve and join ZAR token into Vat contract - * approve and join ZAR token into Vat contract - */ - async approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.approveAndJoinZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Create vault - * Create vault - */ - async createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemCreateVaultTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemCreateVaultTxRequest', - 'Required parameter "stablecoinSystemCreateVaultTxRequest" was null or undefined when calling createStableCoinVault().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/createvault`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemCreateVaultTxRequestToJSON(requestParameters['stablecoinSystemCreateVaultTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * Create vault - * Create vault - */ - async createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createStableCoinVaultRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Deposit collateral - * Deposit collateral - */ - async depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemDepositCollateralTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemDepositCollateralTxRequest', - 'Required parameter "stablecoinSystemDepositCollateralTxRequest" was null or undefined when calling depositStableCoinCollateral().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/depositcollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemDepositCollateralTxRequestToJSON(requestParameters['stablecoinSystemDepositCollateralTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * Deposit collateral - * Deposit collateral - */ - async depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.depositStableCoinCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - async exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemGemexitTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemGemexitTxRequest', - 'Required parameter "stablecoinSystemGemexitTxRequest" was null or undefined when calling exitGemTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/gemexit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemGemexitTxRequestToJSON(requestParameters['stablecoinSystemGemexitTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * exit Gem token (which can be used as collateral) from Vat contract - * exit Gem token (which can be used as collateral) from Vat contract - */ - async exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.exitGemTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - async exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemZarexitTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemZarexitTxRequest', - 'Required parameter "stablecoinSystemZarexitTxRequest" was null or undefined when calling exitZarTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/zarexit`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemZarexitTxRequestToJSON(requestParameters['stablecoinSystemZarexitTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * exit ZAR token from Vat contract - * exit ZAR token from Vat contract - */ - async exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.exitZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/ilks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IlksResponseFromJSON(jsonValue)); - } - - /** - * Retrieve a list of all available ilks. - * Get all Ilks - */ - async getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllIlksRaw(initOverrides); - return await response.value(); - } - - /** - * Get collector data - * Get collector data - */ - async getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StatsFromJSON(jsonValue)); - } - - /** - * Get collector data - * Get collector data - */ - async getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCollectorDataRaw(initOverrides); - return await response.value(); - } - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['name'] == null) { - throw new runtime.RequiredError( - 'name', - 'Required parameter "name" was null or undefined when calling getIlkByName().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => IlkFromJSON(jsonValue)); - } - - /** - * Retrieve an Ilk by providing its name. - * Get Ilk by name - */ - async getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getIlkByNameRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a vault by ID - */ - async getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getVaultById().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultFromJSON(jsonValue)); - } - - /** - * Get a vault by ID - */ - async getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get vault events by ID - */ - async getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getVaultEventsById().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultEventsResponseFromJSON(jsonValue)); - } - - /** - * Get vault events by ID - */ - async getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get vaults by owner query - */ - async getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['owner'] != null) { - queryParameters['owner'] = requestParameters['owner']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultsResponseFromJSON(jsonValue)); - } - - /** - * Get vaults by owner query - */ - async getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * liquidate a vault - * liquidate a vault - */ - async liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemBarkTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemBarkTxRequest', - 'Required parameter "stablecoinSystemBarkTxRequest" was null or undefined when calling liquidateVaultTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/bark`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemBarkTxRequestToJSON(requestParameters['stablecoinSystemBarkTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * liquidate a vault - * liquidate a vault - */ - async liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.liquidateVaultTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Mint ZAR - * Mint ZAR - */ - async mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemMintZarTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemMintZarTxRequest', - 'Required parameter "stablecoinSystemMintZarTxRequest" was null or undefined when calling mintZarTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/mintzar`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemMintZarTxRequestToJSON(requestParameters['stablecoinSystemMintZarTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * Mint ZAR - * Mint ZAR - */ - async mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.mintZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Repay ZAR - * Repay ZAR - */ - async repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemRepayZarTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemRepayZarTxRequest', - 'Required parameter "stablecoinSystemRepayZarTxRequest" was null or undefined when calling repayZarTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/repayzar`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemRepayZarTxRequestToJSON(requestParameters['stablecoinSystemRepayZarTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * Repay ZAR - * Repay ZAR - */ - async repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.repayZarTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * reset a auction - * reset a auction - */ - async resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemRedoTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemRedoTxRequest', - 'Required parameter "stablecoinSystemRedoTxRequest" was null or undefined when calling resetAuctionTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/redo`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemRedoTxRequestToJSON(requestParameters['stablecoinSystemRedoTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * reset a auction - * reset a auction - */ - async resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.resetAuctionTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * take a auction - * take a auction - */ - async takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemTakeTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemTakeTxRequest', - 'Required parameter "stablecoinSystemTakeTxRequest" was null or undefined when calling takeAuctionTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/auctions/tx/take`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemTakeTxRequestToJSON(requestParameters['stablecoinSystemTakeTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * take a auction - * take a auction - */ - async takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.takeAuctionTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Withdraw collateral - * Withdraw collateral - */ - async withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stablecoinSystemWithdrawCollateralTxRequest'] == null) { - throw new runtime.RequiredError( - 'stablecoinSystemWithdrawCollateralTxRequest', - 'Required parameter "stablecoinSystemWithdrawCollateralTxRequest" was null or undefined when calling withdrawCollateralTransaction().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/stablecoinsystem/tx/withdrawcollateral`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StablecoinSystemWithdrawCollateralTxRequestToJSON(requestParameters['stablecoinSystemWithdrawCollateralTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ChainActivityFromJSON(jsonValue)); - } - - /** - * Withdraw collateral - * Withdraw collateral - */ - async withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.withdrawCollateralTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const GetVaultEventsByIdTypeEnum = { - REPAY: 'repay', - DEPOSIT: 'deposit', - WITHDRAW: 'withdraw', - MINT: 'mint' -} as const; -export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; diff --git a/src/service/src/apis/StakingApi.ts b/src/service/src/apis/StakingApi.ts deleted file mode 100644 index 4dfffda..0000000 --- a/src/service/src/apis/StakingApi.ts +++ /dev/null @@ -1,356 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - StakePlansResponse, - StakingCollectRewardTxRequest, - StakingCollectRewardTxResponse, - StakingStakeTxRequest, - StakingStakeTxResponse, - StakingWithdrawTxRequest, - StakingWithdrawTxResponse, - UserError, - UserStakesResponse, -} from '../models/index'; -import { - StakePlansResponseFromJSON, - StakePlansResponseToJSON, - StakingCollectRewardTxRequestFromJSON, - StakingCollectRewardTxRequestToJSON, - StakingCollectRewardTxResponseFromJSON, - StakingCollectRewardTxResponseToJSON, - StakingStakeTxRequestFromJSON, - StakingStakeTxRequestToJSON, - StakingStakeTxResponseFromJSON, - StakingStakeTxResponseToJSON, - StakingWithdrawTxRequestFromJSON, - StakingWithdrawTxRequestToJSON, - StakingWithdrawTxResponseFromJSON, - StakingWithdrawTxResponseToJSON, - UserErrorFromJSON, - UserErrorToJSON, - UserStakesResponseFromJSON, - UserStakesResponseToJSON, -} from '../models/index'; - -export interface CollectStakingRewardRequest { - stakingCollectRewardTxRequest: StakingCollectRewardTxRequest; -} - -export interface GetUserStakingStatsRequest { - user?: string; - address?: string; - active?: boolean; - cursor?: number; - limit?: number; -} - -export interface StakeToStakingContractRequest { - stakingStakeTxRequest: StakingStakeTxRequest; -} - -export interface WithdrawStakedAssetRequest { - stakingWithdrawTxRequest: StakingWithdrawTxRequest; -} - -/** - * StakingApi - interface - * - * @export - * @interface StakingApiInterface - */ -export interface StakingApiInterface { - /** - * Collect staking reward - * @summary Collect staking reward - * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Collect staking reward - * Collect staking reward - */ - collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get staking plans - * @summary Get staking plans - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get staking plans - * Get staking plans - */ - getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get user staking stats - * @summary Get user staking stats - * @param {string} [user] Ethereum address of the user - * @param {string} [address] Ethereum address of the staking contract - * @param {boolean} [active] Filter by active stakes - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of stakes returned (default is 50) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user staking stats - * Get user staking stats - */ - getUserStakingStats(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Stake to staking contract - * @summary Stake to staking contract - * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Stake to staking contract - * Stake to staking contract - */ - stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Withdraw staked asset - * @summary Withdraw staked asset - * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof StakingApiInterface - */ - withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Withdraw staked asset - * Withdraw staked asset - */ - withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class StakingApi extends runtime.BaseAPI implements StakingApiInterface { - - /** - * Collect staking reward - * Collect staking reward - */ - async collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stakingCollectRewardTxRequest'] == null) { - throw new runtime.RequiredError( - 'stakingCollectRewardTxRequest', - 'Required parameter "stakingCollectRewardTxRequest" was null or undefined when calling collectStakingReward().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/staking/tx/collectreward`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StakingCollectRewardTxRequestToJSON(requestParameters['stakingCollectRewardTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StakingCollectRewardTxResponseFromJSON(jsonValue)); - } - - /** - * Collect staking reward - * Collect staking reward - */ - async collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.collectStakingRewardRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get staking plans - * Get staking plans - */ - async getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/staking/plans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StakePlansResponseFromJSON(jsonValue)); - } - - /** - * Get staking plans - * Get staking plans - */ - async getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getStakingPlansRaw(initOverrides); - return await response.value(); - } - - /** - * Get user staking stats - * Get user staking stats - */ - async getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['user'] != null) { - queryParameters['user'] = requestParameters['user']; - } - - if (requestParameters['address'] != null) { - queryParameters['address'] = requestParameters['address']; - } - - if (requestParameters['active'] != null) { - queryParameters['active'] = requestParameters['active']; - } - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/staking/stats`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserStakesResponseFromJSON(jsonValue)); - } - - /** - * Get user staking stats - * Get user staking stats - */ - async getUserStakingStats(requestParameters: GetUserStakingStatsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserStakingStatsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Stake to staking contract - * Stake to staking contract - */ - async stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stakingStakeTxRequest'] == null) { - throw new runtime.RequiredError( - 'stakingStakeTxRequest', - 'Required parameter "stakingStakeTxRequest" was null or undefined when calling stakeToStakingContract().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/staking/tx/stake`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StakingStakeTxRequestToJSON(requestParameters['stakingStakeTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StakingStakeTxResponseFromJSON(jsonValue)); - } - - /** - * Stake to staking contract - * Stake to staking contract - */ - async stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.stakeToStakingContractRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Withdraw staked asset - * Withdraw staked asset - */ - async withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['stakingWithdrawTxRequest'] == null) { - throw new runtime.RequiredError( - 'stakingWithdrawTxRequest', - 'Required parameter "stakingWithdrawTxRequest" was null or undefined when calling withdrawStakedAsset().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/staking/tx/withdraw`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: StakingWithdrawTxRequestToJSON(requestParameters['stakingWithdrawTxRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StakingWithdrawTxResponseFromJSON(jsonValue)); - } - - /** - * Withdraw staked asset - * Withdraw staked asset - */ - async withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.withdrawStakedAssetRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/SwapApi.ts b/src/service/src/apis/SwapApi.ts deleted file mode 100644 index 08102e4..0000000 --- a/src/service/src/apis/SwapApi.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - QuoteRequest, - QuoteResponse, -} from '../models/index'; -import { - QuoteRequestFromJSON, - QuoteRequestToJSON, - QuoteResponseFromJSON, - QuoteResponseToJSON, -} from '../models/index'; - -export interface GetSwapQuoteRequest { - quoteRequest: QuoteRequest; -} - -/** - * SwapApi - interface - * - * @export - * @interface SwapApiInterface - */ -export interface SwapApiInterface { - /** - * Get a quote for a swap - * @summary Get a quote for a swap - * @param {QuoteRequest} quoteRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SwapApiInterface - */ - getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a quote for a swap - * Get a quote for a swap - */ - getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class SwapApi extends runtime.BaseAPI implements SwapApiInterface { - - /** - * Get a quote for a swap - * Get a quote for a swap - */ - async getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['quoteRequest'] == null) { - throw new runtime.RequiredError( - 'quoteRequest', - 'Required parameter "quoteRequest" was null or undefined when calling getSwapQuote().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/v2/swap/quote`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: QuoteRequestToJSON(requestParameters['quoteRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => QuoteResponseFromJSON(jsonValue)); - } - - /** - * Get a quote for a swap - * Get a quote for a swap - */ - async getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSwapQuoteRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/service/src/apis/VaultsApi.ts b/src/service/src/apis/VaultsApi.ts deleted file mode 100644 index efa49a4..0000000 --- a/src/service/src/apis/VaultsApi.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Vault, - VaultEventsResponse, - VaultsResponse, -} from '../models/index'; -import { - VaultFromJSON, - VaultToJSON, - VaultEventsResponseFromJSON, - VaultEventsResponseToJSON, - VaultsResponseFromJSON, - VaultsResponseToJSON, -} from '../models/index'; - -export interface GetVaultByIdRequest { - id: number; -} - -export interface GetVaultEventsByIdRequest { - id: number; - type?: GetVaultEventsByIdTypeEnum; -} - -export interface GetVaultsByOwnerRequest { - owner?: string; -} - -/** - * VaultsApi - interface - * - * @export - * @interface VaultsApiInterface - */ -export interface VaultsApiInterface { - /** - * - * @summary Get a vault by ID - * @param {number} id Vault ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a vault by ID - */ - getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * - * @summary Get vault events by ID - * @param {number} id Vault ID - * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get vault events by ID - */ - getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * - * @summary Get vaults by owner query - * @param {string} [owner] Ethereum address of the owner - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof VaultsApiInterface - */ - getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get vaults by owner query - */ - getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class VaultsApi extends runtime.BaseAPI implements VaultsApiInterface { - - /** - * Get a vault by ID - */ - async getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getVaultById().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultFromJSON(jsonValue)); - } - - /** - * Get a vault by ID - */ - async getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get vault events by ID - */ - async getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getVaultEventsById().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['type'] != null) { - queryParameters['type'] = requestParameters['type']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultEventsResponseFromJSON(jsonValue)); - } - - /** - * Get vault events by ID - */ - async getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get vaults by owner query - */ - async getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['owner'] != null) { - queryParameters['owner'] = requestParameters['owner']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/vaults`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => VaultsResponseFromJSON(jsonValue)); - } - - /** - * Get vaults by owner query - */ - async getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const GetVaultEventsByIdTypeEnum = { - REPAY: 'repay', - DEPOSIT: 'deposit', - WITHDRAW: 'withdraw', - MINT: 'mint' -} as const; -export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; diff --git a/src/service/src/apis/WebsocketApi.ts b/src/service/src/apis/WebsocketApi.ts deleted file mode 100644 index c1a5147..0000000 --- a/src/service/src/apis/WebsocketApi.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; - -/** - * WebsocketApi - interface - * - * @export - * @interface WebsocketApiInterface - */ -export interface WebsocketApiInterface { - /** - * Upgrade to websocket connection - * @summary Websocket Upgrade - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WebsocketApiInterface - */ - getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class WebsocketApi extends runtime.BaseAPI implements WebsocketApiInterface { - - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - async getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/v2/ws`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Upgrade to websocket connection - * Websocket Upgrade - */ - async getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.getUnfilledOrdersWebsocketRaw(initOverrides); - } - -} diff --git a/src/service/src/apis/index.ts b/src/service/src/apis/index.ts deleted file mode 100644 index 61ea465..0000000 --- a/src/service/src/apis/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * as AccountsApi from "./AccountsApi"; -export * as AddressesApi from "./AddressesApi"; -export * as BorrowsApi from "./BorrowsApi"; -export * as CollectorApi from "./CollectorApi"; -export * as DepositsApi from "./DepositsApi"; -export * as IlksApi from "./IlksApi"; -export * as LendingPoolApi from "./LendingPoolApi"; -export * as LogsApi from "./LogsApi"; -export * as OrdersApi from "./OrdersApi"; -export * as PermitApi from "./PermitApi"; -export * as PointsApi from "./PointsApi"; -export * as PricesApi from "./PricesApi"; -export * as StableCoinSystemApi from "./StableCoinSystemApi"; -export * as StakingApi from "./StakingApi"; -export * as SwapApi from "./SwapApi"; -export * as VaultsApi from "./VaultsApi"; -export * as WebsocketApi from "./WebsocketApi"; diff --git a/src/service/src/index.ts b/src/service/src/index.ts deleted file mode 100644 index bebe8bb..0000000 --- a/src/service/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; diff --git a/src/service/src/models/Account.ts b/src/service/src/models/Account.ts deleted file mode 100644 index c1b113f..0000000 --- a/src/service/src/models/Account.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { WalletBalance } from './WalletBalance'; -import { - WalletBalanceFromJSON, - WalletBalanceFromJSONTyped, - WalletBalanceToJSON, - WalletBalanceToJSONTyped, -} from './WalletBalance'; -import type { AccountStakingSummary } from './AccountStakingSummary'; -import { - AccountStakingSummaryFromJSON, - AccountStakingSummaryFromJSONTyped, - AccountStakingSummaryToJSON, - AccountStakingSummaryToJSONTyped, -} from './AccountStakingSummary'; -import type { AccountLendingpoolSummary } from './AccountLendingpoolSummary'; -import { - AccountLendingpoolSummaryFromJSON, - AccountLendingpoolSummaryFromJSONTyped, - AccountLendingpoolSummaryToJSON, - AccountLendingpoolSummaryToJSONTyped, -} from './AccountLendingpoolSummary'; -import type { AccountStablecoinSystemSummary } from './AccountStablecoinSystemSummary'; -import { - AccountStablecoinSystemSummaryFromJSON, - AccountStablecoinSystemSummaryFromJSONTyped, - AccountStablecoinSystemSummaryToJSON, - AccountStablecoinSystemSummaryToJSONTyped, -} from './AccountStablecoinSystemSummary'; - -/** - * - * @export - * @interface Account - */ -export interface Account { - /** - * The number of points the account has. - * @type {number} - * @memberof Account - */ - points: number; - /** - * Ethereum address of the account - * @type {string} - * @memberof Account - */ - address: string; - /** - * - * @type {WalletBalance} - * @memberof Account - */ - walletBalance: WalletBalance; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - netWorth: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - totalDebt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Account - */ - totalDeposits: { [key: string]: string | undefined; }; - /** - * - * @type {AccountLendingpoolSummary} - * @memberof Account - */ - lendingpoolSummary: AccountLendingpoolSummary; - /** - * - * @type {AccountStablecoinSystemSummary} - * @memberof Account - */ - stabelcoinSystemSummary: AccountStablecoinSystemSummary; - /** - * - * @type {AccountStakingSummary} - * @memberof Account - */ - stakingSummary: AccountStakingSummary; -} - -/** - * Check if a given object implements the Account interface. - */ -export function instanceOfAccount(value: object): value is Account { - if (!('points' in value) || value['points'] === undefined) return false; - if (!('address' in value) || value['address'] === undefined) return false; - if (!('walletBalance' in value) || value['walletBalance'] === undefined) return false; - if (!('netWorth' in value) || value['netWorth'] === undefined) return false; - if (!('totalDebt' in value) || value['totalDebt'] === undefined) return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) return false; - if (!('lendingpoolSummary' in value) || value['lendingpoolSummary'] === undefined) return false; - if (!('stabelcoinSystemSummary' in value) || value['stabelcoinSystemSummary'] === undefined) return false; - if (!('stakingSummary' in value) || value['stakingSummary'] === undefined) return false; - return true; -} - -export function AccountFromJSON(json: any): Account { - return AccountFromJSONTyped(json, false); -} - -export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account { - if (json == null) { - return json; - } - return { - - 'points': json['points'], - 'address': json['address'], - 'walletBalance': WalletBalanceFromJSON(json['walletBalance']), - 'netWorth': json['netWorth'], - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'lendingpoolSummary': AccountLendingpoolSummaryFromJSON(json['lendingpoolSummary']), - 'stabelcoinSystemSummary': AccountStablecoinSystemSummaryFromJSON(json['stabelcoinSystemSummary']), - 'stakingSummary': AccountStakingSummaryFromJSON(json['stakingSummary']), - }; -} - -export function AccountToJSON(json: any): Account { - return AccountToJSONTyped(json, false); -} - -export function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'points': value['points'], - 'address': value['address'], - 'walletBalance': WalletBalanceToJSON(value['walletBalance']), - 'netWorth': value['netWorth'], - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'lendingpoolSummary': AccountLendingpoolSummaryToJSON(value['lendingpoolSummary']), - 'stabelcoinSystemSummary': AccountStablecoinSystemSummaryToJSON(value['stabelcoinSystemSummary']), - 'stakingSummary': AccountStakingSummaryToJSON(value['stakingSummary']), - }; -} - diff --git a/src/service/src/models/AccountLendingpoolSummary.ts b/src/service/src/models/AccountLendingpoolSummary.ts deleted file mode 100644 index 18bf14e..0000000 --- a/src/service/src/models/AccountLendingpoolSummary.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface AccountLendingpoolSummary - */ -export interface AccountLendingpoolSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalDebt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalDeposits: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - totalCollateral: { [key: string]: string | undefined; }; - /** - * Health factor in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - healthFactor: string; - /** - * Net annual percentage yield in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - netApy: string; - /** - * Total supply rate in lending pool for account - * @type {string} - * @memberof AccountLendingpoolSummary - */ - totalSupplyApy: string; - /** - * Total borrow rate in lending pool for account - * @type {string} - * @memberof AccountLendingpoolSummary - */ - totalBorrowApy: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountLendingpoolSummary - */ - availableToBorrow: { [key: string]: string | undefined; }; - /** - * Borrow power used in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - borrowPowerUsed: string; - /** - * Current liquidation threshold in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - currentLiquidationThreshold: string; - /** - * Loan to value in lending pool - * @type {string} - * @memberof AccountLendingpoolSummary - */ - loanToValue: string; -} - -/** - * Check if a given object implements the AccountLendingpoolSummary interface. - */ -export function instanceOfAccountLendingpoolSummary(value: object): value is AccountLendingpoolSummary { - if (!('totalDebt' in value) || value['totalDebt'] === undefined) return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) return false; - if (!('totalCollateral' in value) || value['totalCollateral'] === undefined) return false; - if (!('healthFactor' in value) || value['healthFactor'] === undefined) return false; - if (!('netApy' in value) || value['netApy'] === undefined) return false; - if (!('totalSupplyApy' in value) || value['totalSupplyApy'] === undefined) return false; - if (!('totalBorrowApy' in value) || value['totalBorrowApy'] === undefined) return false; - if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) return false; - if (!('borrowPowerUsed' in value) || value['borrowPowerUsed'] === undefined) return false; - if (!('currentLiquidationThreshold' in value) || value['currentLiquidationThreshold'] === undefined) return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) return false; - return true; -} - -export function AccountLendingpoolSummaryFromJSON(json: any): AccountLendingpoolSummary { - return AccountLendingpoolSummaryFromJSONTyped(json, false); -} - -export function AccountLendingpoolSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountLendingpoolSummary { - if (json == null) { - return json; - } - return { - - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'totalCollateral': json['totalCollateral'], - 'healthFactor': json['healthFactor'], - 'netApy': json['netApy'], - 'totalSupplyApy': json['totalSupplyApy'], - 'totalBorrowApy': json['totalBorrowApy'], - 'availableToBorrow': json['availableToBorrow'], - 'borrowPowerUsed': json['borrowPowerUsed'], - 'currentLiquidationThreshold': json['currentLiquidationThreshold'], - 'loanToValue': json['loanToValue'], - }; -} - -export function AccountLendingpoolSummaryToJSON(json: any): AccountLendingpoolSummary { - return AccountLendingpoolSummaryToJSONTyped(json, false); -} - -export function AccountLendingpoolSummaryToJSONTyped(value?: AccountLendingpoolSummary | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'totalCollateral': value['totalCollateral'], - 'healthFactor': value['healthFactor'], - 'netApy': value['netApy'], - 'totalSupplyApy': value['totalSupplyApy'], - 'totalBorrowApy': value['totalBorrowApy'], - 'availableToBorrow': value['availableToBorrow'], - 'borrowPowerUsed': value['borrowPowerUsed'], - 'currentLiquidationThreshold': value['currentLiquidationThreshold'], - 'loanToValue': value['loanToValue'], - }; -} - diff --git a/src/service/src/models/AccountStablecoinSystemSummary.ts b/src/service/src/models/AccountStablecoinSystemSummary.ts deleted file mode 100644 index 0a78428..0000000 --- a/src/service/src/models/AccountStablecoinSystemSummary.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface AccountStablecoinSystemSummary - */ -export interface AccountStablecoinSystemSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStablecoinSystemSummary - */ - totalDebt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStablecoinSystemSummary - */ - totalDeposits: { [key: string]: string | undefined; }; - /** - * Net annual percentage yield in stablecoin system - * @type {string} - * @memberof AccountStablecoinSystemSummary - */ - netApy: string; -} - -/** - * Check if a given object implements the AccountStablecoinSystemSummary interface. - */ -export function instanceOfAccountStablecoinSystemSummary(value: object): value is AccountStablecoinSystemSummary { - if (!('totalDebt' in value) || value['totalDebt'] === undefined) return false; - if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) return false; - if (!('netApy' in value) || value['netApy'] === undefined) return false; - return true; -} - -export function AccountStablecoinSystemSummaryFromJSON(json: any): AccountStablecoinSystemSummary { - return AccountStablecoinSystemSummaryFromJSONTyped(json, false); -} - -export function AccountStablecoinSystemSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStablecoinSystemSummary { - if (json == null) { - return json; - } - return { - - 'totalDebt': json['totalDebt'], - 'totalDeposits': json['totalDeposits'], - 'netApy': json['netApy'], - }; -} - -export function AccountStablecoinSystemSummaryToJSON(json: any): AccountStablecoinSystemSummary { - return AccountStablecoinSystemSummaryToJSONTyped(json, false); -} - -export function AccountStablecoinSystemSummaryToJSONTyped(value?: AccountStablecoinSystemSummary | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'totalDebt': value['totalDebt'], - 'totalDeposits': value['totalDeposits'], - 'netApy': value['netApy'], - }; -} - diff --git a/src/service/src/models/AccountStakingSummary.ts b/src/service/src/models/AccountStakingSummary.ts deleted file mode 100644 index 9f5e9ea..0000000 --- a/src/service/src/models/AccountStakingSummary.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface AccountStakingSummary - */ -export interface AccountStakingSummary { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStakingSummary - */ - totalStake: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof AccountStakingSummary - */ - unclaimedReward: { [key: string]: string | undefined; }; - /** - * Net annual percentage yield in staking contract - * @type {string} - * @memberof AccountStakingSummary - */ - netApy: string; -} - -/** - * Check if a given object implements the AccountStakingSummary interface. - */ -export function instanceOfAccountStakingSummary(value: object): value is AccountStakingSummary { - if (!('totalStake' in value) || value['totalStake'] === undefined) return false; - if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) return false; - if (!('netApy' in value) || value['netApy'] === undefined) return false; - return true; -} - -export function AccountStakingSummaryFromJSON(json: any): AccountStakingSummary { - return AccountStakingSummaryFromJSONTyped(json, false); -} - -export function AccountStakingSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStakingSummary { - if (json == null) { - return json; - } - return { - - 'totalStake': json['totalStake'], - 'unclaimedReward': json['unclaimedReward'], - 'netApy': json['netApy'], - }; -} - -export function AccountStakingSummaryToJSON(json: any): AccountStakingSummary { - return AccountStakingSummaryToJSONTyped(json, false); -} - -export function AccountStakingSummaryToJSONTyped(value?: AccountStakingSummary | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'totalStake': value['totalStake'], - 'unclaimedReward': value['unclaimedReward'], - 'netApy': value['netApy'], - }; -} - diff --git a/src/service/src/models/Address.ts b/src/service/src/models/Address.ts deleted file mode 100644 index 51bd15b..0000000 --- a/src/service/src/models/Address.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Address - */ -export interface Address { - /** - * The label of the address. - * @type {string} - * @memberof Address - */ - label: string; - /** - * The Ethereum address. - * @type {string} - * @memberof Address - */ - address: string; -} - -/** - * Check if a given object implements the Address interface. - */ -export function instanceOfAddress(value: object): value is Address { - if (!('label' in value) || value['label'] === undefined) return false; - if (!('address' in value) || value['address'] === undefined) return false; - return true; -} - -export function AddressFromJSON(json: any): Address { - return AddressFromJSONTyped(json, false); -} - -export function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address { - if (json == null) { - return json; - } - return { - - 'label': json['label'], - 'address': json['address'], - }; -} - -export function AddressToJSON(json: any): Address { - return AddressToJSONTyped(json, false); -} - -export function AddressToJSONTyped(value?: Address | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'label': value['label'], - 'address': value['address'], - }; -} - diff --git a/src/service/src/models/AddressResponse.ts b/src/service/src/models/AddressResponse.ts deleted file mode 100644 index fd677f5..0000000 --- a/src/service/src/models/AddressResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Address } from './Address'; -import { - AddressFromJSON, - AddressFromJSONTyped, - AddressToJSON, - AddressToJSONTyped, -} from './Address'; - -/** - * - * @export - * @interface AddressResponse - */ -export interface AddressResponse { - /** - * - * @type {Array
} - * @memberof AddressResponse - */ - data: Array
; -} - -/** - * Check if a given object implements the AddressResponse interface. - */ -export function instanceOfAddressResponse(value: object): value is AddressResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function AddressResponseFromJSON(json: any): AddressResponse { - return AddressResponseFromJSONTyped(json, false); -} - -export function AddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(AddressFromJSON)), - }; -} - -export function AddressResponseToJSON(json: any): AddressResponse { - return AddressResponseToJSONTyped(json, false); -} - -export function AddressResponseToJSONTyped(value?: AddressResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(AddressToJSON)), - }; -} - diff --git a/src/service/src/models/Balance.ts b/src/service/src/models/Balance.ts deleted file mode 100644 index 0124244..0000000 --- a/src/service/src/models/Balance.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface Balance - */ -export interface Balance { - /** - * - * @type {Token} - * @memberof Balance - */ - token: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Balance - */ - balance: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the Balance interface. - */ -export function instanceOfBalance(value: object): value is Balance { - if (!('token' in value) || value['token'] === undefined) return false; - if (!('balance' in value) || value['balance'] === undefined) return false; - return true; -} - -export function BalanceFromJSON(json: any): Balance { - return BalanceFromJSONTyped(json, false); -} - -export function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance { - if (json == null) { - return json; - } - return { - - 'token': TokenFromJSON(json['token']), - 'balance': json['balance'], - }; -} - -export function BalanceToJSON(json: any): Balance { - return BalanceToJSONTyped(json, false); -} - -export function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'token': TokenToJSON(value['token']), - 'balance': value['balance'], - }; -} - diff --git a/src/service/src/models/BasicEvent.ts b/src/service/src/models/BasicEvent.ts deleted file mode 100644 index eae453d..0000000 --- a/src/service/src/models/BasicEvent.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { EventDomain } from './EventDomain'; -import { - EventDomainFromJSON, - EventDomainFromJSONTyped, - EventDomainToJSON, - EventDomainToJSONTyped, -} from './EventDomain'; -import type { EventType } from './EventType'; -import { - EventTypeFromJSON, - EventTypeFromJSONTyped, - EventTypeToJSON, - EventTypeToJSONTyped, -} from './EventType'; -import type { Log } from './Log'; -import { - LogFromJSON, - LogFromJSONTyped, - LogToJSON, - LogToJSONTyped, -} from './Log'; -import type { EventName } from './EventName'; -import { - EventNameFromJSON, - EventNameFromJSONTyped, - EventNameToJSON, - EventNameToJSONTyped, -} from './EventName'; - -/** - * - * @export - * @interface BasicEvent - */ -export interface BasicEvent { - /** - * Identifier for the event. - * @type {number} - * @memberof BasicEvent - */ - id: number; - /** - * - * @type {EventName} - * @memberof BasicEvent - */ - name: EventName; - /** - * - * @type {EventType} - * @memberof BasicEvent - */ - type: EventType; - /** - * - * @type {EventDomain} - * @memberof BasicEvent - */ - domain: EventDomain; - /** - * - * @type {Log} - * @memberof BasicEvent - */ - raw: Log; -} - - - -/** - * Check if a given object implements the BasicEvent interface. - */ -export function instanceOfBasicEvent(value: object): value is BasicEvent { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('name' in value) || value['name'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('domain' in value) || value['domain'] === undefined) return false; - if (!('raw' in value) || value['raw'] === undefined) return false; - return true; -} - -export function BasicEventFromJSON(json: any): BasicEvent { - return BasicEventFromJSONTyped(json, false); -} - -export function BasicEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): BasicEvent { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'name': EventNameFromJSON(json['name']), - 'type': EventTypeFromJSON(json['type']), - 'domain': EventDomainFromJSON(json['domain']), - 'raw': LogFromJSON(json['raw']), - }; -} - -export function BasicEventToJSON(json: any): BasicEvent { - return BasicEventToJSONTyped(json, false); -} - -export function BasicEventToJSONTyped(value?: BasicEvent | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'name': EventNameToJSON(value['name']), - 'type': EventTypeToJSON(value['type']), - 'domain': EventDomainToJSON(value['domain']), - 'raw': LogToJSON(value['raw']), - }; -} - diff --git a/src/service/src/models/ChainActivity.ts b/src/service/src/models/ChainActivity.ts deleted file mode 100644 index 15462f8..0000000 --- a/src/service/src/models/ChainActivity.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ChainActivityStep } from './ChainActivityStep'; -import { - ChainActivityStepFromJSON, - ChainActivityStepFromJSONTyped, - ChainActivityStepToJSON, - ChainActivityStepToJSONTyped, -} from './ChainActivityStep'; - -/** - * - * @export - * @interface ChainActivity - */ -export interface ChainActivity { - /** - * - * @type {number} - * @memberof ChainActivity - */ - stepNumber: number; - /** - * - * @type {number} - * @memberof ChainActivity - */ - numberOfSteps: number; - /** - * - * @type {Array} - * @memberof ChainActivity - */ - steps: Array; -} - -/** - * Check if a given object implements the ChainActivity interface. - */ -export function instanceOfChainActivity(value: object): value is ChainActivity { - if (!('stepNumber' in value) || value['stepNumber'] === undefined) return false; - if (!('numberOfSteps' in value) || value['numberOfSteps'] === undefined) return false; - if (!('steps' in value) || value['steps'] === undefined) return false; - return true; -} - -export function ChainActivityFromJSON(json: any): ChainActivity { - return ChainActivityFromJSONTyped(json, false); -} - -export function ChainActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivity { - if (json == null) { - return json; - } - return { - - 'stepNumber': json['stepNumber'], - 'numberOfSteps': json['numberOfSteps'], - 'steps': ((json['steps'] as Array).map(ChainActivityStepFromJSON)), - }; -} - -export function ChainActivityToJSON(json: any): ChainActivity { - return ChainActivityToJSONTyped(json, false); -} - -export function ChainActivityToJSONTyped(value?: ChainActivity | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'stepNumber': value['stepNumber'], - 'numberOfSteps': value['numberOfSteps'], - 'steps': ((value['steps'] as Array).map(ChainActivityStepToJSON)), - }; -} - diff --git a/src/service/src/models/ChainActivityStep.ts b/src/service/src/models/ChainActivityStep.ts deleted file mode 100644 index 7502448..0000000 --- a/src/service/src/models/ChainActivityStep.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ChainActivityStepData } from './ChainActivityStepData'; -import { - ChainActivityStepDataFromJSON, - ChainActivityStepDataFromJSONTyped, - ChainActivityStepDataToJSON, - ChainActivityStepDataToJSONTyped, -} from './ChainActivityStepData'; - -/** - * - * @export - * @interface ChainActivityStep - */ -export interface ChainActivityStep { - /** - * - * @type {string} - * @memberof ChainActivityStep - */ - type: ChainActivityStepTypeEnum; - /** - * - * @type {ChainActivityStepData} - * @memberof ChainActivityStep - */ - data: ChainActivityStepData; -} - - -/** - * @export - */ -export const ChainActivityStepTypeEnum = { - PREPARED_TX: 'PreparedTx', - EIP712_SIGN_REQUEST: 'EIP712SignRequest', - PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' -} as const; -export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; - - -/** - * Check if a given object implements the ChainActivityStep interface. - */ -export function instanceOfChainActivityStep(value: object): value is ChainActivityStep { - if (!('type' in value) || value['type'] === undefined) return false; - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function ChainActivityStepFromJSON(json: any): ChainActivityStep { - return ChainActivityStepFromJSONTyped(json, false); -} - -export function ChainActivityStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStep { - if (json == null) { - return json; - } - return { - - 'type': json['type'], - 'data': ChainActivityStepDataFromJSON(json['data']), - }; -} - -export function ChainActivityStepToJSON(json: any): ChainActivityStep { - return ChainActivityStepToJSONTyped(json, false); -} - -export function ChainActivityStepToJSONTyped(value?: ChainActivityStep | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': value['type'], - 'data': ChainActivityStepDataToJSON(value['data']), - }; -} - diff --git a/src/service/src/models/ChainActivityStepData.ts b/src/service/src/models/ChainActivityStepData.ts deleted file mode 100644 index 85bb0b3..0000000 --- a/src/service/src/models/ChainActivityStepData.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import type { EIP712SignRequest } from './EIP712SignRequest'; -import { - instanceOfEIP712SignRequest, - EIP712SignRequestFromJSON, - EIP712SignRequestFromJSONTyped, - EIP712SignRequestToJSON, -} from './EIP712SignRequest'; -import type { PersonalSignRequest } from './PersonalSignRequest'; -import { - instanceOfPersonalSignRequest, - PersonalSignRequestFromJSON, - PersonalSignRequestFromJSONTyped, - PersonalSignRequestToJSON, -} from './PersonalSignRequest'; -import type { PreparedTx } from './PreparedTx'; -import { - instanceOfPreparedTx, - PreparedTxFromJSON, - PreparedTxFromJSONTyped, - PreparedTxToJSON, -} from './PreparedTx'; - -/** - * @type ChainActivityStepData - * - * @export - */ -export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; - -export function ChainActivityStepDataFromJSON(json: any): ChainActivityStepData { - return ChainActivityStepDataFromJSONTyped(json, false); -} - -export function ChainActivityStepDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStepData { - if (json == null) { - return json; - } - if (instanceOfEIP712SignRequest(json)) { - return EIP712SignRequestFromJSONTyped(json, true); - } - if (instanceOfPersonalSignRequest(json)) { - return PersonalSignRequestFromJSONTyped(json, true); - } - if (instanceOfPreparedTx(json)) { - return PreparedTxFromJSONTyped(json, true); - } - - return {} as any; -} - -export function ChainActivityStepDataToJSON(json: any): any { - return ChainActivityStepDataToJSONTyped(json, false); -} - -export function ChainActivityStepDataToJSONTyped(value?: ChainActivityStepData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - if (instanceOfEIP712SignRequest(value)) { - return EIP712SignRequestToJSON(value as EIP712SignRequest); - } - if (instanceOfPersonalSignRequest(value)) { - return PersonalSignRequestToJSON(value as PersonalSignRequest); - } - if (instanceOfPreparedTx(value)) { - return PreparedTxToJSON(value as PreparedTx); - } - - return {}; -} - diff --git a/src/service/src/models/DutchAmount.ts b/src/service/src/models/DutchAmount.ts deleted file mode 100644 index 1b6b53d..0000000 --- a/src/service/src/models/DutchAmount.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface DutchAmount - */ -export interface DutchAmount { - /** - * - * @type {Token} - * @memberof DutchAmount - */ - token: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DutchAmount - */ - startAmount: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DutchAmount - */ - endAmount: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof DutchAmount - */ - recipient?: string; -} - -/** - * Check if a given object implements the DutchAmount interface. - */ -export function instanceOfDutchAmount(value: object): value is DutchAmount { - if (!('token' in value) || value['token'] === undefined) return false; - if (!('startAmount' in value) || value['startAmount'] === undefined) return false; - if (!('endAmount' in value) || value['endAmount'] === undefined) return false; - return true; -} - -export function DutchAmountFromJSON(json: any): DutchAmount { - return DutchAmountFromJSONTyped(json, false); -} - -export function DutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): DutchAmount { - if (json == null) { - return json; - } - return { - - 'token': TokenFromJSON(json['token']), - 'startAmount': json['startAmount'], - 'endAmount': json['endAmount'], - 'recipient': json['recipient'] == null ? undefined : json['recipient'], - }; -} - -export function DutchAmountToJSON(json: any): DutchAmount { - return DutchAmountToJSONTyped(json, false); -} - -export function DutchAmountToJSONTyped(value?: DutchAmount | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'token': TokenToJSON(value['token']), - 'startAmount': value['startAmount'], - 'endAmount': value['endAmount'], - 'recipient': value['recipient'], - }; -} - diff --git a/src/service/src/models/EIP712SignRequest.ts b/src/service/src/models/EIP712SignRequest.ts deleted file mode 100644 index 5939de8..0000000 --- a/src/service/src/models/EIP712SignRequest.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { TypedData } from './TypedData'; -import { - TypedDataFromJSON, - TypedDataFromJSONTyped, - TypedDataToJSON, - TypedDataToJSONTyped, -} from './TypedData'; - -/** - * - * @export - * @interface EIP712SignRequest - */ -export interface EIP712SignRequest { - /** - * The name of the EIP712 signature - * @type {string} - * @memberof EIP712SignRequest - */ - name: string; - /** - * - * @type {TypedData} - * @memberof EIP712SignRequest - */ - typedData: TypedData; - /** - * The hash of the EIP712 signature that needs to be signed - * @type {string} - * @memberof EIP712SignRequest - */ - hash: string; -} - -/** - * Check if a given object implements the EIP712SignRequest interface. - */ -export function instanceOfEIP712SignRequest(value: object): value is EIP712SignRequest { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('typedData' in value) || value['typedData'] === undefined) return false; - if (!('hash' in value) || value['hash'] === undefined) return false; - return true; -} - -export function EIP712SignRequestFromJSON(json: any): EIP712SignRequest { - return EIP712SignRequestFromJSONTyped(json, false); -} - -export function EIP712SignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EIP712SignRequest { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'typedData': TypedDataFromJSON(json['typedData']), - 'hash': json['hash'], - }; -} - -export function EIP712SignRequestToJSON(json: any): EIP712SignRequest { - return EIP712SignRequestToJSONTyped(json, false); -} - -export function EIP712SignRequestToJSONTyped(value?: EIP712SignRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'typedData': TypedDataToJSON(value['typedData']), - 'hash': value['hash'], - }; -} - diff --git a/src/service/src/models/ErrorMessage.ts b/src/service/src/models/ErrorMessage.ts deleted file mode 100644 index 3e8b518..0000000 --- a/src/service/src/models/ErrorMessage.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ErrorMessage - */ -export interface ErrorMessage { - /** - * User-friendly error message - * @type {string} - * @memberof ErrorMessage - */ - userMessage: string; - /** - * - * @type {Array} - * @memberof ErrorMessage - */ - solutions: Array; -} - -/** - * Check if a given object implements the ErrorMessage interface. - */ -export function instanceOfErrorMessage(value: object): value is ErrorMessage { - if (!('userMessage' in value) || value['userMessage'] === undefined) return false; - if (!('solutions' in value) || value['solutions'] === undefined) return false; - return true; -} - -export function ErrorMessageFromJSON(json: any): ErrorMessage { - return ErrorMessageFromJSONTyped(json, false); -} - -export function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage { - if (json == null) { - return json; - } - return { - - 'userMessage': json['userMessage'], - 'solutions': json['solutions'], - }; -} - -export function ErrorMessageToJSON(json: any): ErrorMessage { - return ErrorMessageToJSONTyped(json, false); -} - -export function ErrorMessageToJSONTyped(value?: ErrorMessage | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'userMessage': value['userMessage'], - 'solutions': value['solutions'], - }; -} - diff --git a/src/service/src/models/EventDetailsResponse.ts b/src/service/src/models/EventDetailsResponse.ts deleted file mode 100644 index c6cd349..0000000 --- a/src/service/src/models/EventDetailsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Log } from './Log'; -import { - LogFromJSON, - LogFromJSONTyped, - LogToJSON, - LogToJSONTyped, -} from './Log'; - -/** - * - * @export - * @interface EventDetailsResponse - */ -export interface EventDetailsResponse { - /** - * - * @type {Array} - * @memberof EventDetailsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the EventDetailsResponse interface. - */ -export function instanceOfEventDetailsResponse(value: object): value is EventDetailsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function EventDetailsResponseFromJSON(json: any): EventDetailsResponse { - return EventDetailsResponseFromJSONTyped(json, false); -} - -export function EventDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDetailsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(LogFromJSON)), - }; -} - -export function EventDetailsResponseToJSON(json: any): EventDetailsResponse { - return EventDetailsResponseToJSONTyped(json, false); -} - -export function EventDetailsResponseToJSONTyped(value?: EventDetailsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(LogToJSON)), - }; -} - diff --git a/src/service/src/models/EventDomain.ts b/src/service/src/models/EventDomain.ts deleted file mode 100644 index 31acaca..0000000 --- a/src/service/src/models/EventDomain.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * The domain of the event. - * @export - */ -export const EventDomain = { - STABLE_COIN_SYSTEM: 'stableCoinSystem', - LENDINGPOOL: 'lendingpool', - CHAINLINK: 'chainlink', - UNISWAP_V3: 'uniswapV3' -} as const; -export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; - - -export function instanceOfEventDomain(value: any): boolean { - for (const key in EventDomain) { - if (Object.prototype.hasOwnProperty.call(EventDomain, key)) { - if (EventDomain[key as keyof typeof EventDomain] === value) { - return true; - } - } - } - return false; -} - -export function EventDomainFromJSON(json: any): EventDomain { - return EventDomainFromJSONTyped(json, false); -} - -export function EventDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDomain { - return json as EventDomain; -} - -export function EventDomainToJSON(value?: EventDomain | null): any { - return value as any; -} - -export function EventDomainToJSONTyped(value: any, ignoreDiscriminator: boolean): EventDomain { - return value as EventDomain; -} - diff --git a/src/service/src/models/EventName.ts b/src/service/src/models/EventName.ts deleted file mode 100644 index 0834391..0000000 --- a/src/service/src/models/EventName.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const EventName = { - VAULTS_REPAY: 'VaultsRepay', - VAULTS_WITHDRAW: 'VaultsWithdraw', - VAULTS_DEPOSIT: 'VaultsDeposit', - VAULTS_MINT: 'VaultsMint', - VAULTS_KICK: 'VaultsKick', - VAULTS_TAKE: 'VaultsTake', - VAULTS_REDO: 'VaultsRedo', - VAULTS_YANK: 'VaultsYank', - LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', - LENDINGPOOL_REPAY: 'LendingpoolRepay', - LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', - LENDINGPOOL_BORROW: 'LendingpoolBorrow', - FILE: 'File', - PERMISSION: 'Permission', - MEDIAN: 'Median', - UNKNOWN: 'Unknown' -} as const; -export type EventName = typeof EventName[keyof typeof EventName]; - - -export function instanceOfEventName(value: any): boolean { - for (const key in EventName) { - if (Object.prototype.hasOwnProperty.call(EventName, key)) { - if (EventName[key as keyof typeof EventName] === value) { - return true; - } - } - } - return false; -} - -export function EventNameFromJSON(json: any): EventName { - return EventNameFromJSONTyped(json, false); -} - -export function EventNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventName { - return json as EventName; -} - -export function EventNameToJSON(value?: EventName | null): any { - return value as any; -} - -export function EventNameToJSONTyped(value: any, ignoreDiscriminator: boolean): EventName { - return value as EventName; -} - diff --git a/src/service/src/models/EventType.ts b/src/service/src/models/EventType.ts deleted file mode 100644 index ed54f25..0000000 --- a/src/service/src/models/EventType.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * The type of the event. who has triggered the event. - * @export - */ -export const EventType = { - EXECUTIVE: 'executive', - ORACLE: 'oracle', - USER: 'user' -} as const; -export type EventType = typeof EventType[keyof typeof EventType]; - - -export function instanceOfEventType(value: any): boolean { - for (const key in EventType) { - if (Object.prototype.hasOwnProperty.call(EventType, key)) { - if (EventType[key as keyof typeof EventType] === value) { - return true; - } - } - } - return false; -} - -export function EventTypeFromJSON(json: any): EventType { - return EventTypeFromJSONTyped(json, false); -} - -export function EventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventType { - return json as EventType; -} - -export function EventTypeToJSON(value?: EventType | null): any { - return value as any; -} - -export function EventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): EventType { - return value as EventType; -} - diff --git a/src/service/src/models/ExtendedEvent.ts b/src/service/src/models/ExtendedEvent.ts deleted file mode 100644 index 2258599..0000000 --- a/src/service/src/models/ExtendedEvent.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { EventDomain } from './EventDomain'; -import { - EventDomainFromJSON, - EventDomainFromJSONTyped, - EventDomainToJSON, - EventDomainToJSONTyped, -} from './EventDomain'; -import type { EventType } from './EventType'; -import { - EventTypeFromJSON, - EventTypeFromJSONTyped, - EventTypeToJSON, - EventTypeToJSONTyped, -} from './EventType'; -import type { Log } from './Log'; -import { - LogFromJSON, - LogFromJSONTyped, - LogToJSON, - LogToJSONTyped, -} from './Log'; -import type { EventName } from './EventName'; -import { - EventNameFromJSON, - EventNameFromJSONTyped, - EventNameToJSON, - EventNameToJSONTyped, -} from './EventName'; - -/** - * - * @export - * @interface ExtendedEvent - */ -export interface ExtendedEvent { - /** - * - * @type {EventDomain} - * @memberof ExtendedEvent - */ - domain: EventDomain; - /** - * Identifier for the event. - * @type {number} - * @memberof ExtendedEvent - */ - id: number; - /** - * - * @type {EventName} - * @memberof ExtendedEvent - */ - name: EventName; - /** - * - * @type {Log} - * @memberof ExtendedEvent - */ - raw: Log; - /** - * - * @type {EventType} - * @memberof ExtendedEvent - */ - type: EventType; - /** - * The payload of the event. The payload is a JSON-marshalled - * @type {{ [key: string]: any | undefined; }} - * @memberof ExtendedEvent - */ - payload: { [key: string]: any | undefined; }; -} - - - -/** - * Check if a given object implements the ExtendedEvent interface. - */ -export function instanceOfExtendedEvent(value: object): value is ExtendedEvent { - if (!('domain' in value) || value['domain'] === undefined) return false; - if (!('id' in value) || value['id'] === undefined) return false; - if (!('name' in value) || value['name'] === undefined) return false; - if (!('raw' in value) || value['raw'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('payload' in value) || value['payload'] === undefined) return false; - return true; -} - -export function ExtendedEventFromJSON(json: any): ExtendedEvent { - return ExtendedEventFromJSONTyped(json, false); -} - -export function ExtendedEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtendedEvent { - if (json == null) { - return json; - } - return { - - 'domain': EventDomainFromJSON(json['domain']), - 'id': json['id'], - 'name': EventNameFromJSON(json['name']), - 'raw': LogFromJSON(json['raw']), - 'type': EventTypeFromJSON(json['type']), - 'payload': json['payload'], - }; -} - -export function ExtendedEventToJSON(json: any): ExtendedEvent { - return ExtendedEventToJSONTyped(json, false); -} - -export function ExtendedEventToJSONTyped(value?: ExtendedEvent | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'domain': EventDomainToJSON(value['domain']), - 'id': value['id'], - 'name': EventNameToJSON(value['name']), - 'raw': LogToJSON(value['raw']), - 'type': EventTypeToJSON(value['type']), - 'payload': value['payload'], - }; -} - diff --git a/src/service/src/models/FormattedReserveData.ts b/src/service/src/models/FormattedReserveData.ts deleted file mode 100644 index 958da85..0000000 --- a/src/service/src/models/FormattedReserveData.ts +++ /dev/null @@ -1,254 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface FormattedReserveData - */ -export interface FormattedReserveData { - /** - * Identifier for the reserve data. - * @type {string} - * @memberof FormattedReserveData - */ - id: string; - /** - * - * @type {Token} - * @memberof FormattedReserveData - */ - underlyingAsset: Token; - /** - * Address of the associated zToken contract in hexadecimal format. - * @type {string} - * @memberof FormattedReserveData - */ - zTokenAddress: string; - /** - * Address of the associated variable debt token contract in hexadecimal format. - * @type {string} - * @memberof FormattedReserveData - */ - variableDebtTokenAddress: string; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - borrowingEnabled: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - isActive: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - isFrozen: boolean; - /** - * - * @type {boolean} - * @memberof FormattedReserveData - */ - usageAsCollateralEnabled: boolean; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveFactor: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - baseLTVasCollateral: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveLiquidationThreshold: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - reserveLiquidationBonus: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - utilizationRate: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - totalDebt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - totalLiquidity: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - availableLiquidity: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - supplyAPY: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - supplyAPR: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - variableBorrowAPY: string; - /** - * - * @type {string} - * @memberof FormattedReserveData - */ - variableBorrowAPR: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof FormattedReserveData - */ - price: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the FormattedReserveData interface. - */ -export function instanceOfFormattedReserveData(value: object): value is FormattedReserveData { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) return false; - if (!('zTokenAddress' in value) || value['zTokenAddress'] === undefined) return false; - if (!('variableDebtTokenAddress' in value) || value['variableDebtTokenAddress'] === undefined) return false; - if (!('borrowingEnabled' in value) || value['borrowingEnabled'] === undefined) return false; - if (!('isActive' in value) || value['isActive'] === undefined) return false; - if (!('isFrozen' in value) || value['isFrozen'] === undefined) return false; - if (!('usageAsCollateralEnabled' in value) || value['usageAsCollateralEnabled'] === undefined) return false; - if (!('reserveFactor' in value) || value['reserveFactor'] === undefined) return false; - if (!('baseLTVasCollateral' in value) || value['baseLTVasCollateral'] === undefined) return false; - if (!('reserveLiquidationThreshold' in value) || value['reserveLiquidationThreshold'] === undefined) return false; - if (!('reserveLiquidationBonus' in value) || value['reserveLiquidationBonus'] === undefined) return false; - if (!('utilizationRate' in value) || value['utilizationRate'] === undefined) return false; - if (!('totalDebt' in value) || value['totalDebt'] === undefined) return false; - if (!('totalLiquidity' in value) || value['totalLiquidity'] === undefined) return false; - if (!('availableLiquidity' in value) || value['availableLiquidity'] === undefined) return false; - if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) return false; - if (!('supplyAPR' in value) || value['supplyAPR'] === undefined) return false; - if (!('variableBorrowAPY' in value) || value['variableBorrowAPY'] === undefined) return false; - if (!('variableBorrowAPR' in value) || value['variableBorrowAPR'] === undefined) return false; - if (!('price' in value) || value['price'] === undefined) return false; - return true; -} - -export function FormattedReserveDataFromJSON(json: any): FormattedReserveData { - return FormattedReserveDataFromJSONTyped(json, false); -} - -export function FormattedReserveDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormattedReserveData { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'underlyingAsset': TokenFromJSON(json['underlyingAsset']), - 'zTokenAddress': json['zTokenAddress'], - 'variableDebtTokenAddress': json['variableDebtTokenAddress'], - 'borrowingEnabled': json['borrowingEnabled'], - 'isActive': json['isActive'], - 'isFrozen': json['isFrozen'], - 'usageAsCollateralEnabled': json['usageAsCollateralEnabled'], - 'reserveFactor': json['reserveFactor'], - 'baseLTVasCollateral': json['baseLTVasCollateral'], - 'reserveLiquidationThreshold': json['reserveLiquidationThreshold'], - 'reserveLiquidationBonus': json['reserveLiquidationBonus'], - 'utilizationRate': json['utilizationRate'], - 'totalDebt': json['totalDebt'], - 'totalLiquidity': json['totalLiquidity'], - 'availableLiquidity': json['availableLiquidity'], - 'supplyAPY': json['supplyAPY'], - 'supplyAPR': json['supplyAPR'], - 'variableBorrowAPY': json['variableBorrowAPY'], - 'variableBorrowAPR': json['variableBorrowAPR'], - 'price': json['price'], - }; -} - -export function FormattedReserveDataToJSON(json: any): FormattedReserveData { - return FormattedReserveDataToJSONTyped(json, false); -} - -export function FormattedReserveDataToJSONTyped(value?: FormattedReserveData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'underlyingAsset': TokenToJSON(value['underlyingAsset']), - 'zTokenAddress': value['zTokenAddress'], - 'variableDebtTokenAddress': value['variableDebtTokenAddress'], - 'borrowingEnabled': value['borrowingEnabled'], - 'isActive': value['isActive'], - 'isFrozen': value['isFrozen'], - 'usageAsCollateralEnabled': value['usageAsCollateralEnabled'], - 'reserveFactor': value['reserveFactor'], - 'baseLTVasCollateral': value['baseLTVasCollateral'], - 'reserveLiquidationThreshold': value['reserveLiquidationThreshold'], - 'reserveLiquidationBonus': value['reserveLiquidationBonus'], - 'utilizationRate': value['utilizationRate'], - 'totalDebt': value['totalDebt'], - 'totalLiquidity': value['totalLiquidity'], - 'availableLiquidity': value['availableLiquidity'], - 'supplyAPY': value['supplyAPY'], - 'supplyAPR': value['supplyAPR'], - 'variableBorrowAPY': value['variableBorrowAPY'], - 'variableBorrowAPR': value['variableBorrowAPR'], - 'price': value['price'], - }; -} - diff --git a/src/service/src/models/Ilk.ts b/src/service/src/models/Ilk.ts deleted file mode 100644 index f71edf9..0000000 --- a/src/service/src/models/Ilk.ts +++ /dev/null @@ -1,238 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; - -/** - * - * @export - * @interface Ilk - */ -export interface Ilk { - /** - * Name of the ILK - * @type {string} - * @memberof Ilk - */ - name: string; - /** - * - * @type {Symbol} - * @memberof Ilk - */ - symbol: Symbol; - /** - * Minimum Collateralization Ratio - * @type {string} - * @memberof Ilk - */ - minimumCollateralizationRatio: string; - /** - * Maximum Loan To Value - * @type {string} - * @memberof Ilk - */ - maximumLoanToValue: string; - /** - * Liquidation Penalty - * @type {string} - * @memberof Ilk - */ - liquidationPenalty: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - debtCeiling: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - debt: { [key: string]: string | undefined; }; - /** - * Annual Stability Fee - * @type {string} - * @memberof Ilk - */ - annualStabilityFee: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - dustLimit: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - price: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - nextPrice: { [key: string]: string | undefined; }; - /** - * Join Address - * @type {string} - * @memberof Ilk - */ - join: string; - /** - * Median Address - * @type {string} - * @memberof Ilk - */ - median: string; - /** - * Gem Address - * @type {string} - * @memberof Ilk - */ - gem: string; - /** - * Clipper Address - * @type {string} - * @memberof Ilk - */ - clipper: string; - /** - * Pip Address - * @type {string} - * @memberof Ilk - */ - pip: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - hole: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - dirt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Ilk - */ - availableToBorrow: { [key: string]: string | undefined; }; -} - - - -/** - * Check if a given object implements the Ilk interface. - */ -export function instanceOfIlk(value: object): value is Ilk { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('minimumCollateralizationRatio' in value) || value['minimumCollateralizationRatio'] === undefined) return false; - if (!('maximumLoanToValue' in value) || value['maximumLoanToValue'] === undefined) return false; - if (!('liquidationPenalty' in value) || value['liquidationPenalty'] === undefined) return false; - if (!('debtCeiling' in value) || value['debtCeiling'] === undefined) return false; - if (!('debt' in value) || value['debt'] === undefined) return false; - if (!('annualStabilityFee' in value) || value['annualStabilityFee'] === undefined) return false; - if (!('dustLimit' in value) || value['dustLimit'] === undefined) return false; - if (!('price' in value) || value['price'] === undefined) return false; - if (!('nextPrice' in value) || value['nextPrice'] === undefined) return false; - if (!('join' in value) || value['join'] === undefined) return false; - if (!('median' in value) || value['median'] === undefined) return false; - if (!('gem' in value) || value['gem'] === undefined) return false; - if (!('clipper' in value) || value['clipper'] === undefined) return false; - if (!('pip' in value) || value['pip'] === undefined) return false; - if (!('hole' in value) || value['hole'] === undefined) return false; - if (!('dirt' in value) || value['dirt'] === undefined) return false; - if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) return false; - return true; -} - -export function IlkFromJSON(json: any): Ilk { - return IlkFromJSONTyped(json, false); -} - -export function IlkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ilk { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'symbol': SymbolFromJSON(json['symbol']), - 'minimumCollateralizationRatio': json['minimumCollateralizationRatio'], - 'maximumLoanToValue': json['maximumLoanToValue'], - 'liquidationPenalty': json['liquidationPenalty'], - 'debtCeiling': json['debtCeiling'], - 'debt': json['debt'], - 'annualStabilityFee': json['annualStabilityFee'], - 'dustLimit': json['dustLimit'], - 'price': json['price'], - 'nextPrice': json['nextPrice'], - 'join': json['join'], - 'median': json['median'], - 'gem': json['gem'], - 'clipper': json['clipper'], - 'pip': json['pip'], - 'hole': json['hole'], - 'dirt': json['dirt'], - 'availableToBorrow': json['availableToBorrow'], - }; -} - -export function IlkToJSON(json: any): Ilk { - return IlkToJSONTyped(json, false); -} - -export function IlkToJSONTyped(value?: Ilk | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'symbol': SymbolToJSON(value['symbol']), - 'minimumCollateralizationRatio': value['minimumCollateralizationRatio'], - 'maximumLoanToValue': value['maximumLoanToValue'], - 'liquidationPenalty': value['liquidationPenalty'], - 'debtCeiling': value['debtCeiling'], - 'debt': value['debt'], - 'annualStabilityFee': value['annualStabilityFee'], - 'dustLimit': value['dustLimit'], - 'price': value['price'], - 'nextPrice': value['nextPrice'], - 'join': value['join'], - 'median': value['median'], - 'gem': value['gem'], - 'clipper': value['clipper'], - 'pip': value['pip'], - 'hole': value['hole'], - 'dirt': value['dirt'], - 'availableToBorrow': value['availableToBorrow'], - }; -} - diff --git a/src/service/src/models/IlksResponse.ts b/src/service/src/models/IlksResponse.ts deleted file mode 100644 index 2006f9d..0000000 --- a/src/service/src/models/IlksResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Ilk } from './Ilk'; -import { - IlkFromJSON, - IlkFromJSONTyped, - IlkToJSON, - IlkToJSONTyped, -} from './Ilk'; - -/** - * - * @export - * @interface IlksResponse - */ -export interface IlksResponse { - /** - * - * @type {Array} - * @memberof IlksResponse - */ - data: Array; -} - -/** - * Check if a given object implements the IlksResponse interface. - */ -export function instanceOfIlksResponse(value: object): value is IlksResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function IlksResponseFromJSON(json: any): IlksResponse { - return IlksResponseFromJSONTyped(json, false); -} - -export function IlksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IlksResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(IlkFromJSON)), - }; -} - -export function IlksResponseToJSON(json: any): IlksResponse { - return IlksResponseToJSONTyped(json, false); -} - -export function IlksResponseToJSONTyped(value?: IlksResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(IlkToJSON)), - }; -} - diff --git a/src/service/src/models/LendingpoolBorrow.ts b/src/service/src/models/LendingpoolBorrow.ts deleted file mode 100644 index 82c6d8b..0000000 --- a/src/service/src/models/LendingpoolBorrow.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface LendingpoolBorrow - */ -export interface LendingpoolBorrow { - /** - * The Ethereum address of the user. - * @type {string} - * @memberof LendingpoolBorrow - */ - user: string; - /** - * - * @type {Token} - * @memberof LendingpoolBorrow - */ - underlyingAsset: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolBorrow - */ - amount: { [key: string]: string | undefined; }; - /** - * The borrow rate. - * @type {string} - * @memberof LendingpoolBorrow - */ - borrowRate: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolBorrow - */ - maxBorrowAmount: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the LendingpoolBorrow interface. - */ -export function instanceOfLendingpoolBorrow(value: object): value is LendingpoolBorrow { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('borrowRate' in value) || value['borrowRate'] === undefined) return false; - if (!('maxBorrowAmount' in value) || value['maxBorrowAmount'] === undefined) return false; - return true; -} - -export function LendingpoolBorrowFromJSON(json: any): LendingpoolBorrow { - return LendingpoolBorrowFromJSONTyped(json, false); -} - -export function LendingpoolBorrowFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrow { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'underlyingAsset': TokenFromJSON(json['underlyingAsset']), - 'amount': json['amount'], - 'borrowRate': json['borrowRate'], - 'maxBorrowAmount': json['maxBorrowAmount'], - }; -} - -export function LendingpoolBorrowToJSON(json: any): LendingpoolBorrow { - return LendingpoolBorrowToJSONTyped(json, false); -} - -export function LendingpoolBorrowToJSONTyped(value?: LendingpoolBorrow | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'underlyingAsset': TokenToJSON(value['underlyingAsset']), - 'amount': value['amount'], - 'borrowRate': value['borrowRate'], - 'maxBorrowAmount': value['maxBorrowAmount'], - }; -} - diff --git a/src/service/src/models/LendingpoolBorrowTxRequest.ts b/src/service/src/models/LendingpoolBorrowTxRequest.ts deleted file mode 100644 index e95c304..0000000 --- a/src/service/src/models/LendingpoolBorrowTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolBorrowTxRequest - */ -export interface LendingpoolBorrowTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - symbol: string; - /** - * The amount to borrow in native token units - * @type {string} - * @memberof LendingpoolBorrowTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the LendingpoolBorrowTxRequest interface. - */ -export function instanceOfLendingpoolBorrowTxRequest(value: object): value is LendingpoolBorrowTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - return true; -} - -export function LendingpoolBorrowTxRequestFromJSON(json: any): LendingpoolBorrowTxRequest { - return LendingpoolBorrowTxRequestFromJSONTyped(json, false); -} - -export function LendingpoolBorrowTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function LendingpoolBorrowTxRequestToJSON(json: any): LendingpoolBorrowTxRequest { - return LendingpoolBorrowTxRequestToJSONTyped(json, false); -} - -export function LendingpoolBorrowTxRequestToJSONTyped(value?: LendingpoolBorrowTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/LendingpoolBorrowTxResponse.ts b/src/service/src/models/LendingpoolBorrowTxResponse.ts deleted file mode 100644 index 7e979d7..0000000 --- a/src/service/src/models/LendingpoolBorrowTxResponse.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import { - LendingpoolTxResponseFromJSON, - LendingpoolTxResponseFromJSONTyped, - LendingpoolTxResponseToJSON, - LendingpoolTxResponseToJSONTyped, -} from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface LendingpoolBorrowTxResponse - */ -export interface LendingpoolBorrowTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolBorrowTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolBorrowTxResponse - */ - response?: LendingpoolTxResponse; -} - -/** - * Check if a given object implements the LendingpoolBorrowTxResponse interface. - */ -export function instanceOfLendingpoolBorrowTxResponse(value: object): value is LendingpoolBorrowTxResponse { - return true; -} - -export function LendingpoolBorrowTxResponseFromJSON(json: any): LendingpoolBorrowTxResponse { - return LendingpoolBorrowTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolBorrowTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - 'response': json['response'] == null ? undefined : LendingpoolTxResponseFromJSON(json['response']), - }; -} - -export function LendingpoolBorrowTxResponseToJSON(json: any): LendingpoolBorrowTxResponse { - return LendingpoolBorrowTxResponseToJSONTyped(json, false); -} - -export function LendingpoolBorrowTxResponseToJSONTyped(value?: LendingpoolBorrowTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - 'response': LendingpoolTxResponseToJSON(value['response']), - }; -} - diff --git a/src/service/src/models/LendingpoolDeposit.ts b/src/service/src/models/LendingpoolDeposit.ts deleted file mode 100644 index 20bfb6e..0000000 --- a/src/service/src/models/LendingpoolDeposit.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface LendingpoolDeposit - */ -export interface LendingpoolDeposit { - /** - * The Ethereum address of the user. - * @type {string} - * @memberof LendingpoolDeposit - */ - user: string; - /** - * - * @type {Token} - * @memberof LendingpoolDeposit - */ - underlyingAsset: Token; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LendingpoolDeposit - */ - amount: { [key: string]: string | undefined; }; - /** - * Whether the user has enabled the asset as collateral. - * @type {boolean} - * @memberof LendingpoolDeposit - */ - usageAsCollateralEnabledOnUser: boolean; - /** - * The supply APY. - * @type {string} - * @memberof LendingpoolDeposit - */ - supplyAPY: string; -} - -/** - * Check if a given object implements the LendingpoolDeposit interface. - */ -export function instanceOfLendingpoolDeposit(value: object): value is LendingpoolDeposit { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('usageAsCollateralEnabledOnUser' in value) || value['usageAsCollateralEnabledOnUser'] === undefined) return false; - if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) return false; - return true; -} - -export function LendingpoolDepositFromJSON(json: any): LendingpoolDeposit { - return LendingpoolDepositFromJSONTyped(json, false); -} - -export function LendingpoolDepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDeposit { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'underlyingAsset': TokenFromJSON(json['underlyingAsset']), - 'amount': json['amount'], - 'usageAsCollateralEnabledOnUser': json['usageAsCollateralEnabledOnUser'], - 'supplyAPY': json['supplyAPY'], - }; -} - -export function LendingpoolDepositToJSON(json: any): LendingpoolDeposit { - return LendingpoolDepositToJSONTyped(json, false); -} - -export function LendingpoolDepositToJSONTyped(value?: LendingpoolDeposit | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'underlyingAsset': TokenToJSON(value['underlyingAsset']), - 'amount': value['amount'], - 'usageAsCollateralEnabledOnUser': value['usageAsCollateralEnabledOnUser'], - 'supplyAPY': value['supplyAPY'], - }; -} - diff --git a/src/service/src/models/LendingpoolDepositTxRequest.ts b/src/service/src/models/LendingpoolDepositTxRequest.ts deleted file mode 100644 index 979e126..0000000 --- a/src/service/src/models/LendingpoolDepositTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolDepositTxRequest - */ -export interface LendingpoolDepositTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - symbol: string; - /** - * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance - * @type {string} - * @memberof LendingpoolDepositTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the LendingpoolDepositTxRequest interface. - */ -export function instanceOfLendingpoolDepositTxRequest(value: object): value is LendingpoolDepositTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - return true; -} - -export function LendingpoolDepositTxRequestFromJSON(json: any): LendingpoolDepositTxRequest { - return LendingpoolDepositTxRequestFromJSONTyped(json, false); -} - -export function LendingpoolDepositTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function LendingpoolDepositTxRequestToJSON(json: any): LendingpoolDepositTxRequest { - return LendingpoolDepositTxRequestToJSONTyped(json, false); -} - -export function LendingpoolDepositTxRequestToJSONTyped(value?: LendingpoolDepositTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/LendingpoolDepositTxResponse.ts b/src/service/src/models/LendingpoolDepositTxResponse.ts deleted file mode 100644 index 66a7f6c..0000000 --- a/src/service/src/models/LendingpoolDepositTxResponse.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import { - LendingpoolTxResponseFromJSON, - LendingpoolTxResponseFromJSONTyped, - LendingpoolTxResponseToJSON, - LendingpoolTxResponseToJSONTyped, -} from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface LendingpoolDepositTxResponse - */ -export interface LendingpoolDepositTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolDepositTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolDepositTxResponse - */ - response?: LendingpoolTxResponse; -} - -/** - * Check if a given object implements the LendingpoolDepositTxResponse interface. - */ -export function instanceOfLendingpoolDepositTxResponse(value: object): value is LendingpoolDepositTxResponse { - return true; -} - -export function LendingpoolDepositTxResponseFromJSON(json: any): LendingpoolDepositTxResponse { - return LendingpoolDepositTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolDepositTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - 'response': json['response'] == null ? undefined : LendingpoolTxResponseFromJSON(json['response']), - }; -} - -export function LendingpoolDepositTxResponseToJSON(json: any): LendingpoolDepositTxResponse { - return LendingpoolDepositTxResponseToJSONTyped(json, false); -} - -export function LendingpoolDepositTxResponseToJSONTyped(value?: LendingpoolDepositTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - 'response': LendingpoolTxResponseToJSON(value['response']), - }; -} - diff --git a/src/service/src/models/LendingpoolRepayTxRequest.ts b/src/service/src/models/LendingpoolRepayTxRequest.ts deleted file mode 100644 index 4f0e13e..0000000 --- a/src/service/src/models/LendingpoolRepayTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolRepayTxRequest - */ -export interface LendingpoolRepayTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - symbol: string; - /** - * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance - * @type {string} - * @memberof LendingpoolRepayTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the LendingpoolRepayTxRequest interface. - */ -export function instanceOfLendingpoolRepayTxRequest(value: object): value is LendingpoolRepayTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - return true; -} - -export function LendingpoolRepayTxRequestFromJSON(json: any): LendingpoolRepayTxRequest { - return LendingpoolRepayTxRequestFromJSONTyped(json, false); -} - -export function LendingpoolRepayTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function LendingpoolRepayTxRequestToJSON(json: any): LendingpoolRepayTxRequest { - return LendingpoolRepayTxRequestToJSONTyped(json, false); -} - -export function LendingpoolRepayTxRequestToJSONTyped(value?: LendingpoolRepayTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/LendingpoolRepayTxResponse.ts b/src/service/src/models/LendingpoolRepayTxResponse.ts deleted file mode 100644 index fa1db81..0000000 --- a/src/service/src/models/LendingpoolRepayTxResponse.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import { - LendingpoolTxResponseFromJSON, - LendingpoolTxResponseFromJSONTyped, - LendingpoolTxResponseToJSON, - LendingpoolTxResponseToJSONTyped, -} from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface LendingpoolRepayTxResponse - */ -export interface LendingpoolRepayTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolRepayTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolRepayTxResponse - */ - response?: LendingpoolTxResponse; -} - -/** - * Check if a given object implements the LendingpoolRepayTxResponse interface. - */ -export function instanceOfLendingpoolRepayTxResponse(value: object): value is LendingpoolRepayTxResponse { - return true; -} - -export function LendingpoolRepayTxResponseFromJSON(json: any): LendingpoolRepayTxResponse { - return LendingpoolRepayTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolRepayTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - 'response': json['response'] == null ? undefined : LendingpoolTxResponseFromJSON(json['response']), - }; -} - -export function LendingpoolRepayTxResponseToJSON(json: any): LendingpoolRepayTxResponse { - return LendingpoolRepayTxResponseToJSONTyped(json, false); -} - -export function LendingpoolRepayTxResponseToJSONTyped(value?: LendingpoolRepayTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - 'response': LendingpoolTxResponseToJSON(value['response']), - }; -} - diff --git a/src/service/src/models/LendingpoolStats.ts b/src/service/src/models/LendingpoolStats.ts deleted file mode 100644 index 97d8479..0000000 --- a/src/service/src/models/LendingpoolStats.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolStats - */ -export interface LendingpoolStats { - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalAvailable: any; - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalBorrows: any; - /** - * - * @type {any} - * @memberof LendingpoolStats - */ - totalMarketSize: any; -} - -/** - * Check if a given object implements the LendingpoolStats interface. - */ -export function instanceOfLendingpoolStats(value: object): value is LendingpoolStats { - if (!('totalAvailable' in value) || value['totalAvailable'] === undefined) return false; - if (!('totalBorrows' in value) || value['totalBorrows'] === undefined) return false; - if (!('totalMarketSize' in value) || value['totalMarketSize'] === undefined) return false; - return true; -} - -export function LendingpoolStatsFromJSON(json: any): LendingpoolStats { - return LendingpoolStatsFromJSONTyped(json, false); -} - -export function LendingpoolStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolStats { - if (json == null) { - return json; - } - return { - - 'totalAvailable': json['totalAvailable'], - 'totalBorrows': json['totalBorrows'], - 'totalMarketSize': json['totalMarketSize'], - }; -} - -export function LendingpoolStatsToJSON(json: any): LendingpoolStats { - return LendingpoolStatsToJSONTyped(json, false); -} - -export function LendingpoolStatsToJSONTyped(value?: LendingpoolStats | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'totalAvailable': value['totalAvailable'], - 'totalBorrows': value['totalBorrows'], - 'totalMarketSize': value['totalMarketSize'], - }; -} - diff --git a/src/service/src/models/LendingpoolTxResponse.ts b/src/service/src/models/LendingpoolTxResponse.ts deleted file mode 100644 index 397c7d2..0000000 --- a/src/service/src/models/LendingpoolTxResponse.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolTxResponse - */ -export interface LendingpoolTxResponse { - /** - * The health factor after the deposit - * @type {string} - * @memberof LendingpoolTxResponse - */ - nextHealthFactor?: string; -} - -/** - * Check if a given object implements the LendingpoolTxResponse interface. - */ -export function instanceOfLendingpoolTxResponse(value: object): value is LendingpoolTxResponse { - return true; -} - -export function LendingpoolTxResponseFromJSON(json: any): LendingpoolTxResponse { - return LendingpoolTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolTxResponse { - if (json == null) { - return json; - } - return { - - 'nextHealthFactor': json['nextHealthFactor'] == null ? undefined : json['nextHealthFactor'], - }; -} - -export function LendingpoolTxResponseToJSON(json: any): LendingpoolTxResponse { - return LendingpoolTxResponseToJSONTyped(json, false); -} - -export function LendingpoolTxResponseToJSONTyped(value?: LendingpoolTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'nextHealthFactor': value['nextHealthFactor'], - }; -} - diff --git a/src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts b/src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts deleted file mode 100644 index ac7ef79..0000000 --- a/src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolUseAssetAsCollateralTxRequest - */ -export interface LendingpoolUseAssetAsCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - user: string; - /** - * Symbol of asset - * @type {string} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - symbol: string; - /** - * Enable or disable the asset as collateral - * @type {boolean} - * @memberof LendingpoolUseAssetAsCollateralTxRequest - */ - enabled: boolean; -} - -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxRequest interface. - */ -export function instanceOfLendingpoolUseAssetAsCollateralTxRequest(value: object): value is LendingpoolUseAssetAsCollateralTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('enabled' in value) || value['enabled'] === undefined) return false; - return true; -} - -export function LendingpoolUseAssetAsCollateralTxRequestFromJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest { - return LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json, false); -} - -export function LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'symbol': json['symbol'], - 'enabled': json['enabled'], - }; -} - -export function LendingpoolUseAssetAsCollateralTxRequestToJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest { - return LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(json, false); -} - -export function LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'symbol': value['symbol'], - 'enabled': value['enabled'], - }; -} - diff --git a/src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts b/src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts deleted file mode 100644 index 620b6d2..0000000 --- a/src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import { - LendingpoolTxResponseFromJSON, - LendingpoolTxResponseFromJSONTyped, - LendingpoolTxResponseToJSON, - LendingpoolTxResponseToJSONTyped, -} from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface LendingpoolUseAssetAsCollateralTxResponse - */ -export interface LendingpoolUseAssetAsCollateralTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolUseAssetAsCollateralTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolUseAssetAsCollateralTxResponse - */ - response?: LendingpoolTxResponse; -} - -/** - * Check if a given object implements the LendingpoolUseAssetAsCollateralTxResponse interface. - */ -export function instanceOfLendingpoolUseAssetAsCollateralTxResponse(value: object): value is LendingpoolUseAssetAsCollateralTxResponse { - return true; -} - -export function LendingpoolUseAssetAsCollateralTxResponseFromJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse { - return LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - 'response': json['response'] == null ? undefined : LendingpoolTxResponseFromJSON(json['response']), - }; -} - -export function LendingpoolUseAssetAsCollateralTxResponseToJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse { - return LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(json, false); -} - -export function LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - 'response': LendingpoolTxResponseToJSON(value['response']), - }; -} - diff --git a/src/service/src/models/LendingpoolWithdrawTxRequest.ts b/src/service/src/models/LendingpoolWithdrawTxRequest.ts deleted file mode 100644 index 01c4a9a..0000000 --- a/src/service/src/models/LendingpoolWithdrawTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LendingpoolWithdrawTxRequest - */ -export interface LendingpoolWithdrawTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - user: string; - /** - * - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - symbol: string; - /** - * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance - * @type {string} - * @memberof LendingpoolWithdrawTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the LendingpoolWithdrawTxRequest interface. - */ -export function instanceOfLendingpoolWithdrawTxRequest(value: object): value is LendingpoolWithdrawTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - return true; -} - -export function LendingpoolWithdrawTxRequestFromJSON(json: any): LendingpoolWithdrawTxRequest { - return LendingpoolWithdrawTxRequestFromJSONTyped(json, false); -} - -export function LendingpoolWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'symbol': json['symbol'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function LendingpoolWithdrawTxRequestToJSON(json: any): LendingpoolWithdrawTxRequest { - return LendingpoolWithdrawTxRequestToJSONTyped(json, false); -} - -export function LendingpoolWithdrawTxRequestToJSONTyped(value?: LendingpoolWithdrawTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'symbol': value['symbol'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/LendingpoolWithdrawTxResponse.ts b/src/service/src/models/LendingpoolWithdrawTxResponse.ts deleted file mode 100644 index 3a9589f..0000000 --- a/src/service/src/models/LendingpoolWithdrawTxResponse.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; -import { - LendingpoolTxResponseFromJSON, - LendingpoolTxResponseFromJSONTyped, - LendingpoolTxResponseToJSON, - LendingpoolTxResponseToJSONTyped, -} from './LendingpoolTxResponse'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface LendingpoolWithdrawTxResponse - */ -export interface LendingpoolWithdrawTxResponse { - /** - * - * @type {ChainActivity} - * @memberof LendingpoolWithdrawTxResponse - */ - chainActivity?: ChainActivity; - /** - * - * @type {LendingpoolTxResponse} - * @memberof LendingpoolWithdrawTxResponse - */ - response?: LendingpoolTxResponse; -} - -/** - * Check if a given object implements the LendingpoolWithdrawTxResponse interface. - */ -export function instanceOfLendingpoolWithdrawTxResponse(value: object): value is LendingpoolWithdrawTxResponse { - return true; -} - -export function LendingpoolWithdrawTxResponseFromJSON(json: any): LendingpoolWithdrawTxResponse { - return LendingpoolWithdrawTxResponseFromJSONTyped(json, false); -} - -export function LendingpoolWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - 'response': json['response'] == null ? undefined : LendingpoolTxResponseFromJSON(json['response']), - }; -} - -export function LendingpoolWithdrawTxResponseToJSON(json: any): LendingpoolWithdrawTxResponse { - return LendingpoolWithdrawTxResponseToJSONTyped(json, false); -} - -export function LendingpoolWithdrawTxResponseToJSONTyped(value?: LendingpoolWithdrawTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - 'response': LendingpoolTxResponseToJSON(value['response']), - }; -} - diff --git a/src/service/src/models/Log.ts b/src/service/src/models/Log.ts deleted file mode 100644 index fc5962f..0000000 --- a/src/service/src/models/Log.ts +++ /dev/null @@ -1,163 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface Log - */ -export interface Log { - /** - * The name of the log - * @type {string} - * @memberof Log - */ - name: string; - /** - * The contract address - * @type {string} - * @memberof Log - */ - contract: string; - /** - * - * @type {Timestamp} - * @memberof Log - */ - timestamp: Timestamp; - /** - * The Ethereum address - * @type {string} - * @memberof Log - */ - address: string; - /** - * The block number - * @type {number} - * @memberof Log - */ - blockNumber: number; - /** - * The transaction hash - * @type {string} - * @memberof Log - */ - txHash: string; - /** - * The block hash - * @type {string} - * @memberof Log - */ - blockHash: string; - /** - * The index - * @type {number} - * @memberof Log - */ - index: number; - /** - * - * @type {Array} - * @memberof Log - */ - topics: Array; - /** - * The data of the log - * @type {string} - * @memberof Log - */ - data: string; - /** - * The decoded log, if available - * @type {{ [key: string]: string | undefined; }} - * @memberof Log - */ - decoded?: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the Log interface. - */ -export function instanceOfLog(value: object): value is Log { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('contract' in value) || value['contract'] === undefined) return false; - if (!('timestamp' in value) || value['timestamp'] === undefined) return false; - if (!('address' in value) || value['address'] === undefined) return false; - if (!('blockNumber' in value) || value['blockNumber'] === undefined) return false; - if (!('txHash' in value) || value['txHash'] === undefined) return false; - if (!('blockHash' in value) || value['blockHash'] === undefined) return false; - if (!('index' in value) || value['index'] === undefined) return false; - if (!('topics' in value) || value['topics'] === undefined) return false; - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function LogFromJSON(json: any): Log { - return LogFromJSONTyped(json, false); -} - -export function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'contract': json['contract'], - 'timestamp': TimestampFromJSON(json['timestamp']), - 'address': json['address'], - 'blockNumber': json['blockNumber'], - 'txHash': json['txHash'], - 'blockHash': json['blockHash'], - 'index': json['index'], - 'topics': json['topics'], - 'data': json['data'], - 'decoded': json['decoded'] == null ? undefined : json['decoded'], - }; -} - -export function LogToJSON(json: any): Log { - return LogToJSONTyped(json, false); -} - -export function LogToJSONTyped(value?: Log | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'contract': value['contract'], - 'timestamp': TimestampToJSON(value['timestamp']), - 'address': value['address'], - 'blockNumber': value['blockNumber'], - 'txHash': value['txHash'], - 'blockHash': value['blockHash'], - 'index': value['index'], - 'topics': value['topics'], - 'data': value['data'], - 'decoded': value['decoded'], - }; -} - diff --git a/src/service/src/models/MethodParameters.ts b/src/service/src/models/MethodParameters.ts deleted file mode 100644 index 4d817a3..0000000 --- a/src/service/src/models/MethodParameters.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface MethodParameters - */ -export interface MethodParameters { - /** - * - * @type {string} - * @memberof MethodParameters - */ - to: string; - /** - * - * @type {string} - * @memberof MethodParameters - */ - calldata: string; - /** - * - * @type {string} - * @memberof MethodParameters - */ - value: string; -} - -/** - * Check if a given object implements the MethodParameters interface. - */ -export function instanceOfMethodParameters(value: object): value is MethodParameters { - if (!('to' in value) || value['to'] === undefined) return false; - if (!('calldata' in value) || value['calldata'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - return true; -} - -export function MethodParametersFromJSON(json: any): MethodParameters { - return MethodParametersFromJSONTyped(json, false); -} - -export function MethodParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodParameters { - if (json == null) { - return json; - } - return { - - 'to': json['to'], - 'calldata': json['calldata'], - 'value': json['value'], - }; -} - -export function MethodParametersToJSON(json: any): MethodParameters { - return MethodParametersToJSONTyped(json, false); -} - -export function MethodParametersToJSONTyped(value?: MethodParameters | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'to': value['to'], - 'calldata': value['calldata'], - 'value': value['value'], - }; -} - diff --git a/src/service/src/models/ModelError.ts b/src/service/src/models/ModelError.ts deleted file mode 100644 index 78e17ea..0000000 --- a/src/service/src/models/ModelError.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * Error message - * @type {string} - * @memberof ModelError - */ - msg: string; - /** - * - * @type {Array} - * @memberof ModelError - */ - reasons: Array; -} - -/** - * Check if a given object implements the ModelError interface. - */ -export function instanceOfModelError(value: object): value is ModelError { - if (!('msg' in value) || value['msg'] === undefined) return false; - if (!('reasons' in value) || value['reasons'] === undefined) return false; - return true; -} - -export function ModelErrorFromJSON(json: any): ModelError { - return ModelErrorFromJSONTyped(json, false); -} - -export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError { - if (json == null) { - return json; - } - return { - - 'msg': json['msg'], - 'reasons': json['reasons'], - }; -} - -export function ModelErrorToJSON(json: any): ModelError { - return ModelErrorToJSONTyped(json, false); -} - -export function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'msg': value['msg'], - 'reasons': value['reasons'], - }; -} - diff --git a/src/service/src/models/Order.ts b/src/service/src/models/Order.ts deleted file mode 100644 index 0e344af..0000000 --- a/src/service/src/models/Order.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { RawDutchAmount } from './RawDutchAmount'; -import { - RawDutchAmountFromJSON, - RawDutchAmountFromJSONTyped, - RawDutchAmountToJSON, - RawDutchAmountToJSONTyped, -} from './RawDutchAmount'; - -/** - * - * @export - * @interface Order - */ -export interface Order { - /** - * - * @type {string} - * @memberof Order - */ - quoteId?: string; - /** - * - * @type {Array} - * @memberof Order - */ - outputs: Array; - /** - * - * @type {string} - * @memberof Order - */ - encodedOrder: string; - /** - * - * @type {string} - * @memberof Order - */ - signature: string; - /** - * - * @type {RawDutchAmount} - * @memberof Order - */ - input: RawDutchAmount; - /** - * - * @type {string} - * @memberof Order - */ - orderStatus: OrderOrderStatusEnum; - /** - * - * @type {number} - * @memberof Order - */ - chainId: number; - /** - * - * @type {string} - * @memberof Order - */ - orderHash: string; - /** - * - * @type {string} - * @memberof Order - */ - orderType: OrderOrderTypeEnum; -} - - -/** - * @export - */ -export const OrderOrderStatusEnum = { - OPEN: 'open', - EXPIRED: 'expired', - ERROR: 'error', - CANCELLED: 'cancelled', - FILLED: 'filled', - INSUFFICIENT_FUNDS: 'insufficient-funds' -} as const; -export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; - -/** - * @export - */ -export const OrderOrderTypeEnum = { - DUTCH: 'dutch', - LIMIT: 'limit' -} as const; -export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; - - -/** - * Check if a given object implements the Order interface. - */ -export function instanceOfOrder(value: object): value is Order { - if (!('outputs' in value) || value['outputs'] === undefined) return false; - if (!('encodedOrder' in value) || value['encodedOrder'] === undefined) return false; - if (!('signature' in value) || value['signature'] === undefined) return false; - if (!('input' in value) || value['input'] === undefined) return false; - if (!('orderStatus' in value) || value['orderStatus'] === undefined) return false; - if (!('chainId' in value) || value['chainId'] === undefined) return false; - if (!('orderHash' in value) || value['orderHash'] === undefined) return false; - if (!('orderType' in value) || value['orderType'] === undefined) return false; - return true; -} - -export function OrderFromJSON(json: any): Order { - return OrderFromJSONTyped(json, false); -} - -export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order { - if (json == null) { - return json; - } - return { - - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'outputs': ((json['outputs'] as Array).map(RawDutchAmountFromJSON)), - 'encodedOrder': json['encodedOrder'], - 'signature': json['signature'], - 'input': RawDutchAmountFromJSON(json['input']), - 'orderStatus': json['orderStatus'], - 'chainId': json['chainId'], - 'orderHash': json['orderHash'], - 'orderType': json['orderType'], - }; -} - -export function OrderToJSON(json: any): Order { - return OrderToJSONTyped(json, false); -} - -export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'quoteId': value['quoteId'], - 'outputs': ((value['outputs'] as Array).map(RawDutchAmountToJSON)), - 'encodedOrder': value['encodedOrder'], - 'signature': value['signature'], - 'input': RawDutchAmountToJSON(value['input']), - 'orderStatus': value['orderStatus'], - 'chainId': value['chainId'], - 'orderHash': value['orderHash'], - 'orderType': value['orderType'], - }; -} - diff --git a/src/service/src/models/OrderInfo.ts b/src/service/src/models/OrderInfo.ts deleted file mode 100644 index 90f9ad5..0000000 --- a/src/service/src/models/OrderInfo.ts +++ /dev/null @@ -1,198 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; -import type { DutchAmount } from './DutchAmount'; -import { - DutchAmountFromJSON, - DutchAmountFromJSONTyped, - DutchAmountToJSON, - DutchAmountToJSONTyped, -} from './DutchAmount'; - -/** - * - * @export - * @interface OrderInfo - */ -export interface OrderInfo { - /** - * - * @type {number} - * @memberof OrderInfo - */ - chainId: number; - /** - * - * @type {string} - * @memberof OrderInfo - */ - permit2Address: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - reactor: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - swapper: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - nonce: string; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - deadline: Timestamp; - /** - * - * @type {string} - * @memberof OrderInfo - */ - additionalValidationContract: string; - /** - * - * @type {string} - * @memberof OrderInfo - */ - additionalValidationData: string; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - decayStartTime: Timestamp; - /** - * - * @type {Timestamp} - * @memberof OrderInfo - */ - decayEndTime: Timestamp; - /** - * - * @type {string} - * @memberof OrderInfo - */ - exclusiveFiller: string; - /** - * - * @type {number} - * @memberof OrderInfo - */ - exclusivityOverrideBps: number; - /** - * - * @type {DutchAmount} - * @memberof OrderInfo - */ - input: DutchAmount; - /** - * - * @type {Array} - * @memberof OrderInfo - */ - outputs: Array; -} - -/** - * Check if a given object implements the OrderInfo interface. - */ -export function instanceOfOrderInfo(value: object): value is OrderInfo { - if (!('chainId' in value) || value['chainId'] === undefined) return false; - if (!('permit2Address' in value) || value['permit2Address'] === undefined) return false; - if (!('reactor' in value) || value['reactor'] === undefined) return false; - if (!('swapper' in value) || value['swapper'] === undefined) return false; - if (!('nonce' in value) || value['nonce'] === undefined) return false; - if (!('deadline' in value) || value['deadline'] === undefined) return false; - if (!('additionalValidationContract' in value) || value['additionalValidationContract'] === undefined) return false; - if (!('additionalValidationData' in value) || value['additionalValidationData'] === undefined) return false; - if (!('decayStartTime' in value) || value['decayStartTime'] === undefined) return false; - if (!('decayEndTime' in value) || value['decayEndTime'] === undefined) return false; - if (!('exclusiveFiller' in value) || value['exclusiveFiller'] === undefined) return false; - if (!('exclusivityOverrideBps' in value) || value['exclusivityOverrideBps'] === undefined) return false; - if (!('input' in value) || value['input'] === undefined) return false; - if (!('outputs' in value) || value['outputs'] === undefined) return false; - return true; -} - -export function OrderInfoFromJSON(json: any): OrderInfo { - return OrderInfoFromJSONTyped(json, false); -} - -export function OrderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderInfo { - if (json == null) { - return json; - } - return { - - 'chainId': json['chainId'], - 'permit2Address': json['permit2Address'], - 'reactor': json['reactor'], - 'swapper': json['swapper'], - 'nonce': json['nonce'], - 'deadline': TimestampFromJSON(json['deadline']), - 'additionalValidationContract': json['additionalValidationContract'], - 'additionalValidationData': json['additionalValidationData'], - 'decayStartTime': TimestampFromJSON(json['decayStartTime']), - 'decayEndTime': TimestampFromJSON(json['decayEndTime']), - 'exclusiveFiller': json['exclusiveFiller'], - 'exclusivityOverrideBps': json['exclusivityOverrideBps'], - 'input': DutchAmountFromJSON(json['input']), - 'outputs': ((json['outputs'] as Array).map(DutchAmountFromJSON)), - }; -} - -export function OrderInfoToJSON(json: any): OrderInfo { - return OrderInfoToJSONTyped(json, false); -} - -export function OrderInfoToJSONTyped(value?: OrderInfo | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainId': value['chainId'], - 'permit2Address': value['permit2Address'], - 'reactor': value['reactor'], - 'swapper': value['swapper'], - 'nonce': value['nonce'], - 'deadline': TimestampToJSON(value['deadline']), - 'additionalValidationContract': value['additionalValidationContract'], - 'additionalValidationData': value['additionalValidationData'], - 'decayStartTime': TimestampToJSON(value['decayStartTime']), - 'decayEndTime': TimestampToJSON(value['decayEndTime']), - 'exclusiveFiller': value['exclusiveFiller'], - 'exclusivityOverrideBps': value['exclusivityOverrideBps'], - 'input': DutchAmountToJSON(value['input']), - 'outputs': ((value['outputs'] as Array).map(DutchAmountToJSON)), - }; -} - diff --git a/src/service/src/models/OrderResponse.ts b/src/service/src/models/OrderResponse.ts deleted file mode 100644 index 6010a7a..0000000 --- a/src/service/src/models/OrderResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Order } from './Order'; -import { - OrderFromJSON, - OrderFromJSONTyped, - OrderToJSON, - OrderToJSONTyped, -} from './Order'; - -/** - * - * @export - * @interface OrderResponse - */ -export interface OrderResponse { - /** - * - * @type {Array} - * @memberof OrderResponse - */ - data: Array; -} - -/** - * Check if a given object implements the OrderResponse interface. - */ -export function instanceOfOrderResponse(value: object): value is OrderResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function OrderResponseFromJSON(json: any): OrderResponse { - return OrderResponseFromJSONTyped(json, false); -} - -export function OrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(OrderFromJSON)), - }; -} - -export function OrderResponseToJSON(json: any): OrderResponse { - return OrderResponseToJSONTyped(json, false); -} - -export function OrderResponseToJSONTyped(value?: OrderResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(OrderToJSON)), - }; -} - diff --git a/src/service/src/models/OrderType.ts b/src/service/src/models/OrderType.ts deleted file mode 100644 index 74c9001..0000000 --- a/src/service/src/models/OrderType.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const OrderType = { - CLASSIC: 'Classic', - DUTCH_LIMIT: 'DutchLimit' -} as const; -export type OrderType = typeof OrderType[keyof typeof OrderType]; - - -export function instanceOfOrderType(value: any): boolean { - for (const key in OrderType) { - if (Object.prototype.hasOwnProperty.call(OrderType, key)) { - if (OrderType[key as keyof typeof OrderType] === value) { - return true; - } - } - } - return false; -} - -export function OrderTypeFromJSON(json: any): OrderType { - return OrderTypeFromJSONTyped(json, false); -} - -export function OrderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderType { - return json as OrderType; -} - -export function OrderTypeToJSON(value?: OrderType | null): any { - return value as any; -} - -export function OrderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderType { - return value as OrderType; -} - diff --git a/src/service/src/models/PermitSingle.ts b/src/service/src/models/PermitSingle.ts deleted file mode 100644 index 9cb5cb3..0000000 --- a/src/service/src/models/PermitSingle.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { TypedData } from './TypedData'; -import { - TypedDataFromJSON, - TypedDataFromJSONTyped, - TypedDataToJSON, - TypedDataToJSONTyped, -} from './TypedData'; - -/** - * - * @export - * @interface PermitSingle - */ -export interface PermitSingle { - /** - * - * @type {TypedData} - * @memberof PermitSingle - */ - typedData: TypedData; - /** - * The hash of the permit that needs to be signed - * @type {string} - * @memberof PermitSingle - */ - hash: string; -} - -/** - * Check if a given object implements the PermitSingle interface. - */ -export function instanceOfPermitSingle(value: object): value is PermitSingle { - if (!('typedData' in value) || value['typedData'] === undefined) return false; - if (!('hash' in value) || value['hash'] === undefined) return false; - return true; -} - -export function PermitSingleFromJSON(json: any): PermitSingle { - return PermitSingleFromJSONTyped(json, false); -} - -export function PermitSingleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermitSingle { - if (json == null) { - return json; - } - return { - - 'typedData': TypedDataFromJSON(json['typedData']), - 'hash': json['hash'], - }; -} - -export function PermitSingleToJSON(json: any): PermitSingle { - return PermitSingleToJSONTyped(json, false); -} - -export function PermitSingleToJSONTyped(value?: PermitSingle | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'typedData': TypedDataToJSON(value['typedData']), - 'hash': value['hash'], - }; -} - diff --git a/src/service/src/models/PersonalSignRequest.ts b/src/service/src/models/PersonalSignRequest.ts deleted file mode 100644 index e0fa0c3..0000000 --- a/src/service/src/models/PersonalSignRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface PersonalSignRequest - */ -export interface PersonalSignRequest { - /** - * The message that needs to be signed - * @type {string} - * @memberof PersonalSignRequest - */ - message: string; -} - -/** - * Check if a given object implements the PersonalSignRequest interface. - */ -export function instanceOfPersonalSignRequest(value: object): value is PersonalSignRequest { - if (!('message' in value) || value['message'] === undefined) return false; - return true; -} - -export function PersonalSignRequestFromJSON(json: any): PersonalSignRequest { - return PersonalSignRequestFromJSONTyped(json, false); -} - -export function PersonalSignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalSignRequest { - if (json == null) { - return json; - } - return { - - 'message': json['message'], - }; -} - -export function PersonalSignRequestToJSON(json: any): PersonalSignRequest { - return PersonalSignRequestToJSONTyped(json, false); -} - -export function PersonalSignRequestToJSONTyped(value?: PersonalSignRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'message': value['message'], - }; -} - diff --git a/src/service/src/models/PreparedTx.ts b/src/service/src/models/PreparedTx.ts deleted file mode 100644 index e1e2820..0000000 --- a/src/service/src/models/PreparedTx.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { MethodParameters } from './MethodParameters'; -import { - MethodParametersFromJSON, - MethodParametersFromJSONTyped, - MethodParametersToJSON, - MethodParametersToJSONTyped, -} from './MethodParameters'; - -/** - * - * @export - * @interface PreparedTx - */ -export interface PreparedTx { - /** - * - * @type {string} - * @memberof PreparedTx - */ - type: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof PreparedTx - */ - label: { [key: string]: string | undefined; }; - /** - * - * @type {number} - * @memberof PreparedTx - */ - gasUseEstimate: number; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof PreparedTx - */ - gasFeeEstimate: { [key: string]: string | undefined; }; - /** - * - * @type {MethodParameters} - * @memberof PreparedTx - */ - methodParameters: MethodParameters; -} - -/** - * Check if a given object implements the PreparedTx interface. - */ -export function instanceOfPreparedTx(value: object): value is PreparedTx { - if (!('type' in value) || value['type'] === undefined) return false; - if (!('label' in value) || value['label'] === undefined) return false; - if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) return false; - if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) return false; - if (!('methodParameters' in value) || value['methodParameters'] === undefined) return false; - return true; -} - -export function PreparedTxFromJSON(json: any): PreparedTx { - return PreparedTxFromJSONTyped(json, false); -} - -export function PreparedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreparedTx { - if (json == null) { - return json; - } - return { - - 'type': json['type'], - 'label': json['label'], - 'gasUseEstimate': json['gasUseEstimate'], - 'gasFeeEstimate': json['gasFeeEstimate'], - 'methodParameters': MethodParametersFromJSON(json['methodParameters']), - }; -} - -export function PreparedTxToJSON(json: any): PreparedTx { - return PreparedTxToJSONTyped(json, false); -} - -export function PreparedTxToJSONTyped(value?: PreparedTx | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': value['type'], - 'label': value['label'], - 'gasUseEstimate': value['gasUseEstimate'], - 'gasFeeEstimate': value['gasFeeEstimate'], - 'methodParameters': MethodParametersToJSON(value['methodParameters']), - }; -} - diff --git a/src/service/src/models/Price.ts b/src/service/src/models/Price.ts deleted file mode 100644 index 25825e1..0000000 --- a/src/service/src/models/Price.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface Price - */ -export interface Price { - /** - * - * @type {Symbol} - * @memberof Price - */ - symbol: Symbol; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Price - */ - value: { [key: string]: string | undefined; }; - /** - * - * @type {Timestamp} - * @memberof Price - */ - timestamp: Timestamp; -} - - - -/** - * Check if a given object implements the Price interface. - */ -export function instanceOfPrice(value: object): value is Price { - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - if (!('timestamp' in value) || value['timestamp'] === undefined) return false; - return true; -} - -export function PriceFromJSON(json: any): Price { - return PriceFromJSONTyped(json, false); -} - -export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price { - if (json == null) { - return json; - } - return { - - 'symbol': SymbolFromJSON(json['symbol']), - 'value': json['value'], - 'timestamp': TimestampFromJSON(json['timestamp']), - }; -} - -export function PriceToJSON(json: any): Price { - return PriceToJSONTyped(json, false); -} - -export function PriceToJSONTyped(value?: Price | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'symbol': SymbolToJSON(value['symbol']), - 'value': value['value'], - 'timestamp': TimestampToJSON(value['timestamp']), - }; -} - diff --git a/src/service/src/models/PriceListResponse.ts b/src/service/src/models/PriceListResponse.ts deleted file mode 100644 index 96461ca..0000000 --- a/src/service/src/models/PriceListResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Price } from './Price'; -import { - PriceFromJSON, - PriceFromJSONTyped, - PriceToJSON, - PriceToJSONTyped, -} from './Price'; - -/** - * - * @export - * @interface PriceListResponse - */ -export interface PriceListResponse { - /** - * - * @type {Array} - * @memberof PriceListResponse - */ - data: Array; -} - -/** - * Check if a given object implements the PriceListResponse interface. - */ -export function instanceOfPriceListResponse(value: object): value is PriceListResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function PriceListResponseFromJSON(json: any): PriceListResponse { - return PriceListResponseFromJSONTyped(json, false); -} - -export function PriceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceListResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(PriceFromJSON)), - }; -} - -export function PriceListResponseToJSON(json: any): PriceListResponse { - return PriceListResponseToJSONTyped(json, false); -} - -export function PriceListResponseToJSONTyped(value?: PriceListResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(PriceToJSON)), - }; -} - diff --git a/src/service/src/models/QuoteRequest.ts b/src/service/src/models/QuoteRequest.ts deleted file mode 100644 index 4e99d95..0000000 --- a/src/service/src/models/QuoteRequest.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { OrderType } from './OrderType'; -import { - OrderTypeFromJSON, - OrderTypeFromJSONTyped, - OrderTypeToJSON, - OrderTypeToJSONTyped, -} from './OrderType'; -import type { QuoteRequestOptions } from './QuoteRequestOptions'; -import { - QuoteRequestOptionsFromJSON, - QuoteRequestOptionsFromJSONTyped, - QuoteRequestOptionsToJSON, - QuoteRequestOptionsToJSONTyped, -} from './QuoteRequestOptions'; -import type { TradeType } from './TradeType'; -import { - TradeTypeFromJSON, - TradeTypeFromJSONTyped, - TradeTypeToJSON, - TradeTypeToJSONTyped, -} from './TradeType'; - -/** - * - * @export - * @interface QuoteRequest - */ -export interface QuoteRequest { - /** - * - * @type {string} - * @memberof QuoteRequest - */ - requestId?: string; - /** - * - * @type {OrderType} - * @memberof QuoteRequest - */ - type?: OrderType; - /** - * - * @type {TradeType} - * @memberof QuoteRequest - */ - tradeType: TradeType; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - inputToken: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - outputToken: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - amount: string; - /** - * - * @type {string} - * @memberof QuoteRequest - */ - recipient: string; - /** - * - * @type {QuoteRequestOptions} - * @memberof QuoteRequest - */ - options?: QuoteRequestOptions; -} - - - -/** - * Check if a given object implements the QuoteRequest interface. - */ -export function instanceOfQuoteRequest(value: object): value is QuoteRequest { - if (!('tradeType' in value) || value['tradeType'] === undefined) return false; - if (!('inputToken' in value) || value['inputToken'] === undefined) return false; - if (!('outputToken' in value) || value['outputToken'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('recipient' in value) || value['recipient'] === undefined) return false; - return true; -} - -export function QuoteRequestFromJSON(json: any): QuoteRequest { - return QuoteRequestFromJSONTyped(json, false); -} - -export function QuoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequest { - if (json == null) { - return json; - } - return { - - 'requestId': json['requestId'] == null ? undefined : json['requestId'], - 'type': json['type'] == null ? undefined : OrderTypeFromJSON(json['type']), - 'tradeType': TradeTypeFromJSON(json['tradeType']), - 'inputToken': json['inputToken'], - 'outputToken': json['outputToken'], - 'amount': json['amount'], - 'recipient': json['recipient'], - 'options': json['options'] == null ? undefined : QuoteRequestOptionsFromJSON(json['options']), - }; -} - -export function QuoteRequestToJSON(json: any): QuoteRequest { - return QuoteRequestToJSONTyped(json, false); -} - -export function QuoteRequestToJSONTyped(value?: QuoteRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'requestId': value['requestId'], - 'type': OrderTypeToJSON(value['type']), - 'tradeType': TradeTypeToJSON(value['tradeType']), - 'inputToken': value['inputToken'], - 'outputToken': value['outputToken'], - 'amount': value['amount'], - 'recipient': value['recipient'], - 'options': QuoteRequestOptionsToJSON(value['options']), - }; -} - diff --git a/src/service/src/models/QuoteRequestOptions.ts b/src/service/src/models/QuoteRequestOptions.ts deleted file mode 100644 index cee4478..0000000 --- a/src/service/src/models/QuoteRequestOptions.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface QuoteRequestOptions - */ -export interface QuoteRequestOptions { - /** - * - * @type {boolean} - * @memberof QuoteRequestOptions - */ - dryRun?: boolean; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - slippageTolerance?: string; - /** - * - * @type {boolean} - * @memberof QuoteRequestOptions - */ - useSyntheticQuotes?: boolean; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitSignature?: string; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitNonce?: string; - /** - * - * @type {number} - * @memberof QuoteRequestOptions - */ - permitExpiration?: number; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - permitAmount?: string; - /** - * - * @type {number} - * @memberof QuoteRequestOptions - */ - permitSigDeadline?: number; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - quoteId?: string; - /** - * - * @type {string} - * @memberof QuoteRequestOptions - */ - encodedOrder?: string; -} - -/** - * Check if a given object implements the QuoteRequestOptions interface. - */ -export function instanceOfQuoteRequestOptions(value: object): value is QuoteRequestOptions { - return true; -} - -export function QuoteRequestOptionsFromJSON(json: any): QuoteRequestOptions { - return QuoteRequestOptionsFromJSONTyped(json, false); -} - -export function QuoteRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequestOptions { - if (json == null) { - return json; - } - return { - - 'dryRun': json['dryRun'] == null ? undefined : json['dryRun'], - 'slippageTolerance': json['slippageTolerance'] == null ? undefined : json['slippageTolerance'], - 'useSyntheticQuotes': json['useSyntheticQuotes'] == null ? undefined : json['useSyntheticQuotes'], - 'permitSignature': json['permitSignature'] == null ? undefined : json['permitSignature'], - 'permitNonce': json['permitNonce'] == null ? undefined : json['permitNonce'], - 'permitExpiration': json['permitExpiration'] == null ? undefined : json['permitExpiration'], - 'permitAmount': json['permitAmount'] == null ? undefined : json['permitAmount'], - 'permitSigDeadline': json['permitSigDeadline'] == null ? undefined : json['permitSigDeadline'], - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], - }; -} - -export function QuoteRequestOptionsToJSON(json: any): QuoteRequestOptions { - return QuoteRequestOptionsToJSONTyped(json, false); -} - -export function QuoteRequestOptionsToJSONTyped(value?: QuoteRequestOptions | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'dryRun': value['dryRun'], - 'slippageTolerance': value['slippageTolerance'], - 'useSyntheticQuotes': value['useSyntheticQuotes'], - 'permitSignature': value['permitSignature'], - 'permitNonce': value['permitNonce'], - 'permitExpiration': value['permitExpiration'], - 'permitAmount': value['permitAmount'], - 'permitSigDeadline': value['permitSigDeadline'], - 'quoteId': value['quoteId'], - 'encodedOrder': value['encodedOrder'], - }; -} - diff --git a/src/service/src/models/QuoteResponse.ts b/src/service/src/models/QuoteResponse.ts deleted file mode 100644 index 648b943..0000000 --- a/src/service/src/models/QuoteResponse.ts +++ /dev/null @@ -1,248 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { OrderType } from './OrderType'; -import { - OrderTypeFromJSON, - OrderTypeFromJSONTyped, - OrderTypeToJSON, - OrderTypeToJSONTyped, -} from './OrderType'; -import type { TypedData } from './TypedData'; -import { - TypedDataFromJSON, - TypedDataFromJSONTyped, - TypedDataToJSON, - TypedDataToJSONTyped, -} from './TypedData'; -import type { RouteItem } from './RouteItem'; -import { - RouteItemFromJSON, - RouteItemFromJSONTyped, - RouteItemToJSON, - RouteItemToJSONTyped, -} from './RouteItem'; -import type { OrderInfo } from './OrderInfo'; -import { - OrderInfoFromJSON, - OrderInfoFromJSONTyped, - OrderInfoToJSON, - OrderInfoToJSONTyped, -} from './OrderInfo'; -import type { MethodParameters } from './MethodParameters'; -import { - MethodParametersFromJSON, - MethodParametersFromJSONTyped, - MethodParametersToJSON, - MethodParametersToJSONTyped, -} from './MethodParameters'; -import type { TradeType } from './TradeType'; -import { - TradeTypeFromJSON, - TradeTypeFromJSONTyped, - TradeTypeToJSON, - TradeTypeToJSONTyped, -} from './TradeType'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface QuoteResponse - */ -export interface QuoteResponse { - /** - * - * @type {OrderType} - * @memberof QuoteResponse - */ - type: OrderType; - /** - * - * @type {TradeType} - * @memberof QuoteResponse - */ - tradeType: TradeType; - /** - * - * @type {Timestamp} - * @memberof QuoteResponse - */ - time: Timestamp; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - amount: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - quote: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - quoteId: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - gasPrice: { [key: string]: string | undefined; }; - /** - * - * @type {number} - * @memberof QuoteResponse - */ - gasUseEstimate: number; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof QuoteResponse - */ - gasFeeEstimate: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - routeString: string; - /** - * - * @type {MethodParameters} - * @memberof QuoteResponse - */ - methodParameters?: MethodParameters; - /** - * - * @type {Array} - * @memberof QuoteResponse - */ - route: Array; - /** - * - * @type {OrderInfo} - * @memberof QuoteResponse - */ - orderInfo?: OrderInfo; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - encodedOrder?: string; - /** - * - * @type {string} - * @memberof QuoteResponse - */ - orderHash?: string; - /** - * - * @type {TypedData} - * @memberof QuoteResponse - */ - permitData?: TypedData; -} - - - -/** - * Check if a given object implements the QuoteResponse interface. - */ -export function instanceOfQuoteResponse(value: object): value is QuoteResponse { - if (!('type' in value) || value['type'] === undefined) return false; - if (!('tradeType' in value) || value['tradeType'] === undefined) return false; - if (!('time' in value) || value['time'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('quote' in value) || value['quote'] === undefined) return false; - if (!('quoteId' in value) || value['quoteId'] === undefined) return false; - if (!('gasPrice' in value) || value['gasPrice'] === undefined) return false; - if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) return false; - if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) return false; - if (!('routeString' in value) || value['routeString'] === undefined) return false; - if (!('route' in value) || value['route'] === undefined) return false; - return true; -} - -export function QuoteResponseFromJSON(json: any): QuoteResponse { - return QuoteResponseFromJSONTyped(json, false); -} - -export function QuoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteResponse { - if (json == null) { - return json; - } - return { - - 'type': OrderTypeFromJSON(json['type']), - 'tradeType': TradeTypeFromJSON(json['tradeType']), - 'time': TimestampFromJSON(json['time']), - 'amount': json['amount'], - 'quote': json['quote'], - 'quoteId': json['quoteId'], - 'gasPrice': json['gasPrice'], - 'gasUseEstimate': json['gasUseEstimate'], - 'gasFeeEstimate': json['gasFeeEstimate'], - 'routeString': json['routeString'], - 'methodParameters': json['methodParameters'] == null ? undefined : MethodParametersFromJSON(json['methodParameters']), - 'route': ((json['route'] as Array).map(RouteItemFromJSON)), - 'orderInfo': json['orderInfo'] == null ? undefined : OrderInfoFromJSON(json['orderInfo']), - 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], - 'orderHash': json['orderHash'] == null ? undefined : json['orderHash'], - 'permitData': json['permitData'] == null ? undefined : TypedDataFromJSON(json['permitData']), - }; -} - -export function QuoteResponseToJSON(json: any): QuoteResponse { - return QuoteResponseToJSONTyped(json, false); -} - -export function QuoteResponseToJSONTyped(value?: QuoteResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': OrderTypeToJSON(value['type']), - 'tradeType': TradeTypeToJSON(value['tradeType']), - 'time': TimestampToJSON(value['time']), - 'amount': value['amount'], - 'quote': value['quote'], - 'quoteId': value['quoteId'], - 'gasPrice': value['gasPrice'], - 'gasUseEstimate': value['gasUseEstimate'], - 'gasFeeEstimate': value['gasFeeEstimate'], - 'routeString': value['routeString'], - 'methodParameters': MethodParametersToJSON(value['methodParameters']), - 'route': ((value['route'] as Array).map(RouteItemToJSON)), - 'orderInfo': OrderInfoToJSON(value['orderInfo']), - 'encodedOrder': value['encodedOrder'], - 'orderHash': value['orderHash'], - 'permitData': TypedDataToJSON(value['permitData']), - }; -} - diff --git a/src/service/src/models/RawDutchAmount.ts b/src/service/src/models/RawDutchAmount.ts deleted file mode 100644 index dbb5b67..0000000 --- a/src/service/src/models/RawDutchAmount.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RawDutchAmount - */ -export interface RawDutchAmount { - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - token: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - startAmount: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - endAmount: string; - /** - * - * @type {string} - * @memberof RawDutchAmount - */ - recipient?: string; -} - -/** - * Check if a given object implements the RawDutchAmount interface. - */ -export function instanceOfRawDutchAmount(value: object): value is RawDutchAmount { - if (!('token' in value) || value['token'] === undefined) return false; - if (!('startAmount' in value) || value['startAmount'] === undefined) return false; - if (!('endAmount' in value) || value['endAmount'] === undefined) return false; - return true; -} - -export function RawDutchAmountFromJSON(json: any): RawDutchAmount { - return RawDutchAmountFromJSONTyped(json, false); -} - -export function RawDutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): RawDutchAmount { - if (json == null) { - return json; - } - return { - - 'token': json['token'], - 'startAmount': json['startAmount'], - 'endAmount': json['endAmount'], - 'recipient': json['recipient'] == null ? undefined : json['recipient'], - }; -} - -export function RawDutchAmountToJSON(json: any): RawDutchAmount { - return RawDutchAmountToJSONTyped(json, false); -} - -export function RawDutchAmountToJSONTyped(value?: RawDutchAmount | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'token': value['token'], - 'startAmount': value['startAmount'], - 'endAmount': value['endAmount'], - 'recipient': value['recipient'], - }; -} - diff --git a/src/service/src/models/RouteItem.ts b/src/service/src/models/RouteItem.ts deleted file mode 100644 index 24fdcbc..0000000 --- a/src/service/src/models/RouteItem.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface RouteItem - */ -export interface RouteItem { - /** - * - * @type {string} - * @memberof RouteItem - */ - address: string; - /** - * - * @type {Token} - * @memberof RouteItem - */ - tokenIn: Token; - /** - * - * @type {Token} - * @memberof RouteItem - */ - tokenOut: Token; - /** - * - * @type {string} - * @memberof RouteItem - */ - fee: string; -} - -/** - * Check if a given object implements the RouteItem interface. - */ -export function instanceOfRouteItem(value: object): value is RouteItem { - if (!('address' in value) || value['address'] === undefined) return false; - if (!('tokenIn' in value) || value['tokenIn'] === undefined) return false; - if (!('tokenOut' in value) || value['tokenOut'] === undefined) return false; - if (!('fee' in value) || value['fee'] === undefined) return false; - return true; -} - -export function RouteItemFromJSON(json: any): RouteItem { - return RouteItemFromJSONTyped(json, false); -} - -export function RouteItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteItem { - if (json == null) { - return json; - } - return { - - 'address': json['address'], - 'tokenIn': TokenFromJSON(json['tokenIn']), - 'tokenOut': TokenFromJSON(json['tokenOut']), - 'fee': json['fee'], - }; -} - -export function RouteItemToJSON(json: any): RouteItem { - return RouteItemToJSONTyped(json, false); -} - -export function RouteItemToJSONTyped(value?: RouteItem | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'address': value['address'], - 'tokenIn': TokenToJSON(value['tokenIn']), - 'tokenOut': TokenToJSON(value['tokenOut']), - 'fee': value['fee'], - }; -} - diff --git a/src/service/src/models/Scoreboard.ts b/src/service/src/models/Scoreboard.ts deleted file mode 100644 index 5b501fe..0000000 --- a/src/service/src/models/Scoreboard.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ScoreboardItem } from './ScoreboardItem'; -import { - ScoreboardItemFromJSON, - ScoreboardItemFromJSONTyped, - ScoreboardItemToJSON, - ScoreboardItemToJSONTyped, -} from './ScoreboardItem'; - -/** - * - * @export - * @interface Scoreboard - */ -export interface Scoreboard { - /** - * - * @type {Array} - * @memberof Scoreboard - */ - items: Array; -} - -/** - * Check if a given object implements the Scoreboard interface. - */ -export function instanceOfScoreboard(value: object): value is Scoreboard { - if (!('items' in value) || value['items'] === undefined) return false; - return true; -} - -export function ScoreboardFromJSON(json: any): Scoreboard { - return ScoreboardFromJSONTyped(json, false); -} - -export function ScoreboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Scoreboard { - if (json == null) { - return json; - } - return { - - 'items': ((json['items'] as Array).map(ScoreboardItemFromJSON)), - }; -} - -export function ScoreboardToJSON(json: any): Scoreboard { - return ScoreboardToJSONTyped(json, false); -} - -export function ScoreboardToJSONTyped(value?: Scoreboard | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'items': ((value['items'] as Array).map(ScoreboardItemToJSON)), - }; -} - diff --git a/src/service/src/models/ScoreboardItem.ts b/src/service/src/models/ScoreboardItem.ts deleted file mode 100644 index f3f82af..0000000 --- a/src/service/src/models/ScoreboardItem.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ScoreboardItem - */ -export interface ScoreboardItem { - /** - * - * @type {string} - * @memberof ScoreboardItem - */ - address: string; - /** - * - * @type {number} - * @memberof ScoreboardItem - */ - points: number; -} - -/** - * Check if a given object implements the ScoreboardItem interface. - */ -export function instanceOfScoreboardItem(value: object): value is ScoreboardItem { - if (!('address' in value) || value['address'] === undefined) return false; - if (!('points' in value) || value['points'] === undefined) return false; - return true; -} - -export function ScoreboardItemFromJSON(json: any): ScoreboardItem { - return ScoreboardItemFromJSONTyped(json, false); -} - -export function ScoreboardItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoreboardItem { - if (json == null) { - return json; - } - return { - - 'address': json['address'], - 'points': json['points'], - }; -} - -export function ScoreboardItemToJSON(json: any): ScoreboardItem { - return ScoreboardItemToJSONTyped(json, false); -} - -export function ScoreboardItemToJSONTyped(value?: ScoreboardItem | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'address': value['address'], - 'points': value['points'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemBarkTxRequest.ts b/src/service/src/models/StablecoinSystemBarkTxRequest.ts deleted file mode 100644 index b7cf9a4..0000000 --- a/src/service/src/models/StablecoinSystemBarkTxRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemBarkTxRequest - */ -export interface StablecoinSystemBarkTxRequest { - /** - * Ethereum address of the user who is liquidating the vault and receiving incentives. - * @type {string} - * @memberof StablecoinSystemBarkTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemBarkTxRequest - */ - vaultId: number; -} - -/** - * Check if a given object implements the StablecoinSystemBarkTxRequest interface. - */ -export function instanceOfStablecoinSystemBarkTxRequest(value: object): value is StablecoinSystemBarkTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) return false; - return true; -} - -export function StablecoinSystemBarkTxRequestFromJSON(json: any): StablecoinSystemBarkTxRequest { - return StablecoinSystemBarkTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemBarkTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemBarkTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'vaultId': json['vaultId'], - }; -} - -export function StablecoinSystemBarkTxRequestToJSON(json: any): StablecoinSystemBarkTxRequest { - return StablecoinSystemBarkTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemBarkTxRequestToJSONTyped(value?: StablecoinSystemBarkTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'vaultId': value['vaultId'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts b/src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts deleted file mode 100644 index 1b287f2..0000000 --- a/src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemCreateVaultTxRequest - */ -export interface StablecoinSystemCreateVaultTxRequest { - /** - * The name of the ilk - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - ilkName: string; - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - user: string; - /** - * The amount of collateral to deposit in native token units - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - collateralAmount?: string; - /** - * The amount of stablecoin to mint in native token units - * @type {string} - * @memberof StablecoinSystemCreateVaultTxRequest - */ - mintAmount: string; -} - -/** - * Check if a given object implements the StablecoinSystemCreateVaultTxRequest interface. - */ -export function instanceOfStablecoinSystemCreateVaultTxRequest(value: object): value is StablecoinSystemCreateVaultTxRequest { - if (!('ilkName' in value) || value['ilkName'] === undefined) return false; - if (!('user' in value) || value['user'] === undefined) return false; - if (!('mintAmount' in value) || value['mintAmount'] === undefined) return false; - return true; -} - -export function StablecoinSystemCreateVaultTxRequestFromJSON(json: any): StablecoinSystemCreateVaultTxRequest { - return StablecoinSystemCreateVaultTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemCreateVaultTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemCreateVaultTxRequest { - if (json == null) { - return json; - } - return { - - 'ilkName': json['ilkName'], - 'user': json['user'], - 'collateralAmount': json['collateralAmount'] == null ? undefined : json['collateralAmount'], - 'mintAmount': json['mintAmount'], - }; -} - -export function StablecoinSystemCreateVaultTxRequestToJSON(json: any): StablecoinSystemCreateVaultTxRequest { - return StablecoinSystemCreateVaultTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemCreateVaultTxRequestToJSONTyped(value?: StablecoinSystemCreateVaultTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'ilkName': value['ilkName'], - 'user': value['user'], - 'collateralAmount': value['collateralAmount'], - 'mintAmount': value['mintAmount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts b/src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts deleted file mode 100644 index 63d1988..0000000 --- a/src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemDepositCollateralTxRequest - */ -export interface StablecoinSystemDepositCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - vaultId: number; - /** - * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance - * @type {string} - * @memberof StablecoinSystemDepositCollateralTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StablecoinSystemDepositCollateralTxRequest interface. - */ -export function instanceOfStablecoinSystemDepositCollateralTxRequest(value: object): value is StablecoinSystemDepositCollateralTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) return false; - return true; -} - -export function StablecoinSystemDepositCollateralTxRequestFromJSON(json: any): StablecoinSystemDepositCollateralTxRequest { - return StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemDepositCollateralTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StablecoinSystemDepositCollateralTxRequestToJSON(json: any): StablecoinSystemDepositCollateralTxRequest { - return StablecoinSystemDepositCollateralTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemDepositCollateralTxRequestToJSONTyped(value?: StablecoinSystemDepositCollateralTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemGemexitTxRequest.ts b/src/service/src/models/StablecoinSystemGemexitTxRequest.ts deleted file mode 100644 index 62bb5d3..0000000 --- a/src/service/src/models/StablecoinSystemGemexitTxRequest.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemGemexitTxRequest - */ -export interface StablecoinSystemGemexitTxRequest { - /** - * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - user: string; - /** - * The amount of Gem token to exit from Vat contract - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - amount: string; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemGemexitTxRequest - */ - ilk: string; -} - -/** - * Check if a given object implements the StablecoinSystemGemexitTxRequest interface. - */ -export function instanceOfStablecoinSystemGemexitTxRequest(value: object): value is StablecoinSystemGemexitTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('ilk' in value) || value['ilk'] === undefined) return false; - return true; -} - -export function StablecoinSystemGemexitTxRequestFromJSON(json: any): StablecoinSystemGemexitTxRequest { - return StablecoinSystemGemexitTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemGemexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemGemexitTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'amount': json['amount'], - 'ilk': json['ilk'], - }; -} - -export function StablecoinSystemGemexitTxRequestToJSON(json: any): StablecoinSystemGemexitTxRequest { - return StablecoinSystemGemexitTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemGemexitTxRequestToJSONTyped(value?: StablecoinSystemGemexitTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'amount': value['amount'], - 'ilk': value['ilk'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemMintZarTxRequest.ts b/src/service/src/models/StablecoinSystemMintZarTxRequest.ts deleted file mode 100644 index 991d4ce..0000000 --- a/src/service/src/models/StablecoinSystemMintZarTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemMintZarTxRequest - */ -export interface StablecoinSystemMintZarTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemMintZarTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemMintZarTxRequest - */ - vaultId: number; - /** - * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount - * @type {string} - * @memberof StablecoinSystemMintZarTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StablecoinSystemMintZarTxRequest interface. - */ -export function instanceOfStablecoinSystemMintZarTxRequest(value: object): value is StablecoinSystemMintZarTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) return false; - return true; -} - -export function StablecoinSystemMintZarTxRequestFromJSON(json: any): StablecoinSystemMintZarTxRequest { - return StablecoinSystemMintZarTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemMintZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemMintZarTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StablecoinSystemMintZarTxRequestToJSON(json: any): StablecoinSystemMintZarTxRequest { - return StablecoinSystemMintZarTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemMintZarTxRequestToJSONTyped(value?: StablecoinSystemMintZarTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemRedoTxRequest.ts b/src/service/src/models/StablecoinSystemRedoTxRequest.ts deleted file mode 100644 index d804576..0000000 --- a/src/service/src/models/StablecoinSystemRedoTxRequest.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemRedoTxRequest - */ -export interface StablecoinSystemRedoTxRequest { - /** - * Ethereum address of the user resetting the auction and receiving incentives. - * @type {string} - * @memberof StablecoinSystemRedoTxRequest - */ - user: string; - /** - * The ID of the auction - * @type {number} - * @memberof StablecoinSystemRedoTxRequest - */ - auctionId: number; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemRedoTxRequest - */ - ilk: string; -} - -/** - * Check if a given object implements the StablecoinSystemRedoTxRequest interface. - */ -export function instanceOfStablecoinSystemRedoTxRequest(value: object): value is StablecoinSystemRedoTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('auctionId' in value) || value['auctionId'] === undefined) return false; - if (!('ilk' in value) || value['ilk'] === undefined) return false; - return true; -} - -export function StablecoinSystemRedoTxRequestFromJSON(json: any): StablecoinSystemRedoTxRequest { - return StablecoinSystemRedoTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemRedoTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRedoTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'auctionId': json['auctionId'], - 'ilk': json['ilk'], - }; -} - -export function StablecoinSystemRedoTxRequestToJSON(json: any): StablecoinSystemRedoTxRequest { - return StablecoinSystemRedoTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemRedoTxRequestToJSONTyped(value?: StablecoinSystemRedoTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'auctionId': value['auctionId'], - 'ilk': value['ilk'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemRepayZarTxRequest.ts b/src/service/src/models/StablecoinSystemRepayZarTxRequest.ts deleted file mode 100644 index 2befcaa..0000000 --- a/src/service/src/models/StablecoinSystemRepayZarTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemRepayZarTxRequest - */ -export interface StablecoinSystemRepayZarTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemRepayZarTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemRepayZarTxRequest - */ - vaultId: number; - /** - * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance - * @type {string} - * @memberof StablecoinSystemRepayZarTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StablecoinSystemRepayZarTxRequest interface. - */ -export function instanceOfStablecoinSystemRepayZarTxRequest(value: object): value is StablecoinSystemRepayZarTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) return false; - return true; -} - -export function StablecoinSystemRepayZarTxRequestFromJSON(json: any): StablecoinSystemRepayZarTxRequest { - return StablecoinSystemRepayZarTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemRepayZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRepayZarTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StablecoinSystemRepayZarTxRequestToJSON(json: any): StablecoinSystemRepayZarTxRequest { - return StablecoinSystemRepayZarTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemRepayZarTxRequestToJSONTyped(value?: StablecoinSystemRepayZarTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemStats.ts b/src/service/src/models/StablecoinSystemStats.ts deleted file mode 100644 index 9e57ed0..0000000 --- a/src/service/src/models/StablecoinSystemStats.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemStats - */ -export interface StablecoinSystemStats { - /** - * System surplus - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplus: { [key: string]: string | undefined; }; - /** - * System debt - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemDebt: { [key: string]: string | undefined; }; - /** - * System debt ceiling - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemDebtCeiling: { [key: string]: string | undefined; }; - /** - * System surplus buffer - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplusBuffer: { [key: string]: string | undefined; }; - /** - * System bad debt - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemBadDebt: { [key: string]: string | undefined; }; - /** - * System surplus lot size - * @type {{ [key: string]: string | undefined; }} - * @memberof StablecoinSystemStats - */ - systemSurplusLotSize: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the StablecoinSystemStats interface. - */ -export function instanceOfStablecoinSystemStats(value: object): value is StablecoinSystemStats { - if (!('systemSurplus' in value) || value['systemSurplus'] === undefined) return false; - if (!('systemDebt' in value) || value['systemDebt'] === undefined) return false; - if (!('systemDebtCeiling' in value) || value['systemDebtCeiling'] === undefined) return false; - if (!('systemSurplusBuffer' in value) || value['systemSurplusBuffer'] === undefined) return false; - if (!('systemBadDebt' in value) || value['systemBadDebt'] === undefined) return false; - if (!('systemSurplusLotSize' in value) || value['systemSurplusLotSize'] === undefined) return false; - return true; -} - -export function StablecoinSystemStatsFromJSON(json: any): StablecoinSystemStats { - return StablecoinSystemStatsFromJSONTyped(json, false); -} - -export function StablecoinSystemStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemStats { - if (json == null) { - return json; - } - return { - - 'systemSurplus': json['systemSurplus'], - 'systemDebt': json['systemDebt'], - 'systemDebtCeiling': json['systemDebtCeiling'], - 'systemSurplusBuffer': json['systemSurplusBuffer'], - 'systemBadDebt': json['systemBadDebt'], - 'systemSurplusLotSize': json['systemSurplusLotSize'], - }; -} - -export function StablecoinSystemStatsToJSON(json: any): StablecoinSystemStats { - return StablecoinSystemStatsToJSONTyped(json, false); -} - -export function StablecoinSystemStatsToJSONTyped(value?: StablecoinSystemStats | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'systemSurplus': value['systemSurplus'], - 'systemDebt': value['systemDebt'], - 'systemDebtCeiling': value['systemDebtCeiling'], - 'systemSurplusBuffer': value['systemSurplusBuffer'], - 'systemBadDebt': value['systemBadDebt'], - 'systemSurplusLotSize': value['systemSurplusLotSize'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemTakeTxRequest.ts b/src/service/src/models/StablecoinSystemTakeTxRequest.ts deleted file mode 100644 index 0e8ba5c..0000000 --- a/src/service/src/models/StablecoinSystemTakeTxRequest.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemTakeTxRequest - */ -export interface StablecoinSystemTakeTxRequest { - /** - * Ethereum address of the user taking the auction. - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - user: string; - /** - * The ID of the auction - * @type {number} - * @memberof StablecoinSystemTakeTxRequest - */ - auctionId: number; - /** - * Name of the ILK - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - ilk: string; - /** - * upper limit on the amount of collateral to buy [wad] - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - collateralAmountUpperLimit: string; - /** - * Maximum acceptable price (ZAR / collateral) [ray] - * @type {string} - * @memberof StablecoinSystemTakeTxRequest - */ - maxAcceptablePrice: string; -} - -/** - * Check if a given object implements the StablecoinSystemTakeTxRequest interface. - */ -export function instanceOfStablecoinSystemTakeTxRequest(value: object): value is StablecoinSystemTakeTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('auctionId' in value) || value['auctionId'] === undefined) return false; - if (!('ilk' in value) || value['ilk'] === undefined) return false; - if (!('collateralAmountUpperLimit' in value) || value['collateralAmountUpperLimit'] === undefined) return false; - if (!('maxAcceptablePrice' in value) || value['maxAcceptablePrice'] === undefined) return false; - return true; -} - -export function StablecoinSystemTakeTxRequestFromJSON(json: any): StablecoinSystemTakeTxRequest { - return StablecoinSystemTakeTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemTakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemTakeTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'auctionId': json['auctionId'], - 'ilk': json['ilk'], - 'collateralAmountUpperLimit': json['collateralAmountUpperLimit'], - 'maxAcceptablePrice': json['maxAcceptablePrice'], - }; -} - -export function StablecoinSystemTakeTxRequestToJSON(json: any): StablecoinSystemTakeTxRequest { - return StablecoinSystemTakeTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemTakeTxRequestToJSONTyped(value?: StablecoinSystemTakeTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'auctionId': value['auctionId'], - 'ilk': value['ilk'], - 'collateralAmountUpperLimit': value['collateralAmountUpperLimit'], - 'maxAcceptablePrice': value['maxAcceptablePrice'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts b/src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts deleted file mode 100644 index 8b9b8bc..0000000 --- a/src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemWithdrawCollateralTxRequest - */ -export interface StablecoinSystemWithdrawCollateralTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - user: string; - /** - * The ID of the vault - * @type {number} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - vaultId: number; - /** - * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance - * @type {string} - * @memberof StablecoinSystemWithdrawCollateralTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StablecoinSystemWithdrawCollateralTxRequest interface. - */ -export function instanceOfStablecoinSystemWithdrawCollateralTxRequest(value: object): value is StablecoinSystemWithdrawCollateralTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('vaultId' in value) || value['vaultId'] === undefined) return false; - return true; -} - -export function StablecoinSystemWithdrawCollateralTxRequestFromJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest { - return StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemWithdrawCollateralTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'vaultId': json['vaultId'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StablecoinSystemWithdrawCollateralTxRequestToJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest { - return StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(value?: StablecoinSystemWithdrawCollateralTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'vaultId': value['vaultId'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemZarexitTxRequest.ts b/src/service/src/models/StablecoinSystemZarexitTxRequest.ts deleted file mode 100644 index 2a5b3d8..0000000 --- a/src/service/src/models/StablecoinSystemZarexitTxRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemZarexitTxRequest - */ -export interface StablecoinSystemZarexitTxRequest { - /** - * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. - * @type {string} - * @memberof StablecoinSystemZarexitTxRequest - */ - user: string; - /** - * The amount of Zar token to exit from Vat contract - * @type {string} - * @memberof StablecoinSystemZarexitTxRequest - */ - amount: string; -} - -/** - * Check if a given object implements the StablecoinSystemZarexitTxRequest interface. - */ -export function instanceOfStablecoinSystemZarexitTxRequest(value: object): value is StablecoinSystemZarexitTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - return true; -} - -export function StablecoinSystemZarexitTxRequestFromJSON(json: any): StablecoinSystemZarexitTxRequest { - return StablecoinSystemZarexitTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemZarexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarexitTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'amount': json['amount'], - }; -} - -export function StablecoinSystemZarexitTxRequestToJSON(json: any): StablecoinSystemZarexitTxRequest { - return StablecoinSystemZarexitTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemZarexitTxRequestToJSONTyped(value?: StablecoinSystemZarexitTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StablecoinSystemZarjoinTxRequest.ts b/src/service/src/models/StablecoinSystemZarjoinTxRequest.ts deleted file mode 100644 index 0a73a82..0000000 --- a/src/service/src/models/StablecoinSystemZarjoinTxRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StablecoinSystemZarjoinTxRequest - */ -export interface StablecoinSystemZarjoinTxRequest { - /** - * Ethereum address of the user intends to join zar tokens into the Vat contract. - * @type {string} - * @memberof StablecoinSystemZarjoinTxRequest - */ - user: string; - /** - * The amount of ZAR to approve and join into Vat contract - * @type {string} - * @memberof StablecoinSystemZarjoinTxRequest - */ - amount: string; -} - -/** - * Check if a given object implements the StablecoinSystemZarjoinTxRequest interface. - */ -export function instanceOfStablecoinSystemZarjoinTxRequest(value: object): value is StablecoinSystemZarjoinTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - return true; -} - -export function StablecoinSystemZarjoinTxRequestFromJSON(json: any): StablecoinSystemZarjoinTxRequest { - return StablecoinSystemZarjoinTxRequestFromJSONTyped(json, false); -} - -export function StablecoinSystemZarjoinTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarjoinTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'amount': json['amount'], - }; -} - -export function StablecoinSystemZarjoinTxRequestToJSON(json: any): StablecoinSystemZarjoinTxRequest { - return StablecoinSystemZarjoinTxRequestToJSONTyped(json, false); -} - -export function StablecoinSystemZarjoinTxRequestToJSONTyped(value?: StablecoinSystemZarjoinTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StakeBalance.ts b/src/service/src/models/StakeBalance.ts deleted file mode 100644 index a998016..0000000 --- a/src/service/src/models/StakeBalance.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * The amount of asset staked in native token units - * @export - * @interface StakeBalance - */ -export interface StakeBalance { -} - -/** - * Check if a given object implements the StakeBalance interface. - */ -export function instanceOfStakeBalance(value: object): value is StakeBalance { - return true; -} - -export function StakeBalanceFromJSON(json: any): StakeBalance { - return StakeBalanceFromJSONTyped(json, false); -} - -export function StakeBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakeBalance { - return json; -} - -export function StakeBalanceToJSON(json: any): StakeBalance { - return StakeBalanceToJSONTyped(json, false); -} - -export function StakeBalanceToJSONTyped(value?: StakeBalance | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/StakePlan.ts b/src/service/src/models/StakePlan.ts deleted file mode 100644 index e02d855..0000000 --- a/src/service/src/models/StakePlan.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface StakePlan - */ -export interface StakePlan { - /** - * Name of staking plan - * @type {string} - * @memberof StakePlan - */ - planName: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakePlan - */ - contractAddress: string; - /** - * Annual percentage yield of the staking plan - * @type {string} - * @memberof StakePlan - */ - apy: string; - /** - * - * @type {Token} - * @memberof StakePlan - */ - stakeToken: Token; - /** - * - * @type {Token} - * @memberof StakePlan - */ - rewardToken: Token; - /** - * - * @type {Timestamp} - * @memberof StakePlan - */ - finishAt: Timestamp; -} - -/** - * Check if a given object implements the StakePlan interface. - */ -export function instanceOfStakePlan(value: object): value is StakePlan { - if (!('planName' in value) || value['planName'] === undefined) return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) return false; - if (!('apy' in value) || value['apy'] === undefined) return false; - if (!('stakeToken' in value) || value['stakeToken'] === undefined) return false; - if (!('rewardToken' in value) || value['rewardToken'] === undefined) return false; - if (!('finishAt' in value) || value['finishAt'] === undefined) return false; - return true; -} - -export function StakePlanFromJSON(json: any): StakePlan { - return StakePlanFromJSONTyped(json, false); -} - -export function StakePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlan { - if (json == null) { - return json; - } - return { - - 'planName': json['planName'], - 'contractAddress': json['contractAddress'], - 'apy': json['apy'], - 'stakeToken': TokenFromJSON(json['stakeToken']), - 'rewardToken': TokenFromJSON(json['rewardToken']), - 'finishAt': TimestampFromJSON(json['finishAt']), - }; -} - -export function StakePlanToJSON(json: any): StakePlan { - return StakePlanToJSONTyped(json, false); -} - -export function StakePlanToJSONTyped(value?: StakePlan | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'planName': value['planName'], - 'contractAddress': value['contractAddress'], - 'apy': value['apy'], - 'stakeToken': TokenToJSON(value['stakeToken']), - 'rewardToken': TokenToJSON(value['rewardToken']), - 'finishAt': TimestampToJSON(value['finishAt']), - }; -} - diff --git a/src/service/src/models/StakePlansResponse.ts b/src/service/src/models/StakePlansResponse.ts deleted file mode 100644 index c09b6fe..0000000 --- a/src/service/src/models/StakePlansResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { StakePlan } from './StakePlan'; -import { - StakePlanFromJSON, - StakePlanFromJSONTyped, - StakePlanToJSON, - StakePlanToJSONTyped, -} from './StakePlan'; - -/** - * - * @export - * @interface StakePlansResponse - */ -export interface StakePlansResponse { - /** - * - * @type {Array} - * @memberof StakePlansResponse - */ - data: Array; -} - -/** - * Check if a given object implements the StakePlansResponse interface. - */ -export function instanceOfStakePlansResponse(value: object): value is StakePlansResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function StakePlansResponseFromJSON(json: any): StakePlansResponse { - return StakePlansResponseFromJSONTyped(json, false); -} - -export function StakePlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlansResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(StakePlanFromJSON)), - }; -} - -export function StakePlansResponseToJSON(json: any): StakePlansResponse { - return StakePlansResponseToJSONTyped(json, false); -} - -export function StakePlansResponseToJSONTyped(value?: StakePlansResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(StakePlanToJSON)), - }; -} - diff --git a/src/service/src/models/StakingCollectRewardTxRequest.ts b/src/service/src/models/StakingCollectRewardTxRequest.ts deleted file mode 100644 index 8b06b14..0000000 --- a/src/service/src/models/StakingCollectRewardTxRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StakingCollectRewardTxRequest - */ -export interface StakingCollectRewardTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingCollectRewardTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingCollectRewardTxRequest - */ - contractAddress: string; -} - -/** - * Check if a given object implements the StakingCollectRewardTxRequest interface. - */ -export function instanceOfStakingCollectRewardTxRequest(value: object): value is StakingCollectRewardTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) return false; - return true; -} - -export function StakingCollectRewardTxRequestFromJSON(json: any): StakingCollectRewardTxRequest { - return StakingCollectRewardTxRequestFromJSONTyped(json, false); -} - -export function StakingCollectRewardTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'contractAddress': json['contractAddress'], - }; -} - -export function StakingCollectRewardTxRequestToJSON(json: any): StakingCollectRewardTxRequest { - return StakingCollectRewardTxRequestToJSONTyped(json, false); -} - -export function StakingCollectRewardTxRequestToJSONTyped(value?: StakingCollectRewardTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'contractAddress': value['contractAddress'], - }; -} - diff --git a/src/service/src/models/StakingCollectRewardTxResponse.ts b/src/service/src/models/StakingCollectRewardTxResponse.ts deleted file mode 100644 index 34e68e2..0000000 --- a/src/service/src/models/StakingCollectRewardTxResponse.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface StakingCollectRewardTxResponse - */ -export interface StakingCollectRewardTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingCollectRewardTxResponse - */ - chainActivity?: ChainActivity; -} - -/** - * Check if a given object implements the StakingCollectRewardTxResponse interface. - */ -export function instanceOfStakingCollectRewardTxResponse(value: object): value is StakingCollectRewardTxResponse { - return true; -} - -export function StakingCollectRewardTxResponseFromJSON(json: any): StakingCollectRewardTxResponse { - return StakingCollectRewardTxResponseFromJSONTyped(json, false); -} - -export function StakingCollectRewardTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - }; -} - -export function StakingCollectRewardTxResponseToJSON(json: any): StakingCollectRewardTxResponse { - return StakingCollectRewardTxResponseToJSONTyped(json, false); -} - -export function StakingCollectRewardTxResponseToJSONTyped(value?: StakingCollectRewardTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - }; -} - diff --git a/src/service/src/models/StakingStakeTxRequest.ts b/src/service/src/models/StakingStakeTxRequest.ts deleted file mode 100644 index 124c38d..0000000 --- a/src/service/src/models/StakingStakeTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StakingStakeTxRequest - */ -export interface StakingStakeTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingStakeTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingStakeTxRequest - */ - contractAddress: string; - /** - * The amount of asset to stake in native token units - * @type {string} - * @memberof StakingStakeTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StakingStakeTxRequest interface. - */ -export function instanceOfStakingStakeTxRequest(value: object): value is StakingStakeTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) return false; - return true; -} - -export function StakingStakeTxRequestFromJSON(json: any): StakingStakeTxRequest { - return StakingStakeTxRequestFromJSONTyped(json, false); -} - -export function StakingStakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'contractAddress': json['contractAddress'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StakingStakeTxRequestToJSON(json: any): StakingStakeTxRequest { - return StakingStakeTxRequestToJSONTyped(json, false); -} - -export function StakingStakeTxRequestToJSONTyped(value?: StakingStakeTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'contractAddress': value['contractAddress'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StakingStakeTxResponse.ts b/src/service/src/models/StakingStakeTxResponse.ts deleted file mode 100644 index 81842ec..0000000 --- a/src/service/src/models/StakingStakeTxResponse.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface StakingStakeTxResponse - */ -export interface StakingStakeTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingStakeTxResponse - */ - chainActivity?: ChainActivity; -} - -/** - * Check if a given object implements the StakingStakeTxResponse interface. - */ -export function instanceOfStakingStakeTxResponse(value: object): value is StakingStakeTxResponse { - return true; -} - -export function StakingStakeTxResponseFromJSON(json: any): StakingStakeTxResponse { - return StakingStakeTxResponseFromJSONTyped(json, false); -} - -export function StakingStakeTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - }; -} - -export function StakingStakeTxResponseToJSON(json: any): StakingStakeTxResponse { - return StakingStakeTxResponseToJSONTyped(json, false); -} - -export function StakingStakeTxResponseToJSONTyped(value?: StakingStakeTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - }; -} - diff --git a/src/service/src/models/StakingWithdrawTxRequest.ts b/src/service/src/models/StakingWithdrawTxRequest.ts deleted file mode 100644 index 3a59fba..0000000 --- a/src/service/src/models/StakingWithdrawTxRequest.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StakingWithdrawTxRequest - */ -export interface StakingWithdrawTxRequest { - /** - * Ethereum address of the user - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - user: string; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - contractAddress: string; - /** - * The amount of asset to withdraw in native token units - * @type {string} - * @memberof StakingWithdrawTxRequest - */ - amount?: string; -} - -/** - * Check if a given object implements the StakingWithdrawTxRequest interface. - */ -export function instanceOfStakingWithdrawTxRequest(value: object): value is StakingWithdrawTxRequest { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) return false; - return true; -} - -export function StakingWithdrawTxRequestFromJSON(json: any): StakingWithdrawTxRequest { - return StakingWithdrawTxRequestFromJSONTyped(json, false); -} - -export function StakingWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxRequest { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'contractAddress': json['contractAddress'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function StakingWithdrawTxRequestToJSON(json: any): StakingWithdrawTxRequest { - return StakingWithdrawTxRequestToJSONTyped(json, false); -} - -export function StakingWithdrawTxRequestToJSONTyped(value?: StakingWithdrawTxRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'contractAddress': value['contractAddress'], - 'amount': value['amount'], - }; -} - diff --git a/src/service/src/models/StakingWithdrawTxResponse.ts b/src/service/src/models/StakingWithdrawTxResponse.ts deleted file mode 100644 index 1e04243..0000000 --- a/src/service/src/models/StakingWithdrawTxResponse.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ChainActivity } from './ChainActivity'; -import { - ChainActivityFromJSON, - ChainActivityFromJSONTyped, - ChainActivityToJSON, - ChainActivityToJSONTyped, -} from './ChainActivity'; - -/** - * - * @export - * @interface StakingWithdrawTxResponse - */ -export interface StakingWithdrawTxResponse { - /** - * - * @type {ChainActivity} - * @memberof StakingWithdrawTxResponse - */ - chainActivity?: ChainActivity; -} - -/** - * Check if a given object implements the StakingWithdrawTxResponse interface. - */ -export function instanceOfStakingWithdrawTxResponse(value: object): value is StakingWithdrawTxResponse { - return true; -} - -export function StakingWithdrawTxResponseFromJSON(json: any): StakingWithdrawTxResponse { - return StakingWithdrawTxResponseFromJSONTyped(json, false); -} - -export function StakingWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxResponse { - if (json == null) { - return json; - } - return { - - 'chainActivity': json['chainActivity'] == null ? undefined : ChainActivityFromJSON(json['chainActivity']), - }; -} - -export function StakingWithdrawTxResponseToJSON(json: any): StakingWithdrawTxResponse { - return StakingWithdrawTxResponseToJSONTyped(json, false); -} - -export function StakingWithdrawTxResponseToJSONTyped(value?: StakingWithdrawTxResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'chainActivity': ChainActivityToJSON(value['chainActivity']), - }; -} - diff --git a/src/service/src/models/Stats.ts b/src/service/src/models/Stats.ts deleted file mode 100644 index edb6c06..0000000 --- a/src/service/src/models/Stats.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolStats } from './LendingpoolStats'; -import { - LendingpoolStatsFromJSON, - LendingpoolStatsFromJSONTyped, - LendingpoolStatsToJSON, - LendingpoolStatsToJSONTyped, -} from './LendingpoolStats'; -import type { StablecoinSystemStats } from './StablecoinSystemStats'; -import { - StablecoinSystemStatsFromJSON, - StablecoinSystemStatsFromJSONTyped, - StablecoinSystemStatsToJSON, - StablecoinSystemStatsToJSONTyped, -} from './StablecoinSystemStats'; - -/** - * - * @export - * @interface Stats - */ -export interface Stats { - /** - * - * @type {StablecoinSystemStats} - * @memberof Stats - */ - stablecoinSystem: StablecoinSystemStats; - /** - * - * @type {LendingpoolStats} - * @memberof Stats - */ - lendingpool: LendingpoolStats; -} - -/** - * Check if a given object implements the Stats interface. - */ -export function instanceOfStats(value: object): value is Stats { - if (!('stablecoinSystem' in value) || value['stablecoinSystem'] === undefined) return false; - if (!('lendingpool' in value) || value['lendingpool'] === undefined) return false; - return true; -} - -export function StatsFromJSON(json: any): Stats { - return StatsFromJSONTyped(json, false); -} - -export function StatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stats { - if (json == null) { - return json; - } - return { - - 'stablecoinSystem': StablecoinSystemStatsFromJSON(json['stablecoinSystem']), - 'lendingpool': LendingpoolStatsFromJSON(json['lendingpool']), - }; -} - -export function StatsToJSON(json: any): Stats { - return StatsToJSONTyped(json, false); -} - -export function StatsToJSONTyped(value?: Stats | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'stablecoinSystem': StablecoinSystemStatsToJSON(value['stablecoinSystem']), - 'lendingpool': LendingpoolStatsToJSON(value['lendingpool']), - }; -} - diff --git a/src/service/src/models/Symbol.ts b/src/service/src/models/Symbol.ts deleted file mode 100644 index 66c507b..0000000 --- a/src/service/src/models/Symbol.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * Symbol representation - * @export - */ -export const Symbol = { - USD: 'USD', - DAI: 'DAI', - USDT: 'USDT', - USDC: 'USDC', - WBTC: 'WBTC', - ETH: 'ETH', - WETH: 'WETH', - ZAR: 'ZAR', - TMN: 'TMN' -} as const; -export type Symbol = typeof Symbol[keyof typeof Symbol]; - - -export function instanceOfSymbol(value: any): boolean { - for (const key in Symbol) { - if (Object.prototype.hasOwnProperty.call(Symbol, key)) { - if (Symbol[key as keyof typeof Symbol] === value) { - return true; - } - } - } - return false; -} - -export function SymbolFromJSON(json: any): Symbol { - return SymbolFromJSONTyped(json, false); -} - -export function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol { - return json as Symbol; -} - -export function SymbolToJSON(value?: Symbol | null): any { - return value as any; -} - -export function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol { - return value as Symbol; -} - diff --git a/src/service/src/models/SystemBadDebt.ts b/src/service/src/models/SystemBadDebt.ts deleted file mode 100644 index 497b785..0000000 --- a/src/service/src/models/SystemBadDebt.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System bad debt - * @export - * @interface SystemBadDebt - */ -export interface SystemBadDebt { -} - -/** - * Check if a given object implements the SystemBadDebt interface. - */ -export function instanceOfSystemBadDebt(value: object): value is SystemBadDebt { - return true; -} - -export function SystemBadDebtFromJSON(json: any): SystemBadDebt { - return SystemBadDebtFromJSONTyped(json, false); -} - -export function SystemBadDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemBadDebt { - return json; -} - -export function SystemBadDebtToJSON(json: any): SystemBadDebt { - return SystemBadDebtToJSONTyped(json, false); -} - -export function SystemBadDebtToJSONTyped(value?: SystemBadDebt | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/SystemDebt.ts b/src/service/src/models/SystemDebt.ts deleted file mode 100644 index a2fbdac..0000000 --- a/src/service/src/models/SystemDebt.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System debt - * @export - * @interface SystemDebt - */ -export interface SystemDebt { -} - -/** - * Check if a given object implements the SystemDebt interface. - */ -export function instanceOfSystemDebt(value: object): value is SystemDebt { - return true; -} - -export function SystemDebtFromJSON(json: any): SystemDebt { - return SystemDebtFromJSONTyped(json, false); -} - -export function SystemDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebt { - return json; -} - -export function SystemDebtToJSON(json: any): SystemDebt { - return SystemDebtToJSONTyped(json, false); -} - -export function SystemDebtToJSONTyped(value?: SystemDebt | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/SystemDebtCeiling.ts b/src/service/src/models/SystemDebtCeiling.ts deleted file mode 100644 index e384d8d..0000000 --- a/src/service/src/models/SystemDebtCeiling.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System debt ceiling - * @export - * @interface SystemDebtCeiling - */ -export interface SystemDebtCeiling { -} - -/** - * Check if a given object implements the SystemDebtCeiling interface. - */ -export function instanceOfSystemDebtCeiling(value: object): value is SystemDebtCeiling { - return true; -} - -export function SystemDebtCeilingFromJSON(json: any): SystemDebtCeiling { - return SystemDebtCeilingFromJSONTyped(json, false); -} - -export function SystemDebtCeilingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebtCeiling { - return json; -} - -export function SystemDebtCeilingToJSON(json: any): SystemDebtCeiling { - return SystemDebtCeilingToJSONTyped(json, false); -} - -export function SystemDebtCeilingToJSONTyped(value?: SystemDebtCeiling | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/SystemSurplus.ts b/src/service/src/models/SystemSurplus.ts deleted file mode 100644 index 97f4a02..0000000 --- a/src/service/src/models/SystemSurplus.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System surplus - * @export - * @interface SystemSurplus - */ -export interface SystemSurplus { -} - -/** - * Check if a given object implements the SystemSurplus interface. - */ -export function instanceOfSystemSurplus(value: object): value is SystemSurplus { - return true; -} - -export function SystemSurplusFromJSON(json: any): SystemSurplus { - return SystemSurplusFromJSONTyped(json, false); -} - -export function SystemSurplusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplus { - return json; -} - -export function SystemSurplusToJSON(json: any): SystemSurplus { - return SystemSurplusToJSONTyped(json, false); -} - -export function SystemSurplusToJSONTyped(value?: SystemSurplus | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/SystemSurplusBuffer.ts b/src/service/src/models/SystemSurplusBuffer.ts deleted file mode 100644 index 7d856c9..0000000 --- a/src/service/src/models/SystemSurplusBuffer.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System surplus buffer - * @export - * @interface SystemSurplusBuffer - */ -export interface SystemSurplusBuffer { -} - -/** - * Check if a given object implements the SystemSurplusBuffer interface. - */ -export function instanceOfSystemSurplusBuffer(value: object): value is SystemSurplusBuffer { - return true; -} - -export function SystemSurplusBufferFromJSON(json: any): SystemSurplusBuffer { - return SystemSurplusBufferFromJSONTyped(json, false); -} - -export function SystemSurplusBufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusBuffer { - return json; -} - -export function SystemSurplusBufferToJSON(json: any): SystemSurplusBuffer { - return SystemSurplusBufferToJSONTyped(json, false); -} - -export function SystemSurplusBufferToJSONTyped(value?: SystemSurplusBuffer | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/SystemSurplusLotSize.ts b/src/service/src/models/SystemSurplusLotSize.ts deleted file mode 100644 index 72799f9..0000000 --- a/src/service/src/models/SystemSurplusLotSize.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * System surplus lot size - * @export - * @interface SystemSurplusLotSize - */ -export interface SystemSurplusLotSize { -} - -/** - * Check if a given object implements the SystemSurplusLotSize interface. - */ -export function instanceOfSystemSurplusLotSize(value: object): value is SystemSurplusLotSize { - return true; -} - -export function SystemSurplusLotSizeFromJSON(json: any): SystemSurplusLotSize { - return SystemSurplusLotSizeFromJSONTyped(json, false); -} - -export function SystemSurplusLotSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusLotSize { - return json; -} - -export function SystemSurplusLotSizeToJSON(json: any): SystemSurplusLotSize { - return SystemSurplusLotSizeToJSONTyped(json, false); -} - -export function SystemSurplusLotSizeToJSONTyped(value?: SystemSurplusLotSize | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/TimeRange.ts b/src/service/src/models/TimeRange.ts deleted file mode 100644 index 6924e62..0000000 --- a/src/service/src/models/TimeRange.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface TimeRange - */ -export interface TimeRange { - /** - * - * @type {Date} - * @memberof TimeRange - */ - from?: Date; - /** - * - * @type {Date} - * @memberof TimeRange - */ - to?: Date; -} - -/** - * Check if a given object implements the TimeRange interface. - */ -export function instanceOfTimeRange(value: object): value is TimeRange { - return true; -} - -export function TimeRangeFromJSON(json: any): TimeRange { - return TimeRangeFromJSONTyped(json, false); -} - -export function TimeRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeRange { - if (json == null) { - return json; - } - return { - - 'from': json['from'] == null ? undefined : (new Date(json['from'])), - 'to': json['to'] == null ? undefined : (new Date(json['to'])), - }; -} - -export function TimeRangeToJSON(json: any): TimeRange { - return TimeRangeToJSONTyped(json, false); -} - -export function TimeRangeToJSONTyped(value?: TimeRange | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'from': value['from'] == null ? undefined : ((value['from']).toISOString()), - 'to': value['to'] == null ? undefined : ((value['to']).toISOString()), - }; -} - diff --git a/src/service/src/models/Timestamp.ts b/src/service/src/models/Timestamp.ts deleted file mode 100644 index af0207a..0000000 --- a/src/service/src/models/Timestamp.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Timestamp - */ -export interface Timestamp { - /** - * Jalaali date - * @type {string} - * @memberof Timestamp - */ - jalaali: string; - /** - * Gregorian date - * @type {string} - * @memberof Timestamp - */ - gregorian: string; -} - -/** - * Check if a given object implements the Timestamp interface. - */ -export function instanceOfTimestamp(value: object): value is Timestamp { - if (!('jalaali' in value) || value['jalaali'] === undefined) return false; - if (!('gregorian' in value) || value['gregorian'] === undefined) return false; - return true; -} - -export function TimestampFromJSON(json: any): Timestamp { - return TimestampFromJSONTyped(json, false); -} - -export function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp { - if (json == null) { - return json; - } - return { - - 'jalaali': json['jalaali'], - 'gregorian': json['gregorian'], - }; -} - -export function TimestampToJSON(json: any): Timestamp { - return TimestampToJSONTyped(json, false); -} - -export function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'jalaali': value['jalaali'], - 'gregorian': value['gregorian'], - }; -} - diff --git a/src/service/src/models/Token.ts b/src/service/src/models/Token.ts deleted file mode 100644 index adcd269..0000000 --- a/src/service/src/models/Token.ts +++ /dev/null @@ -1,130 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; - -/** - * - * @export - * @interface Token - */ -export interface Token { - /** - * The name of the token. - * @type {string} - * @memberof Token - */ - name: string; - /** - * - * @type {Symbol} - * @memberof Token - */ - symbol: Symbol; - /** - * The number of decimals for the token. - * @type {number} - * @memberof Token - */ - decimals: number; - /** - * The Ethereum address of the token. - * @type {string} - * @memberof Token - */ - address: string; - /** - * The URI of the token's logo. - * @type {string} - * @memberof Token - */ - logoUri: string; - /** - * The chain ID of the token. - * @type {number} - * @memberof Token - */ - chainId: number; - /** - * The Persian name of the token. - * @type {string} - * @memberof Token - */ - persianName: string; -} - - - -/** - * Check if a given object implements the Token interface. - */ -export function instanceOfToken(value: object): value is Token { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('decimals' in value) || value['decimals'] === undefined) return false; - if (!('address' in value) || value['address'] === undefined) return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) return false; - if (!('chainId' in value) || value['chainId'] === undefined) return false; - if (!('persianName' in value) || value['persianName'] === undefined) return false; - return true; -} - -export function TokenFromJSON(json: any): Token { - return TokenFromJSONTyped(json, false); -} - -export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Token { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'symbol': SymbolFromJSON(json['symbol']), - 'decimals': json['decimals'], - 'address': json['address'], - 'logoUri': json['logoUri'], - 'chainId': json['chainId'], - 'persianName': json['persianName'], - }; -} - -export function TokenToJSON(json: any): Token { - return TokenToJSONTyped(json, false); -} - -export function TokenToJSONTyped(value?: Token | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'symbol': SymbolToJSON(value['symbol']), - 'decimals': value['decimals'], - 'address': value['address'], - 'logoUri': value['logoUri'], - 'chainId': value['chainId'], - 'persianName': value['persianName'], - }; -} - diff --git a/src/service/src/models/TradeType.ts b/src/service/src/models/TradeType.ts deleted file mode 100644 index 246f74c..0000000 --- a/src/service/src/models/TradeType.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const TradeType = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -} as const; -export type TradeType = typeof TradeType[keyof typeof TradeType]; - - -export function instanceOfTradeType(value: any): boolean { - for (const key in TradeType) { - if (Object.prototype.hasOwnProperty.call(TradeType, key)) { - if (TradeType[key as keyof typeof TradeType] === value) { - return true; - } - } - } - return false; -} - -export function TradeTypeFromJSON(json: any): TradeType { - return TradeTypeFromJSONTyped(json, false); -} - -export function TradeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeType { - return json as TradeType; -} - -export function TradeTypeToJSON(value?: TradeType | null): any { - return value as any; -} - -export function TradeTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TradeType { - return value as TradeType; -} - diff --git a/src/service/src/models/Type.ts b/src/service/src/models/Type.ts deleted file mode 100644 index ec9d532..0000000 --- a/src/service/src/models/Type.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Type - */ -export interface Type { - /** - * - * @type {string} - * @memberof Type - */ - name: string; - /** - * - * @type {string} - * @memberof Type - */ - type: string; -} - -/** - * Check if a given object implements the Type interface. - */ -export function instanceOfType(value: object): value is Type { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - return true; -} - -export function TypeFromJSON(json: any): Type { - return TypeFromJSONTyped(json, false); -} - -export function TypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Type { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'type': json['type'], - }; -} - -export function TypeToJSON(json: any): Type { - return TypeToJSONTyped(json, false); -} - -export function TypeToJSONTyped(value?: Type | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'type': value['type'], - }; -} - diff --git a/src/service/src/models/TypedData.ts b/src/service/src/models/TypedData.ts deleted file mode 100644 index b2a39f5..0000000 --- a/src/service/src/models/TypedData.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Type } from './Type'; -import { - TypeFromJSON, - TypeFromJSONTyped, - TypeToJSON, - TypeToJSONTyped, -} from './Type'; -import type { TypedDataDomain } from './TypedDataDomain'; -import { - TypedDataDomainFromJSON, - TypedDataDomainFromJSONTyped, - TypedDataDomainToJSON, - TypedDataDomainToJSONTyped, -} from './TypedDataDomain'; - -/** - * - * @export - * @interface TypedData - */ -export interface TypedData { - /** - * A map where each key is a string and each value is a list of Type - * @type {{ [key: string]: Array | undefined; }} - * @memberof TypedData - */ - types: { [key: string]: Array | undefined; }; - /** - * - * @type {string} - * @memberof TypedData - */ - primaryType: string; - /** - * - * @type {TypedDataDomain} - * @memberof TypedData - */ - domain: TypedDataDomain; - /** - * - * @type {{ [key: string]: any | undefined; }} - * @memberof TypedData - */ - message: { [key: string]: any | undefined; }; -} - -/** - * Check if a given object implements the TypedData interface. - */ -export function instanceOfTypedData(value: object): value is TypedData { - if (!('types' in value) || value['types'] === undefined) return false; - if (!('primaryType' in value) || value['primaryType'] === undefined) return false; - if (!('domain' in value) || value['domain'] === undefined) return false; - if (!('message' in value) || value['message'] === undefined) return false; - return true; -} - -export function TypedDataFromJSON(json: any): TypedData { - return TypedDataFromJSONTyped(json, false); -} - -export function TypedDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedData { - if (json == null) { - return json; - } - return { - - 'types': json['types'], - 'primaryType': json['primaryType'], - 'domain': TypedDataDomainFromJSON(json['domain']), - 'message': json['message'], - }; -} - -export function TypedDataToJSON(json: any): TypedData { - return TypedDataToJSONTyped(json, false); -} - -export function TypedDataToJSONTyped(value?: TypedData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'types': value['types'], - 'primaryType': value['primaryType'], - 'domain': TypedDataDomainToJSON(value['domain']), - 'message': value['message'], - }; -} - diff --git a/src/service/src/models/TypedDataDomain.ts b/src/service/src/models/TypedDataDomain.ts deleted file mode 100644 index 2575bfd..0000000 --- a/src/service/src/models/TypedDataDomain.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface TypedDataDomain - */ -export interface TypedDataDomain { - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - name: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - version?: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - chainId: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - verifyingContract: string; - /** - * - * @type {string} - * @memberof TypedDataDomain - */ - salt?: string; -} - -/** - * Check if a given object implements the TypedDataDomain interface. - */ -export function instanceOfTypedDataDomain(value: object): value is TypedDataDomain { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('chainId' in value) || value['chainId'] === undefined) return false; - if (!('verifyingContract' in value) || value['verifyingContract'] === undefined) return false; - return true; -} - -export function TypedDataDomainFromJSON(json: any): TypedDataDomain { - return TypedDataDomainFromJSONTyped(json, false); -} - -export function TypedDataDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedDataDomain { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'version': json['version'] == null ? undefined : json['version'], - 'chainId': json['chainId'], - 'verifyingContract': json['verifyingContract'], - 'salt': json['salt'] == null ? undefined : json['salt'], - }; -} - -export function TypedDataDomainToJSON(json: any): TypedDataDomain { - return TypedDataDomainToJSONTyped(json, false); -} - -export function TypedDataDomainToJSONTyped(value?: TypedDataDomain | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'version': value['version'], - 'chainId': value['chainId'], - 'verifyingContract': value['verifyingContract'], - 'salt': value['salt'], - }; -} - diff --git a/src/service/src/models/UnclaimedReward.ts b/src/service/src/models/UnclaimedReward.ts deleted file mode 100644 index ca8b832..0000000 --- a/src/service/src/models/UnclaimedReward.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * The amount of unclaimed reward in native token units - * @export - * @interface UnclaimedReward - */ -export interface UnclaimedReward { -} - -/** - * Check if a given object implements the UnclaimedReward interface. - */ -export function instanceOfUnclaimedReward(value: object): value is UnclaimedReward { - return true; -} - -export function UnclaimedRewardFromJSON(json: any): UnclaimedReward { - return UnclaimedRewardFromJSONTyped(json, false); -} - -export function UnclaimedRewardFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnclaimedReward { - return json; -} - -export function UnclaimedRewardToJSON(json: any): UnclaimedReward { - return UnclaimedRewardToJSONTyped(json, false); -} - -export function UnclaimedRewardToJSONTyped(value?: UnclaimedReward | null, ignoreDiscriminator: boolean = false): any { - return value; -} - diff --git a/src/service/src/models/UpdateOrderRequest.ts b/src/service/src/models/UpdateOrderRequest.ts deleted file mode 100644 index bfeedae..0000000 --- a/src/service/src/models/UpdateOrderRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface UpdateOrderRequest - */ -export interface UpdateOrderRequest { - /** - * - * @type {string} - * @memberof UpdateOrderRequest - */ - orderHash: string; -} - -/** - * Check if a given object implements the UpdateOrderRequest interface. - */ -export function instanceOfUpdateOrderRequest(value: object): value is UpdateOrderRequest { - if (!('orderHash' in value) || value['orderHash'] === undefined) return false; - return true; -} - -export function UpdateOrderRequestFromJSON(json: any): UpdateOrderRequest { - return UpdateOrderRequestFromJSONTyped(json, false); -} - -export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequest { - if (json == null) { - return json; - } - return { - - 'orderHash': json['orderHash'], - }; -} - -export function UpdateOrderRequestToJSON(json: any): UpdateOrderRequest { - return UpdateOrderRequestToJSONTyped(json, false); -} - -export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'orderHash': value['orderHash'], - }; -} - diff --git a/src/service/src/models/UserBorrowsResponse.ts b/src/service/src/models/UserBorrowsResponse.ts deleted file mode 100644 index c6fbaaa..0000000 --- a/src/service/src/models/UserBorrowsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolBorrow } from './LendingpoolBorrow'; -import { - LendingpoolBorrowFromJSON, - LendingpoolBorrowFromJSONTyped, - LendingpoolBorrowToJSON, - LendingpoolBorrowToJSONTyped, -} from './LendingpoolBorrow'; - -/** - * - * @export - * @interface UserBorrowsResponse - */ -export interface UserBorrowsResponse { - /** - * - * @type {Array} - * @memberof UserBorrowsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the UserBorrowsResponse interface. - */ -export function instanceOfUserBorrowsResponse(value: object): value is UserBorrowsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function UserBorrowsResponseFromJSON(json: any): UserBorrowsResponse { - return UserBorrowsResponseFromJSONTyped(json, false); -} - -export function UserBorrowsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserBorrowsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(LendingpoolBorrowFromJSON)), - }; -} - -export function UserBorrowsResponseToJSON(json: any): UserBorrowsResponse { - return UserBorrowsResponseToJSONTyped(json, false); -} - -export function UserBorrowsResponseToJSONTyped(value?: UserBorrowsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(LendingpoolBorrowToJSON)), - }; -} - diff --git a/src/service/src/models/UserDepositsResponse.ts b/src/service/src/models/UserDepositsResponse.ts deleted file mode 100644 index d2ebcd8..0000000 --- a/src/service/src/models/UserDepositsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LendingpoolDeposit } from './LendingpoolDeposit'; -import { - LendingpoolDepositFromJSON, - LendingpoolDepositFromJSONTyped, - LendingpoolDepositToJSON, - LendingpoolDepositToJSONTyped, -} from './LendingpoolDeposit'; - -/** - * - * @export - * @interface UserDepositsResponse - */ -export interface UserDepositsResponse { - /** - * - * @type {Array} - * @memberof UserDepositsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the UserDepositsResponse interface. - */ -export function instanceOfUserDepositsResponse(value: object): value is UserDepositsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function UserDepositsResponseFromJSON(json: any): UserDepositsResponse { - return UserDepositsResponseFromJSONTyped(json, false); -} - -export function UserDepositsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDepositsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(LendingpoolDepositFromJSON)), - }; -} - -export function UserDepositsResponseToJSON(json: any): UserDepositsResponse { - return UserDepositsResponseToJSONTyped(json, false); -} - -export function UserDepositsResponseToJSONTyped(value?: UserDepositsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(LendingpoolDepositToJSON)), - }; -} - diff --git a/src/service/src/models/UserError.ts b/src/service/src/models/UserError.ts deleted file mode 100644 index f57ae05..0000000 --- a/src/service/src/models/UserError.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ErrorMessage } from './ErrorMessage'; -import { - ErrorMessageFromJSON, - ErrorMessageFromJSONTyped, - ErrorMessageToJSON, - ErrorMessageToJSONTyped, -} from './ErrorMessage'; - -/** - * - * @export - * @interface UserError - */ -export interface UserError { - /** - * Localized error messages - * @type {{ [key: string]: ErrorMessage | undefined; }} - * @memberof UserError - */ - messages: { [key: string]: ErrorMessage | undefined; }; - /** - * - * @type {Array} - * @memberof UserError - */ - reasons: Array; -} - -/** - * Check if a given object implements the UserError interface. - */ -export function instanceOfUserError(value: object): value is UserError { - if (!('messages' in value) || value['messages'] === undefined) return false; - if (!('reasons' in value) || value['reasons'] === undefined) return false; - return true; -} - -export function UserErrorFromJSON(json: any): UserError { - return UserErrorFromJSONTyped(json, false); -} - -export function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError { - if (json == null) { - return json; - } - return { - - 'messages': (mapValues(json['messages'], ErrorMessageFromJSON)), - 'reasons': json['reasons'], - }; -} - -export function UserErrorToJSON(json: any): UserError { - return UserErrorToJSONTyped(json, false); -} - -export function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'messages': (mapValues(value['messages'], ErrorMessageToJSON)), - 'reasons': value['reasons'], - }; -} - diff --git a/src/service/src/models/UserStake.ts b/src/service/src/models/UserStake.ts deleted file mode 100644 index 3660cca..0000000 --- a/src/service/src/models/UserStake.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface UserStake - */ -export interface UserStake { - /** - * Ethereum address of the user - * @type {string} - * @memberof UserStake - */ - user: string; - /** - * The amount of asset staked in native token units - * @type {{ [key: string]: string | undefined; }} - * @memberof UserStake - */ - balance: { [key: string]: string | undefined; }; - /** - * The amount of unclaimed reward in native token units - * @type {{ [key: string]: string | undefined; }} - * @memberof UserStake - */ - unclaimedReward: { [key: string]: string | undefined; }; - /** - * Ethereum address of the staking contract - * @type {string} - * @memberof UserStake - */ - contractAddress: string; - /** - * Name of staking plan - * @type {string} - * @memberof UserStake - */ - planName: string; -} - -/** - * Check if a given object implements the UserStake interface. - */ -export function instanceOfUserStake(value: object): value is UserStake { - if (!('user' in value) || value['user'] === undefined) return false; - if (!('balance' in value) || value['balance'] === undefined) return false; - if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) return false; - if (!('contractAddress' in value) || value['contractAddress'] === undefined) return false; - if (!('planName' in value) || value['planName'] === undefined) return false; - return true; -} - -export function UserStakeFromJSON(json: any): UserStake { - return UserStakeFromJSONTyped(json, false); -} - -export function UserStakeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStake { - if (json == null) { - return json; - } - return { - - 'user': json['user'], - 'balance': json['balance'], - 'unclaimedReward': json['unclaimedReward'], - 'contractAddress': json['contractAddress'], - 'planName': json['planName'], - }; -} - -export function UserStakeToJSON(json: any): UserStake { - return UserStakeToJSONTyped(json, false); -} - -export function UserStakeToJSONTyped(value?: UserStake | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': value['user'], - 'balance': value['balance'], - 'unclaimedReward': value['unclaimedReward'], - 'contractAddress': value['contractAddress'], - 'planName': value['planName'], - }; -} - diff --git a/src/service/src/models/UserStakesResponse.ts b/src/service/src/models/UserStakesResponse.ts deleted file mode 100644 index b5cc0d0..0000000 --- a/src/service/src/models/UserStakesResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { UserStake } from './UserStake'; -import { - UserStakeFromJSON, - UserStakeFromJSONTyped, - UserStakeToJSON, - UserStakeToJSONTyped, -} from './UserStake'; - -/** - * - * @export - * @interface UserStakesResponse - */ -export interface UserStakesResponse { - /** - * - * @type {Array} - * @memberof UserStakesResponse - */ - data: Array; -} - -/** - * Check if a given object implements the UserStakesResponse interface. - */ -export function instanceOfUserStakesResponse(value: object): value is UserStakesResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function UserStakesResponseFromJSON(json: any): UserStakesResponse { - return UserStakesResponseFromJSONTyped(json, false); -} - -export function UserStakesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStakesResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(UserStakeFromJSON)), - }; -} - -export function UserStakesResponseToJSON(json: any): UserStakesResponse { - return UserStakesResponseToJSONTyped(json, false); -} - -export function UserStakesResponseToJSONTyped(value?: UserStakesResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(UserStakeToJSON)), - }; -} - diff --git a/src/service/src/models/V3PoolInRoute.ts b/src/service/src/models/V3PoolInRoute.ts deleted file mode 100644 index ed1824f..0000000 --- a/src/service/src/models/V3PoolInRoute.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Token } from './Token'; -import { - TokenFromJSON, - TokenFromJSONTyped, - TokenToJSON, - TokenToJSONTyped, -} from './Token'; - -/** - * - * @export - * @interface V3PoolInRoute - */ -export interface V3PoolInRoute { - /** - * - * @type {string} - * @memberof V3PoolInRoute - */ - address: string; - /** - * - * @type {Token} - * @memberof V3PoolInRoute - */ - tokenIn: Token; - /** - * - * @type {Token} - * @memberof V3PoolInRoute - */ - tokenOut: Token; - /** - * - * @type {string} - * @memberof V3PoolInRoute - */ - fee: string; -} - -/** - * Check if a given object implements the V3PoolInRoute interface. - */ -export function instanceOfV3PoolInRoute(value: object): value is V3PoolInRoute { - if (!('address' in value) || value['address'] === undefined) return false; - if (!('tokenIn' in value) || value['tokenIn'] === undefined) return false; - if (!('tokenOut' in value) || value['tokenOut'] === undefined) return false; - if (!('fee' in value) || value['fee'] === undefined) return false; - return true; -} - -export function V3PoolInRouteFromJSON(json: any): V3PoolInRoute { - return V3PoolInRouteFromJSONTyped(json, false); -} - -export function V3PoolInRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PoolInRoute { - if (json == null) { - return json; - } - return { - - 'address': json['address'], - 'tokenIn': TokenFromJSON(json['tokenIn']), - 'tokenOut': TokenFromJSON(json['tokenOut']), - 'fee': json['fee'], - }; -} - -export function V3PoolInRouteToJSON(json: any): V3PoolInRoute { - return V3PoolInRouteToJSONTyped(json, false); -} - -export function V3PoolInRouteToJSONTyped(value?: V3PoolInRoute | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'address': value['address'], - 'tokenIn': TokenToJSON(value['tokenIn']), - 'tokenOut': TokenToJSON(value['tokenOut']), - 'fee': value['fee'], - }; -} - diff --git a/src/service/src/models/Vault.ts b/src/service/src/models/Vault.ts deleted file mode 100644 index 0fe730e..0000000 --- a/src/service/src/models/Vault.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Ilk } from './Ilk'; -import { - IlkFromJSON, - IlkFromJSONTyped, - IlkToJSON, - IlkToJSONTyped, -} from './Ilk'; - -/** - * - * @export - * @interface Vault - */ -export interface Vault { - /** - * Identifier for the vault. - * @type {number} - * @memberof Vault - */ - id: number; - /** - * Ethereum address of the vault owner. - * @type {string} - * @memberof Vault - */ - owner: string; - /** - * Ethereum address of the vault urn. - * @type {string} - * @memberof Vault - */ - urn: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - liquidationPrice: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - collateralLocked: { [key: string]: string | undefined; }; - /** - * The collateralization ratio of the vault. - * @type {string} - * @memberof Vault - */ - collateralizationRatio: string; - /** - * The loan to value of the vault. - * @type {string} - * @memberof Vault - */ - loanToValue: string; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - debt: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - availableToWithdraw: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Vault - */ - availableToMint: { [key: string]: string | undefined; }; - /** - * - * @type {Ilk} - * @memberof Vault - */ - ilk: Ilk; -} - -/** - * Check if a given object implements the Vault interface. - */ -export function instanceOfVault(value: object): value is Vault { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('owner' in value) || value['owner'] === undefined) return false; - if (!('urn' in value) || value['urn'] === undefined) return false; - if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) return false; - if (!('collateralLocked' in value) || value['collateralLocked'] === undefined) return false; - if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) return false; - if (!('debt' in value) || value['debt'] === undefined) return false; - if (!('availableToWithdraw' in value) || value['availableToWithdraw'] === undefined) return false; - if (!('availableToMint' in value) || value['availableToMint'] === undefined) return false; - if (!('ilk' in value) || value['ilk'] === undefined) return false; - return true; -} - -export function VaultFromJSON(json: any): Vault { - return VaultFromJSONTyped(json, false); -} - -export function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vault { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'owner': json['owner'], - 'urn': json['urn'], - 'liquidationPrice': json['liquidationPrice'], - 'collateralLocked': json['collateralLocked'], - 'collateralizationRatio': json['collateralizationRatio'], - 'loanToValue': json['loanToValue'], - 'debt': json['debt'], - 'availableToWithdraw': json['availableToWithdraw'], - 'availableToMint': json['availableToMint'], - 'ilk': IlkFromJSON(json['ilk']), - }; -} - -export function VaultToJSON(json: any): Vault { - return VaultToJSONTyped(json, false); -} - -export function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'owner': value['owner'], - 'urn': value['urn'], - 'liquidationPrice': value['liquidationPrice'], - 'collateralLocked': value['collateralLocked'], - 'collateralizationRatio': value['collateralizationRatio'], - 'loanToValue': value['loanToValue'], - 'debt': value['debt'], - 'availableToWithdraw': value['availableToWithdraw'], - 'availableToMint': value['availableToMint'], - 'ilk': IlkToJSON(value['ilk']), - }; -} - diff --git a/src/service/src/models/VaultEvent.ts b/src/service/src/models/VaultEvent.ts deleted file mode 100644 index 36f5879..0000000 --- a/src/service/src/models/VaultEvent.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Ilk } from './Ilk'; -import { - IlkFromJSON, - IlkFromJSONTyped, - IlkToJSON, - IlkToJSONTyped, -} from './Ilk'; - -/** - * - * @export - * @interface VaultEvent - */ -export interface VaultEvent { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof VaultEvent - */ - deltaCollateral: { [key: string]: string | undefined; }; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof VaultEvent - */ - deltaDebt: { [key: string]: string | undefined; }; - /** - * - * @type {Ilk} - * @memberof VaultEvent - */ - ilk: Ilk; -} - -/** - * Check if a given object implements the VaultEvent interface. - */ -export function instanceOfVaultEvent(value: object): value is VaultEvent { - if (!('deltaCollateral' in value) || value['deltaCollateral'] === undefined) return false; - if (!('deltaDebt' in value) || value['deltaDebt'] === undefined) return false; - if (!('ilk' in value) || value['ilk'] === undefined) return false; - return true; -} - -export function VaultEventFromJSON(json: any): VaultEvent { - return VaultEventFromJSONTyped(json, false); -} - -export function VaultEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEvent { - if (json == null) { - return json; - } - return { - - 'deltaCollateral': json['deltaCollateral'], - 'deltaDebt': json['deltaDebt'], - 'ilk': IlkFromJSON(json['ilk']), - }; -} - -export function VaultEventToJSON(json: any): VaultEvent { - return VaultEventToJSONTyped(json, false); -} - -export function VaultEventToJSONTyped(value?: VaultEvent | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'deltaCollateral': value['deltaCollateral'], - 'deltaDebt': value['deltaDebt'], - 'ilk': IlkToJSON(value['ilk']), - }; -} - diff --git a/src/service/src/models/VaultEventExtension.ts b/src/service/src/models/VaultEventExtension.ts deleted file mode 100644 index 6eb4d9f..0000000 --- a/src/service/src/models/VaultEventExtension.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { VaultEvent } from './VaultEvent'; -import { - VaultEventFromJSON, - VaultEventFromJSONTyped, - VaultEventToJSON, - VaultEventToJSONTyped, -} from './VaultEvent'; - -/** - * - * @export - * @interface VaultEventExtension - */ -export interface VaultEventExtension { - /** - * - * @type {VaultEvent} - * @memberof VaultEventExtension - */ - payload?: VaultEvent; -} - -/** - * Check if a given object implements the VaultEventExtension interface. - */ -export function instanceOfVaultEventExtension(value: object): value is VaultEventExtension { - return true; -} - -export function VaultEventExtensionFromJSON(json: any): VaultEventExtension { - return VaultEventExtensionFromJSONTyped(json, false); -} - -export function VaultEventExtensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventExtension { - if (json == null) { - return json; - } - return { - - 'payload': json['payload'] == null ? undefined : VaultEventFromJSON(json['payload']), - }; -} - -export function VaultEventExtensionToJSON(json: any): VaultEventExtension { - return VaultEventExtensionToJSONTyped(json, false); -} - -export function VaultEventExtensionToJSONTyped(value?: VaultEventExtension | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'payload': VaultEventToJSON(value['payload']), - }; -} - diff --git a/src/service/src/models/VaultEventItem.ts b/src/service/src/models/VaultEventItem.ts deleted file mode 100644 index c65b90e..0000000 --- a/src/service/src/models/VaultEventItem.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { VaultEvent } from './VaultEvent'; -import { - VaultEventFromJSON, - VaultEventFromJSONTyped, - VaultEventToJSON, - VaultEventToJSONTyped, -} from './VaultEvent'; -import type { EventDomain } from './EventDomain'; -import { - EventDomainFromJSON, - EventDomainFromJSONTyped, - EventDomainToJSON, - EventDomainToJSONTyped, -} from './EventDomain'; -import type { EventType } from './EventType'; -import { - EventTypeFromJSON, - EventTypeFromJSONTyped, - EventTypeToJSON, - EventTypeToJSONTyped, -} from './EventType'; -import type { Log } from './Log'; -import { - LogFromJSON, - LogFromJSONTyped, - LogToJSON, - LogToJSONTyped, -} from './Log'; -import type { EventName } from './EventName'; -import { - EventNameFromJSON, - EventNameFromJSONTyped, - EventNameToJSON, - EventNameToJSONTyped, -} from './EventName'; - -/** - * - * @export - * @interface VaultEventItem - */ -export interface VaultEventItem { - /** - * Identifier for the event. - * @type {number} - * @memberof VaultEventItem - */ - id: number; - /** - * - * @type {EventName} - * @memberof VaultEventItem - */ - name: EventName; - /** - * - * @type {EventType} - * @memberof VaultEventItem - */ - type: EventType; - /** - * - * @type {EventDomain} - * @memberof VaultEventItem - */ - domain: EventDomain; - /** - * - * @type {Log} - * @memberof VaultEventItem - */ - raw: Log; - /** - * - * @type {VaultEvent} - * @memberof VaultEventItem - */ - payload?: VaultEvent; -} - - - -/** - * Check if a given object implements the VaultEventItem interface. - */ -export function instanceOfVaultEventItem(value: object): value is VaultEventItem { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('name' in value) || value['name'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('domain' in value) || value['domain'] === undefined) return false; - if (!('raw' in value) || value['raw'] === undefined) return false; - return true; -} - -export function VaultEventItemFromJSON(json: any): VaultEventItem { - return VaultEventItemFromJSONTyped(json, false); -} - -export function VaultEventItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventItem { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'name': EventNameFromJSON(json['name']), - 'type': EventTypeFromJSON(json['type']), - 'domain': EventDomainFromJSON(json['domain']), - 'raw': LogFromJSON(json['raw']), - 'payload': json['payload'] == null ? undefined : VaultEventFromJSON(json['payload']), - }; -} - -export function VaultEventItemToJSON(json: any): VaultEventItem { - return VaultEventItemToJSONTyped(json, false); -} - -export function VaultEventItemToJSONTyped(value?: VaultEventItem | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'name': EventNameToJSON(value['name']), - 'type': EventTypeToJSON(value['type']), - 'domain': EventDomainToJSON(value['domain']), - 'raw': LogToJSON(value['raw']), - 'payload': VaultEventToJSON(value['payload']), - }; -} - diff --git a/src/service/src/models/VaultEventsResponse.ts b/src/service/src/models/VaultEventsResponse.ts deleted file mode 100644 index 5207eb1..0000000 --- a/src/service/src/models/VaultEventsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ExtendedEvent } from './ExtendedEvent'; -import { - ExtendedEventFromJSON, - ExtendedEventFromJSONTyped, - ExtendedEventToJSON, - ExtendedEventToJSONTyped, -} from './ExtendedEvent'; - -/** - * - * @export - * @interface VaultEventsResponse - */ -export interface VaultEventsResponse { - /** - * - * @type {Array} - * @memberof VaultEventsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the VaultEventsResponse interface. - */ -export function instanceOfVaultEventsResponse(value: object): value is VaultEventsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function VaultEventsResponseFromJSON(json: any): VaultEventsResponse { - return VaultEventsResponseFromJSONTyped(json, false); -} - -export function VaultEventsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(ExtendedEventFromJSON)), - }; -} - -export function VaultEventsResponseToJSON(json: any): VaultEventsResponse { - return VaultEventsResponseToJSONTyped(json, false); -} - -export function VaultEventsResponseToJSONTyped(value?: VaultEventsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(ExtendedEventToJSON)), - }; -} - diff --git a/src/service/src/models/VaultsResponse.ts b/src/service/src/models/VaultsResponse.ts deleted file mode 100644 index d0d6d65..0000000 --- a/src/service/src/models/VaultsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Vault } from './Vault'; -import { - VaultFromJSON, - VaultFromJSONTyped, - VaultToJSON, - VaultToJSONTyped, -} from './Vault'; - -/** - * - * @export - * @interface VaultsResponse - */ -export interface VaultsResponse { - /** - * - * @type {Array} - * @memberof VaultsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the VaultsResponse interface. - */ -export function instanceOfVaultsResponse(value: object): value is VaultsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function VaultsResponseFromJSON(json: any): VaultsResponse { - return VaultsResponseFromJSONTyped(json, false); -} - -export function VaultsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(VaultFromJSON)), - }; -} - -export function VaultsResponseToJSON(json: any): VaultsResponse { - return VaultsResponseToJSONTyped(json, false); -} - -export function VaultsResponseToJSONTyped(value?: VaultsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(VaultToJSON)), - }; -} - diff --git a/src/service/src/models/WalletBalance.ts b/src/service/src/models/WalletBalance.ts deleted file mode 100644 index 2fab162..0000000 --- a/src/service/src/models/WalletBalance.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Balance } from './Balance'; -import { - BalanceFromJSON, - BalanceFromJSONTyped, - BalanceToJSON, - BalanceToJSONTyped, -} from './Balance'; - -/** - * - * @export - * @interface WalletBalance - */ -export interface WalletBalance { - /** - * - * @type {Array} - * @memberof WalletBalance - */ - balances: Array; -} - -/** - * Check if a given object implements the WalletBalance interface. - */ -export function instanceOfWalletBalance(value: object): value is WalletBalance { - if (!('balances' in value) || value['balances'] === undefined) return false; - return true; -} - -export function WalletBalanceFromJSON(json: any): WalletBalance { - return WalletBalanceFromJSONTyped(json, false); -} - -export function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance { - if (json == null) { - return json; - } - return { - - 'balances': ((json['balances'] as Array).map(BalanceFromJSON)), - }; -} - -export function WalletBalanceToJSON(json: any): WalletBalance { - return WalletBalanceToJSONTyped(json, false); -} - -export function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'balances': ((value['balances'] as Array).map(BalanceToJSON)), - }; -} - diff --git a/src/service/src/models/index.ts b/src/service/src/models/index.ts deleted file mode 100644 index 47c65da..0000000 --- a/src/service/src/models/index.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './Account'; -export * from './AccountLendingpoolSummary'; -export * from './AccountStablecoinSystemSummary'; -export * from './AccountStakingSummary'; -export * from './Address'; -export * from './AddressResponse'; -export * from './Balance'; -export * from './BasicEvent'; -export * from './ChainActivity'; -export * from './ChainActivityStep'; -export * from './ChainActivityStepData'; -export * from './DutchAmount'; -export * from './EIP712SignRequest'; -export * from './ErrorMessage'; -export * from './EventDetailsResponse'; -export * from './EventDomain'; -export * from './EventName'; -export * from './EventType'; -export * from './ExtendedEvent'; -export * from './FormattedReserveData'; -export * from './Ilk'; -export * from './IlksResponse'; -export * from './LendingpoolBorrow'; -export * from './LendingpoolBorrowTxRequest'; -export * from './LendingpoolBorrowTxResponse'; -export * from './LendingpoolDeposit'; -export * from './LendingpoolDepositTxRequest'; -export * from './LendingpoolDepositTxResponse'; -export * from './LendingpoolRepayTxRequest'; -export * from './LendingpoolRepayTxResponse'; -export * from './LendingpoolStats'; -export * from './LendingpoolTxResponse'; -export * from './LendingpoolUseAssetAsCollateralTxRequest'; -export * from './LendingpoolUseAssetAsCollateralTxResponse'; -export * from './LendingpoolWithdrawTxRequest'; -export * from './LendingpoolWithdrawTxResponse'; -export * from './Log'; -export * from './MethodParameters'; -export * from './ModelError'; -export * from './Order'; -export * from './OrderInfo'; -export * from './OrderResponse'; -export * from './OrderType'; -export * from './PermitSingle'; -export * from './PersonalSignRequest'; -export * from './PreparedTx'; -export * from './Price'; -export * from './PriceListResponse'; -export * from './QuoteRequest'; -export * from './QuoteRequestOptions'; -export * from './QuoteResponse'; -export * from './RawDutchAmount'; -export * from './RouteItem'; -export * from './Scoreboard'; -export * from './ScoreboardItem'; -export * from './StablecoinSystemBarkTxRequest'; -export * from './StablecoinSystemCreateVaultTxRequest'; -export * from './StablecoinSystemDepositCollateralTxRequest'; -export * from './StablecoinSystemGemexitTxRequest'; -export * from './StablecoinSystemMintZarTxRequest'; -export * from './StablecoinSystemRedoTxRequest'; -export * from './StablecoinSystemRepayZarTxRequest'; -export * from './StablecoinSystemStats'; -export * from './StablecoinSystemTakeTxRequest'; -export * from './StablecoinSystemWithdrawCollateralTxRequest'; -export * from './StablecoinSystemZarexitTxRequest'; -export * from './StablecoinSystemZarjoinTxRequest'; -export * from './StakeBalance'; -export * from './StakePlan'; -export * from './StakePlansResponse'; -export * from './StakingCollectRewardTxRequest'; -export * from './StakingCollectRewardTxResponse'; -export * from './StakingStakeTxRequest'; -export * from './StakingStakeTxResponse'; -export * from './StakingWithdrawTxRequest'; -export * from './StakingWithdrawTxResponse'; -export * from './Stats'; -export * from './Symbol'; -export * from './SystemBadDebt'; -export * from './SystemDebt'; -export * from './SystemDebtCeiling'; -export * from './SystemSurplus'; -export * from './SystemSurplusBuffer'; -export * from './SystemSurplusLotSize'; -export * from './TimeRange'; -export * from './Timestamp'; -export * from './Token'; -export * from './TradeType'; -export * from './Type'; -export * from './TypedData'; -export * from './TypedDataDomain'; -export * from './UnclaimedReward'; -export * from './UpdateOrderRequest'; -export * from './UserBorrowsResponse'; -export * from './UserDepositsResponse'; -export * from './UserError'; -export * from './UserStake'; -export * from './UserStakesResponse'; -export * from './V3PoolInRoute'; -export * from './Vault'; -export * from './VaultEvent'; -export * from './VaultEventExtension'; -export * from './VaultEventItem'; -export * from './VaultEventsResponse'; -export * from './VaultsResponse'; -export * from './WalletBalance'; diff --git a/src/service/src/runtime.ts b/src/service/src/runtime.ts deleted file mode 100644 index 88f59fc..0000000 --- a/src/service/src/runtime.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban API - * API for Zarban services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string | Promise) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - - let body: any; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); - } else { - body = overriddenInit.body; - } - - const init: RequestInit = { - ...overriddenInit, - body - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob; -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string; -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/src/service/tsconfig.json b/src/service/tsconfig.json index 250280d..30dc264 100644 --- a/src/service/tsconfig.json +++ b/src/service/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { "declaration": true, - "target": "es6", + "target": "ES6", "module": "commonjs", - "moduleResolution": "node", + "noImplicitAny": true, "outDir": "dist", + "rootDir": ".", + "moduleResolution": "node", "typeRoots": [ "node_modules/@types" ] diff --git a/src/wallet/.npmignore b/src/wallet/.npmignore index 42061c0..999d88d 100644 --- a/src/wallet/.npmignore +++ b/src/wallet/.npmignore @@ -1 +1 @@ -README.md \ No newline at end of file +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/src/wallet/.openapi-generator/FILES b/src/wallet/.openapi-generator/FILES index 68f7126..4755af0 100644 --- a/src/wallet/.openapi-generator/FILES +++ b/src/wallet/.openapi-generator/FILES @@ -2,89 +2,92 @@ .npmignore .openapi-generator-ignore README.md +api.ts +api/auth-api.ts +api/balance-api.ts +api/coins-api.ts +api/deposit-api.ts +api/health-api.ts +api/loans-api.ts +api/payment-api.ts +api/points-api.ts +api/redemptions-api.ts +api/referrals-api.ts +api/swap-api.ts +api/tasks-api.ts +api/transactions-api.ts +api/user-api.ts +api/withdraw-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +model/admin-redemption-update-request.ts +model/auth-telegram-request.ts +model/balance.ts +model/bank-info.ts +model/bullet-content.ts +model/coin-config.ts +model/coin-response.ts +model/coin.ts +model/create-child-user-request.ts +model/currency.ts +model/deposit-response.ts +model/detailed-loan-to-value-options.ts +model/email-otp-submit-request.ts +model/error-detail.ts +model/external-transaction.ts +model/friend-points-response.ts +model/friend-points.ts +model/health-status.ts +model/index.ts +model/jwt-response.ts +model/kyc-confirm-request.ts +model/kyc-request.ts +model/kyc-response.ts +model/loan-create-request.ts +model/loan-plan-response.ts +model/loan-plan.ts +model/loan-to-value-options.ts +model/loans-response-list.ts +model/loans-response.ts +model/login-request.ts +model/model-error.ts +model/network.ts +model/payment-request.ts +model/payment.ts +model/phone-otp-submit-request.ts +model/profile-response.ts +model/redemption-request.ts +model/redemption-response.ts +model/redemption.ts +model/referral-response.ts +model/referral.ts +model/repay-loan-request.ts +model/sign-up-request.ts +model/simple-response.ts +model/swap-request.ts +model/swap-response.ts +model/symbol.ts +model/task-response.ts +model/task.ts +model/telegram-profile.ts +model/timestamp.ts +model/transaction-response.ts +model/transaction-status.ts +model/transaction-type.ts +model/transaction.ts +model/update-email-request.ts +model/update-phone-request.ts +model/user-error.ts +model/user.ts +model/wallet-balance.ts +model/withdraw-request-body.ts +model/withdraw-request-preview.ts +model/withdraw-request-response.ts +model/withdraw-request.ts +model/withdraw-response-body.ts package.json -src/apis/AuthApi.ts -src/apis/BalanceApi.ts -src/apis/CoinsApi.ts -src/apis/DepositApi.ts -src/apis/HealthApi.ts -src/apis/LoansApi.ts -src/apis/PaymentApi.ts -src/apis/PointsApi.ts -src/apis/RedemptionsApi.ts -src/apis/ReferralsApi.ts -src/apis/SwapApi.ts -src/apis/TasksApi.ts -src/apis/TransactionsApi.ts -src/apis/UserApi.ts -src/apis/WithdrawApi.ts -src/apis/index.ts -src/index.ts -src/models/AdminRedemptionUpdateRequest.ts -src/models/AuthTelegramRequest.ts -src/models/Balance.ts -src/models/BankInfo.ts -src/models/BulletContent.ts -src/models/Coin.ts -src/models/CoinConfig.ts -src/models/CoinResponse.ts -src/models/CreateChildUserRequest.ts -src/models/Currency.ts -src/models/DepositResponse.ts -src/models/DetailedLoanToValueOptions.ts -src/models/EmailOtpSubmitRequest.ts -src/models/ErrorDetail.ts -src/models/ExternalTransaction.ts -src/models/FriendPoints.ts -src/models/FriendPointsResponse.ts -src/models/HealthStatus.ts -src/models/JwtResponse.ts -src/models/KycConfirmRequest.ts -src/models/KycRequest.ts -src/models/KycResponse.ts -src/models/LoanCreateRequest.ts -src/models/LoanPlan.ts -src/models/LoanPlanResponse.ts -src/models/LoanToValueOptions.ts -src/models/LoansResponse.ts -src/models/LoansResponseList.ts -src/models/LoginRequest.ts -src/models/ModelError.ts -src/models/Network.ts -src/models/Payment.ts -src/models/PaymentRequest.ts -src/models/PhoneOtpSubmitRequest.ts -src/models/ProfileResponse.ts -src/models/Redemption.ts -src/models/RedemptionRequest.ts -src/models/RedemptionResponse.ts -src/models/Referral.ts -src/models/ReferralResponse.ts -src/models/RepayLoanRequest.ts -src/models/SignUpRequest.ts -src/models/SimpleResponse.ts -src/models/SwapRequest.ts -src/models/SwapResponse.ts -src/models/Symbol.ts -src/models/Task.ts -src/models/TaskResponse.ts -src/models/TelegramProfile.ts -src/models/Timestamp.ts -src/models/Transaction.ts -src/models/TransactionResponse.ts -src/models/TransactionStatus.ts -src/models/TransactionType.ts -src/models/UpdateEmailRequest.ts -src/models/UpdatePhoneRequest.ts -src/models/User.ts -src/models/UserError.ts -src/models/WalletBalance.ts -src/models/WithdrawRequest.ts -src/models/WithdrawRequestBody.ts -src/models/WithdrawRequestPreview.ts -src/models/WithdrawRequestResponse.ts -src/models/WithdrawResponseBody.ts -src/models/index.ts -src/runtime.ts tsconfig.esm.json tsconfig.json diff --git a/src/wallet/README.md b/src/wallet/README.md index 144d3b4..6b8dd42 100644 --- a/src/wallet/README.md +++ b/src/wallet/README.md @@ -1,6 +1,6 @@ -## zarban@0.1.8 +## zarban@0.2.0 -This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: +This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: Environment * Node.js @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install zarban@0.1.8 --save +npm install zarban@0.2.0 --save ``` _unPublished (not recommended):_ diff --git a/src/wallet/api.ts b/src/wallet/api.ts new file mode 100644 index 0000000..615df78 --- /dev/null +++ b/src/wallet/api.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * as AuthApi from './api/auth-api'; +export * as BalanceApi from './api/balance-api'; +export * as CoinsApi from './api/coins-api'; +export * as DepositApi from './api/deposit-api'; +export * as HealthApi from './api/health-api'; +export * as LoansApi from './api/loans-api'; +export * as PaymentApi from './api/payment-api'; +export * as PointsApi from './api/points-api'; +export * as RedemptionsApi from './api/redemptions-api'; +export * as ReferralsApi from './api/referrals-api'; +export * as SwapApi from './api/swap-api'; +export * as TasksApi from './api/tasks-api'; +export * as TransactionsApi from './api/transactions-api'; +export * as UserApi from './api/user-api'; +export * as WithdrawApi from './api/withdraw-api'; + diff --git a/src/wallet/api/auth-api.ts b/src/wallet/api/auth-api.ts new file mode 100644 index 0000000..fda6603 --- /dev/null +++ b/src/wallet/api/auth-api.ts @@ -0,0 +1,597 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { AuthTelegramRequest } from '../model'; +// @ts-ignore +import type { JwtResponse } from '../model'; +// @ts-ignore +import type { LoginRequest } from '../model'; +// @ts-ignore +import type { SignUpRequest } from '../model'; +// @ts-ignore +import type { SimpleResponse } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * AuthApi - axios parameter creator + * @export + */ +export const AuthApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram: async (authTelegramRequest: AuthTelegramRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'authTelegramRequest' is not null or undefined + assertParamExists('authenticateWithTelegram', 'authTelegramRequest', authTelegramRequest) + const localVarPath = `/auth/telegram`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(authTelegramRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken: async (duration: GenerateJwtTokenDurationEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'duration' is not null or undefined + assertParamExists('generateJwtToken', 'duration', duration) + const localVarPath = `/auth/token`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (duration !== undefined) { + localVarQueryParameter['duration'] = duration; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp: async (channel: GetOtpChannelEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'channel' is not null or undefined + assertParamExists('getOtp', 'channel', channel) + const localVarPath = `/auth/otp`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (channel !== undefined) { + localVarQueryParameter['channel'] = channel; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword: async (loginRequest: LoginRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'loginRequest' is not null or undefined + assertParamExists('loginWithEmailAndPassword', 'loginRequest', loginRequest) + const localVarPath = `/auth/login`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword: async (signUpRequest: SignUpRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'signUpRequest' is not null or undefined + assertParamExists('signupWithEmailAndPassword', 'signUpRequest', signUpRequest) + const localVarPath = `/auth/signup`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(signUpRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail: async (token: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'token' is not null or undefined + assertParamExists('verifyUserEmail', 'token', token) + const localVarPath = `/verify-email`; + // 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; + + if (token !== undefined) { + localVarQueryParameter['token'] = token; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AuthApi - functional programming interface + * @export + */ +export const AuthApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration) + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateWithTelegram(authTelegramRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.authenticateWithTelegram']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.generateJwtToken(duration, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.generateJwtToken']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOtp(channel, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.getOtp']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.loginWithEmailAndPassword(loginRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.loginWithEmailAndPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.signupWithEmailAndPassword(signUpRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.signupWithEmailAndPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyUserEmail(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyUserEmail(token, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyUserEmail']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * AuthApi - factory interface + * @export + */ +export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AuthApiFp(configuration) + return { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.authenticateWithTelegram(authTelegramRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.generateJwtToken(duration, options).then((request) => request(axios, basePath)); + }, + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOtp(channel, options).then((request) => request(axios, basePath)); + }, + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.loginWithEmailAndPassword(loginRequest, options).then((request) => request(axios, basePath)); + }, + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.signupWithEmailAndPassword(signUpRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.verifyUserEmail(token, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AuthApi - interface + * @export + * @interface AuthApi + */ +export interface AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + verifyUserEmail(token: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * AuthApi - object-oriented interface + * @export + * @class AuthApi + * @extends {BaseAPI} + */ +export class AuthApi extends BaseAPI implements AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public authenticateWithTelegram(authTelegramRequest: AuthTelegramRequest, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).authenticateWithTelegram(authTelegramRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {GenerateJwtTokenDurationEnum} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public generateJwtToken(duration: GenerateJwtTokenDurationEnum, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).generateJwtToken(duration, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get OTP for the user. + * @summary Get OTP + * @param {GetOtpChannelEnum} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public getOtp(channel: GetOtpChannelEnum, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).getOtp(channel, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public loginWithEmailAndPassword(loginRequest: LoginRequest, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).loginWithEmailAndPassword(loginRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public signupWithEmailAndPassword(signUpRequest: SignUpRequest, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).signupWithEmailAndPassword(signUpRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApi + */ + public verifyUserEmail(token: string, options?: RawAxiosRequestConfig) { + return AuthApiFp(this.configuration).verifyUserEmail(token, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GenerateJwtTokenDurationEnum = { + NUMBER_7: 7, + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_90: 90 +} as const; +export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; +/** + * @export + */ +export const GetOtpChannelEnum = { + PHONE: 'phone' +} as const; +export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; diff --git a/src/wallet/api/balance-api.ts b/src/wallet/api/balance-api.ts new file mode 100644 index 0000000..d6da8a3 --- /dev/null +++ b/src/wallet/api/balance-api.ts @@ -0,0 +1,235 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Balance } from '../model'; +// @ts-ignore +import type { Symbol } from '../model'; +// @ts-ignore +import type { WalletBalance } from '../model'; +/** + * BalanceApi - axios parameter creator + * @export + */ +export const BalanceApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol: async (symbol: Symbol, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'symbol' is not null or undefined + assertParamExists('getBalanceBySymbol', 'symbol', symbol) + const localVarPath = `/balance/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/balance`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * BalanceApi - functional programming interface + * @export + */ +export const BalanceApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = BalanceApiAxiosParamCreator(configuration) + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getBalanceBySymbol(symbol, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['BalanceApi.getBalanceBySymbol']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getWalletBalance(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWalletBalance(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['BalanceApi.getWalletBalance']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * BalanceApi - factory interface + * @export + */ +export const BalanceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = BalanceApiFp(configuration) + return { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getBalanceBySymbol(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getWalletBalance(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * BalanceApi - interface + * @export + * @interface BalanceApi + */ +export interface BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getWalletBalance(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * BalanceApi - object-oriented interface + * @export + * @class BalanceApi + * @extends {BaseAPI} + */ +export class BalanceApi extends BaseAPI implements BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + public getBalanceBySymbol(symbol: Symbol, options?: RawAxiosRequestConfig) { + return BalanceApiFp(this.configuration).getBalanceBySymbol(symbol, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApi + */ + public getWalletBalance(options?: RawAxiosRequestConfig) { + return BalanceApiFp(this.configuration).getWalletBalance(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/coins-api.ts b/src/wallet/api/coins-api.ts new file mode 100644 index 0000000..a6757e2 --- /dev/null +++ b/src/wallet/api/coins-api.ts @@ -0,0 +1,227 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Coin } from '../model'; +// @ts-ignore +import type { CoinResponse } from '../model'; +// @ts-ignore +import type { Symbol } from '../model'; +/** + * CoinsApi - axios parameter creator + * @export + */ +export const CoinsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails: async (symbol: Symbol, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'symbol' is not null or undefined + assertParamExists('getCoinDetails', 'symbol', symbol) + const localVarPath = `/coins/{symbol}` + .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/coins`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * CoinsApi - functional programming interface + * @export + */ +export const CoinsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = CoinsApiAxiosParamCreator(configuration) + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinDetails(symbol, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CoinsApi.getCoinDetails']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getSupportedCoins(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedCoins(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CoinsApi.getSupportedCoins']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * CoinsApi - factory interface + * @export + */ +export const CoinsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CoinsApiFp(configuration) + return { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getCoinDetails(symbol, options).then((request) => request(axios, basePath)); + }, + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSupportedCoins(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * CoinsApi - interface + * @export + * @interface CoinsApi + */ +export interface CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getSupportedCoins(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * CoinsApi - object-oriented interface + * @export + * @class CoinsApi + * @extends {BaseAPI} + */ +export class CoinsApi extends BaseAPI implements CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + public getCoinDetails(symbol: Symbol, options?: RawAxiosRequestConfig) { + return CoinsApiFp(this.configuration).getCoinDetails(symbol, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApi + */ + public getSupportedCoins(options?: RawAxiosRequestConfig) { + return CoinsApiFp(this.configuration).getSupportedCoins(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/deposit-api.ts b/src/wallet/api/deposit-api.ts new file mode 100644 index 0000000..2d0b14c --- /dev/null +++ b/src/wallet/api/deposit-api.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { DepositResponse } from '../model'; +/** + * DepositApi - axios parameter creator + * @export + */ +export const DepositApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney: async (network: string, symbol: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'network' is not null or undefined + assertParamExists('depositMoney', 'network', network) + // verify required parameter 'symbol' is not null or undefined + assertParamExists('depositMoney', 'symbol', symbol) + const localVarPath = `/deposit`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (network !== undefined) { + localVarQueryParameter['network'] = network; + } + + if (symbol !== undefined) { + localVarQueryParameter['symbol'] = symbol; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DepositApi - functional programming interface + * @export + */ +export const DepositApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DepositApiAxiosParamCreator(configuration) + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.depositMoney(network, symbol, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DepositApi.depositMoney']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * DepositApi - factory interface + * @export + */ +export const DepositApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DepositApiFp(configuration) + return { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.depositMoney(network, symbol, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * DepositApi - interface + * @export + * @interface DepositApi + */ +export interface DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApiInterface + */ + depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * DepositApi - object-oriented interface + * @export + * @class DepositApi + * @extends {BaseAPI} + */ +export class DepositApi extends BaseAPI implements DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApi + */ + public depositMoney(network: string, symbol: string, options?: RawAxiosRequestConfig) { + return DepositApiFp(this.configuration).depositMoney(network, symbol, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/health-api.ts b/src/wallet/api/health-api.ts new file mode 100644 index 0000000..0e6aedf --- /dev/null +++ b/src/wallet/api/health-api.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { HealthStatus } from '../model'; +/** + * HealthApi - axios parameter creator + * @export + */ +export const HealthApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/healthz`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * HealthApi - functional programming interface + * @export + */ +export const HealthApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration) + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async checkApiHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.checkApiHealth(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['HealthApi.checkApiHealth']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * HealthApi - factory interface + * @export + */ +export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = HealthApiFp(configuration) + return { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.checkApiHealth(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * HealthApi - interface + * @export + * @interface HealthApi + */ +export interface HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApiInterface + */ + checkApiHealth(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * HealthApi - object-oriented interface + * @export + * @class HealthApi + * @extends {BaseAPI} + */ +export class HealthApi extends BaseAPI implements HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApi + */ + public checkApiHealth(options?: RawAxiosRequestConfig) { + return HealthApiFp(this.configuration).checkApiHealth(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/loans-api.ts b/src/wallet/api/loans-api.ts new file mode 100644 index 0000000..9fe09da --- /dev/null +++ b/src/wallet/api/loans-api.ts @@ -0,0 +1,639 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Currency } from '../model'; +// @ts-ignore +import type { LoanCreateRequest } from '../model'; +// @ts-ignore +import type { LoanPlanResponse } from '../model'; +// @ts-ignore +import type { LoanToValueOptions } from '../model'; +// @ts-ignore +import type { LoansResponse } from '../model'; +// @ts-ignore +import type { LoansResponseList } from '../model'; +// @ts-ignore +import type { RepayLoanRequest } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * LoansApi - axios parameter creator + * @export + */ +export const LoansApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault: async (loanCreateRequest: LoanCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'loanCreateRequest' is not null or undefined + assertParamExists('createLoanVault', 'loanCreateRequest', loanCreateRequest) + const localVarPath = `/loans/create`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(loanCreateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral: async (planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'planName' is not null or undefined + assertParamExists('estimateLoanCollateral', 'planName', planName) + // verify required parameter 'loanToValueOption' is not null or undefined + assertParamExists('estimateLoanCollateral', 'loanToValueOption', loanToValueOption) + // verify required parameter 'amount' is not null or undefined + assertParamExists('estimateLoanCollateral', 'amount', amount) + // verify required parameter 'inputType' is not null or undefined + assertParamExists('estimateLoanCollateral', 'inputType', inputType) + const localVarPath = `/loans/estimate`; + // 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; + + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + + if (loanToValueOption !== undefined) { + localVarQueryParameter['loanToValueOption'] = loanToValueOption; + } + + if (amount !== undefined) { + localVarQueryParameter['amount'] = amount; + } + + if (inputType !== undefined) { + localVarQueryParameter['inputType'] = inputType; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/loans/plans`; + // 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); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getLoanDetails', 'id', id) + const localVarPath = `/loans/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans: async (state?: GetUserLoansStateEnum, planName?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/loans`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + + if (planName !== undefined) { + localVarQueryParameter['planName'] = planName; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan: async (repayLoanRequest: RepayLoanRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'repayLoanRequest' is not null or undefined + assertParamExists('repayLoan', 'repayLoanRequest', repayLoanRequest) + const localVarPath = `/loans/repay`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(repayLoanRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * LoansApi - functional programming interface + * @export + */ +export const LoansApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LoansApiAxiosParamCreator(configuration) + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createLoanVault(loanCreateRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.createLoanVault']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.estimateLoanCollateral']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllLoanPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllLoanPlans(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.getAllLoanPlans']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLoanDetails(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLoanDetails(id, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.getLoanDetails']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserLoans(state, planName, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.getUserLoans']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.repayLoan(repayLoanRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['LoansApi.repayLoan']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * LoansApi - factory interface + * @export + */ +export const LoansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LoansApiFp(configuration) + return { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createLoanVault(loanCreateRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllLoanPlans(options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getLoanDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserLoans(state, planName, options).then((request) => request(axios, basePath)); + }, + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.repayLoan(repayLoanRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LoansApi - interface + * @export + * @interface LoansApi + */ +export interface LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getAllLoanPlans(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getLoanDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * LoansApi - object-oriented interface + * @export + * @class LoansApi + * @extends {BaseAPI} + */ +export class LoansApi extends BaseAPI implements LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public createLoanVault(loanCreateRequest: LoanCreateRequest, options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).createLoanVault(loanCreateRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {EstimateLoanCollateralInputTypeEnum} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public estimateLoanCollateral(planName: string, loanToValueOption: LoanToValueOptions, amount: string, inputType: EstimateLoanCollateralInputTypeEnum, options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).estimateLoanCollateral(planName, loanToValueOption, amount, inputType, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public getAllLoanPlans(options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).getAllLoanPlans(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public getLoanDetails(id: string, options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).getLoanDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {GetUserLoansStateEnum} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public getUserLoans(state?: GetUserLoansStateEnum, planName?: string, options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).getUserLoans(state, planName, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApi + */ + public repayLoan(repayLoanRequest: RepayLoanRequest, options?: RawAxiosRequestConfig) { + return LoansApiFp(this.configuration).repayLoan(repayLoanRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const EstimateLoanCollateralInputTypeEnum = { + LOAN: 'loan', + COLLATERAL: 'collateral' +} as const; +export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; +/** + * @export + */ +export const GetUserLoansStateEnum = { + PENDING: 'pending', + ACTIVE: 'active', + REPAYMENT_ONGOING: 'repayment-ongoing', + SETTLED: 'settled', + CREATION_FAILED: 'creation-failed', + SETTLEMENT_FAILED: 'settlement-failed' +} as const; +export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; diff --git a/src/wallet/api/payment-api.ts b/src/wallet/api/payment-api.ts new file mode 100644 index 0000000..839988a --- /dev/null +++ b/src/wallet/api/payment-api.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Payment } from '../model'; +// @ts-ignore +import type { PaymentRequest } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * PaymentApi - axios parameter creator + * @export + */ +export const PaymentApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment: async (paymentRequest: PaymentRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'paymentRequest' is not null or undefined + assertParamExists('createPayment', 'paymentRequest', paymentRequest) + const localVarPath = `/payments`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(paymentRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PaymentApi - functional programming interface + * @export + */ +export const PaymentApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration) + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(paymentRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PaymentApi.createPayment']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * PaymentApi - factory interface + * @export + */ +export const PaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PaymentApiFp(configuration) + return { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createPayment(paymentRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PaymentApi - interface + * @export + * @interface PaymentApi + */ +export interface PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApiInterface + */ + createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PaymentApi - object-oriented interface + * @export + * @class PaymentApi + * @extends {BaseAPI} + */ +export class PaymentApi extends BaseAPI implements PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApi + */ + public createPayment(paymentRequest: PaymentRequest, options?: RawAxiosRequestConfig) { + return PaymentApiFp(this.configuration).createPayment(paymentRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/points-api.ts b/src/wallet/api/points-api.ts new file mode 100644 index 0000000..392086a --- /dev/null +++ b/src/wallet/api/points-api.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { FriendPointsResponse } from '../model'; +/** + * PointsApi - axios parameter creator + * @export + */ +export const PointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/points/frineds`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PointsApi - functional programming interface + * @export + */ +export const PointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PointsApiAxiosParamCreator(configuration) + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFriendsPoints(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFriendsPoints(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PointsApi.getFriendsPoints']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * PointsApi - factory interface + * @export + */ +export const PointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PointsApiFp(configuration) + return { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getFriendsPoints(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PointsApi - interface + * @export + * @interface PointsApi + */ +export interface PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getFriendsPoints(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PointsApi - object-oriented interface + * @export + * @class PointsApi + * @extends {BaseAPI} + */ +export class PointsApi extends BaseAPI implements PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApi + */ + public getFriendsPoints(options?: RawAxiosRequestConfig) { + return PointsApiFp(this.configuration).getFriendsPoints(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/redemptions-api.ts b/src/wallet/api/redemptions-api.ts new file mode 100644 index 0000000..b6abd2c --- /dev/null +++ b/src/wallet/api/redemptions-api.ts @@ -0,0 +1,436 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { AdminRedemptionUpdateRequest } from '../model'; +// @ts-ignore +import type { Redemption } from '../model'; +// @ts-ignore +import type { RedemptionRequest } from '../model'; +// @ts-ignore +import type { RedemptionResponse } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * RedemptionsApi - axios parameter creator + * @export + */ +export const RedemptionsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions: async (state?: GetAllRedemptionsStateEnum, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/admin/redemptions`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (state !== undefined) { + localVarQueryParameter['state'] = state; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRedemptionDetails', 'id', id) + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar: async (redemptionRequest: RedemptionRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'redemptionRequest' is not null or undefined + assertParamExists('redeemZar', 'redemptionRequest', redemptionRequest) + const localVarPath = `/redemptions`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(redemptionRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus: async (id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateRedemptionStatus', 'id', id) + // verify required parameter 'adminRedemptionUpdateRequest' is not null or undefined + assertParamExists('updateRedemptionStatus', 'adminRedemptionUpdateRequest', adminRedemptionUpdateRequest) + const localVarPath = `/admin/redemptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(adminRedemptionUpdateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * RedemptionsApi - functional programming interface + * @export + */ +export const RedemptionsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RedemptionsApiAxiosParamCreator(configuration) + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllRedemptions(state, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RedemptionsApi.getAllRedemptions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRedemptionDetails(id, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RedemptionsApi.getRedemptionDetails']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.redeemZar(redemptionRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RedemptionsApi.redeemZar']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RedemptionsApi.updateRedemptionStatus']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * RedemptionsApi - factory interface + * @export + */ +export const RedemptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RedemptionsApiFp(configuration) + return { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllRedemptions(state, options).then((request) => request(axios, basePath)); + }, + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getRedemptionDetails(id, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.redeemZar(redemptionRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RedemptionsApi - interface + * @export + * @interface RedemptionsApi + */ +export interface RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getRedemptionDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * RedemptionsApi - object-oriented interface + * @export + * @class RedemptionsApi + * @extends {BaseAPI} + */ +export class RedemptionsApi extends BaseAPI implements RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {GetAllRedemptionsStateEnum} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + public getAllRedemptions(state?: GetAllRedemptionsStateEnum, options?: RawAxiosRequestConfig) { + return RedemptionsApiFp(this.configuration).getAllRedemptions(state, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + public getRedemptionDetails(id: number, options?: RawAxiosRequestConfig) { + return RedemptionsApiFp(this.configuration).getRedemptionDetails(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + public redeemZar(redemptionRequest: RedemptionRequest, options?: RawAxiosRequestConfig) { + return RedemptionsApiFp(this.configuration).redeemZar(redemptionRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApi + */ + public updateRedemptionStatus(id: string, adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest, options?: RawAxiosRequestConfig) { + return RedemptionsApiFp(this.configuration).updateRedemptionStatus(id, adminRedemptionUpdateRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const GetAllRedemptionsStateEnum = { + PENDING: 'pending', + APPROVED: 'approved', + COMPLETED: 'completed', + REJECTED: 'rejected' +} as const; +export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; diff --git a/src/wallet/api/referrals-api.ts b/src/wallet/api/referrals-api.ts new file mode 100644 index 0000000..de4dcac --- /dev/null +++ b/src/wallet/api/referrals-api.ts @@ -0,0 +1,408 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { Referral } from '../model'; +// @ts-ignore +import type { ReferralResponse } from '../model'; +/** + * ReferralsApi - axios parameter creator + * @export + */ +export const ReferralsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById: async (referralId: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('getReferralById', 'referralId', referralId) + const localVarPath = `/referrals/{referralId}` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals: async (name?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/referrals`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral: async (referralId: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('redeemReferral', 'referralId', referralId) + const localVarPath = `/referrals/{referralId}/redeem` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral: async (referralId: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'referralId' is not null or undefined + assertParamExists('validateReferral', 'referralId', referralId) + const localVarPath = `/referrals/{referralId}/validate` + .replace(`{${"referralId"}}`, encodeURIComponent(String(referralId))); + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ReferralsApi - functional programming interface + * @export + */ +export const ReferralsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ReferralsApiAxiosParamCreator(configuration) + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReferralById(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getReferralById(referralId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ReferralsApi.getReferralById']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getReferrals(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getReferrals(name, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ReferralsApi.getReferrals']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async redeemReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.redeemReferral(referralId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ReferralsApi.redeemReferral']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async validateReferral(referralId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.validateReferral(referralId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ReferralsApi.validateReferral']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * ReferralsApi - factory interface + * @export + */ +export const ReferralsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ReferralsApiFp(configuration) + return { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getReferralById(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getReferrals(name, options).then((request) => request(axios, basePath)); + }, + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.redeemReferral(referralId, options).then((request) => request(axios, basePath)); + }, + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.validateReferral(referralId, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ReferralsApi - interface + * @export + * @interface ReferralsApi + */ +export interface ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferralById(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferrals(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + redeemReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + validateReferral(referralId: number, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * ReferralsApi - object-oriented interface + * @export + * @class ReferralsApi + * @extends {BaseAPI} + */ +export class ReferralsApi extends BaseAPI implements ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + public getReferralById(referralId: number, options?: RawAxiosRequestConfig) { + return ReferralsApiFp(this.configuration).getReferralById(referralId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + public getReferrals(name?: string, options?: RawAxiosRequestConfig) { + return ReferralsApiFp(this.configuration).getReferrals(name, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + public redeemReferral(referralId: number, options?: RawAxiosRequestConfig) { + return ReferralsApiFp(this.configuration).redeemReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApi + */ + public validateReferral(referralId: number, options?: RawAxiosRequestConfig) { + return ReferralsApiFp(this.configuration).validateReferral(referralId, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/swap-api.ts b/src/wallet/api/swap-api.ts new file mode 100644 index 0000000..de44e1c --- /dev/null +++ b/src/wallet/api/swap-api.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { SwapRequest } from '../model'; +// @ts-ignore +import type { SwapResponse } from '../model'; +/** + * SwapApi - axios parameter creator + * @export + */ +export const SwapApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins: async (swapRequest: SwapRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'swapRequest' is not null or undefined + assertParamExists('swapCoins', 'swapRequest', swapRequest) + const localVarPath = `/swap`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(swapRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * SwapApi - functional programming interface + * @export + */ +export const SwapApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = SwapApiAxiosParamCreator(configuration) + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.swapCoins(swapRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SwapApi.swapCoins']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * SwapApi - factory interface + * @export + */ +export const SwapApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SwapApiFp(configuration) + return { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.swapCoins(swapRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SwapApi - interface + * @export + * @interface SwapApi + */ +export interface SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * SwapApi - object-oriented interface + * @export + * @class SwapApi + * @extends {BaseAPI} + */ +export class SwapApi extends BaseAPI implements SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApi + */ + public swapCoins(swapRequest: SwapRequest, options?: RawAxiosRequestConfig) { + return SwapApiFp(this.configuration).swapCoins(swapRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/tasks-api.ts b/src/wallet/api/tasks-api.ts new file mode 100644 index 0000000..ff6fe6b --- /dev/null +++ b/src/wallet/api/tasks-api.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { TaskResponse } from '../model'; +/** + * TasksApi - axios parameter creator + * @export + */ +export const TasksApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/tasks`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * TasksApi - functional programming interface + * @export + */ +export const TasksApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration) + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getTasks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTasks(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TasksApi.getTasks']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * TasksApi - factory interface + * @export + */ +export const TasksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = TasksApiFp(configuration) + return { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getTasks(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * TasksApi - interface + * @export + * @interface TasksApi + */ +export interface TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApiInterface + */ + getTasks(options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +export class TasksApi extends BaseAPI implements TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApi + */ + public getTasks(options?: RawAxiosRequestConfig) { + return TasksApiFp(this.configuration).getTasks(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/transactions-api.ts b/src/wallet/api/transactions-api.ts new file mode 100644 index 0000000..2d7b07d --- /dev/null +++ b/src/wallet/api/transactions-api.ts @@ -0,0 +1,166 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { TransactionResponse } from '../model'; +/** + * TransactionsApi - axios parameter creator + * @export + */ +export const TransactionsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions: async (cursor?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/transactions`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * TransactionsApi - functional programming interface + * @export + */ +export const TransactionsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration) + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTransactions(cursor, limit, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getUserTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * TransactionsApi - factory interface + * @export + */ +export const TransactionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = TransactionsApiFp(configuration) + return { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserTransactions(cursor, limit, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * TransactionsApi - interface + * @export + * @interface TransactionsApi + */ +export interface TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApiInterface + */ + getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * TransactionsApi - object-oriented interface + * @export + * @class TransactionsApi + * @extends {BaseAPI} + */ +export class TransactionsApi extends BaseAPI implements TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApi + */ + public getUserTransactions(cursor?: number, limit?: number, options?: RawAxiosRequestConfig) { + return TransactionsApiFp(this.configuration).getUserTransactions(cursor, limit, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/user-api.ts b/src/wallet/api/user-api.ts new file mode 100644 index 0000000..92552e3 --- /dev/null +++ b/src/wallet/api/user-api.ts @@ -0,0 +1,765 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { CreateChildUserRequest } from '../model'; +// @ts-ignore +import type { EmailOtpSubmitRequest } from '../model'; +// @ts-ignore +import type { KycConfirmRequest } from '../model'; +// @ts-ignore +import type { KycRequest } from '../model'; +// @ts-ignore +import type { KycResponse } from '../model'; +// @ts-ignore +import type { PhoneOtpSubmitRequest } from '../model'; +// @ts-ignore +import type { ProfileResponse } from '../model'; +// @ts-ignore +import type { SimpleResponse } from '../model'; +// @ts-ignore +import type { UpdateEmailRequest } from '../model'; +// @ts-ignore +import type { UpdatePhoneRequest } from '../model'; +// @ts-ignore +import type { User } from '../model'; +// @ts-ignore +import type { UserError } from '../model'; +/** + * UserApi - axios parameter creator + * @export + */ +export const UserApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc: async (kycConfirmRequest: KycConfirmRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'kycConfirmRequest' is not null or undefined + assertParamExists('confirmKyc', 'kycConfirmRequest', kycConfirmRequest) + const localVarPath = `/users/kyc/confirm`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(kycConfirmRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber: async (phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'phoneOtpSubmitRequest' is not null or undefined + assertParamExists('confirmPhoneNumber', 'phoneOtpSubmitRequest', phoneOtpSubmitRequest) + const localVarPath = `/users/phone/confirm`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(phoneOtpSubmitRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser: async (createChildUserRequest: CreateChildUserRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'createChildUserRequest' is not null or undefined + assertParamExists('createChildUser', 'createChildUserRequest', createChildUserRequest) + const localVarPath = `/users/children`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createChildUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/profile`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp: async (emailOtpSubmitRequest: EmailOtpSubmitRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'emailOtpSubmitRequest' is not null or undefined + assertParamExists('submitEmailConfirmationOtp', 'emailOtpSubmitRequest', emailOtpSubmitRequest) + const localVarPath = `/users/email/confirm`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(emailOtpSubmitRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc: async (kycRequest: KycRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'kycRequest' is not null or undefined + assertParamExists('submitKyc', 'kycRequest', kycRequest) + const localVarPath = `/users/kyc`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(kycRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber: async (updatePhoneRequest: UpdatePhoneRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'updatePhoneRequest' is not null or undefined + assertParamExists('verifyPhoneNumber', 'updatePhoneRequest', updatePhoneRequest) + const localVarPath = `/users/phone`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updatePhoneRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress: async (updateEmailRequest: UpdateEmailRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'updateEmailRequest' is not null or undefined + assertParamExists('verifyUserEmailAddress', 'updateEmailRequest', updateEmailRequest) + const localVarPath = `/users/email`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updateEmailRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * UserApi - functional programming interface + * @export + */ +export const UserApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration) + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.confirmKyc(kycConfirmRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.confirmKyc']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPhoneNumber(phoneOtpSubmitRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.confirmPhoneNumber']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createChildUser(createChildUserRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.createChildUser']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserProfile(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.getUserProfile']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.submitEmailConfirmationOtp(emailOtpSubmitRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.submitEmailConfirmationOtp']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.submitKyc(kycRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.submitKyc']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyPhoneNumber(updatePhoneRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.verifyPhoneNumber']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyUserEmailAddress(updateEmailRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['UserApi.verifyUserEmailAddress']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * UserApi - factory interface + * @export + */ +export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UserApiFp(configuration) + return { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.confirmKyc(kycConfirmRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createChildUser(createChildUserRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserProfile(options).then((request) => request(axios, basePath)); + }, + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.submitKyc(kycRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserApi - interface + * @export + * @interface UserApi + */ +export interface UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export class UserApi extends BaseAPI implements UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public confirmKyc(kycConfirmRequest: KycConfirmRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).confirmKyc(kycConfirmRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public confirmPhoneNumber(phoneOtpSubmitRequest: PhoneOtpSubmitRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).confirmPhoneNumber(phoneOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public createChildUser(createChildUserRequest: CreateChildUserRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).createChildUser(createChildUserRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public getUserProfile(options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).getUserProfile(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public submitEmailConfirmationOtp(emailOtpSubmitRequest: EmailOtpSubmitRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).submitEmailConfirmationOtp(emailOtpSubmitRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public submitKyc(kycRequest: KycRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).submitKyc(kycRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public verifyPhoneNumber(updatePhoneRequest: UpdatePhoneRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).verifyPhoneNumber(updatePhoneRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public verifyUserEmailAddress(updateEmailRequest: UpdateEmailRequest, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration).verifyUserEmailAddress(updateEmailRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/api/withdraw-api.ts b/src/wallet/api/withdraw-api.ts new file mode 100644 index 0000000..0109a99 --- /dev/null +++ b/src/wallet/api/withdraw-api.ts @@ -0,0 +1,411 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// URLSearchParams not necessarily used +// @ts-ignore +import { URL, URLSearchParams } from 'url'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { UserError } from '../model'; +// @ts-ignore +import type { WithdrawRequest } from '../model'; +// @ts-ignore +import type { WithdrawRequestBody } from '../model'; +// @ts-ignore +import type { WithdrawRequestPreview } from '../model'; +// @ts-ignore +import type { WithdrawRequestResponse } from '../model'; +// @ts-ignore +import type { WithdrawResponseBody } from '../model'; +/** + * WithdrawApi - axios parameter creator + * @export + */ +export const WithdrawApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/withdraws`; + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus: async (id: number, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getWithdrawalStatus', 'id', id) + const localVarPath = `/withdraws/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // 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; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal: async (withdrawRequestBody: WithdrawRequestBody, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'withdrawRequestBody' is not null or undefined + assertParamExists('previewWithdrawal', 'withdrawRequestBody', withdrawRequestBody) + const localVarPath = `/withdraws/preview`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal: async (withdrawRequestBody: WithdrawRequestBody, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'withdrawRequestBody' is not null or undefined + assertParamExists('requestWithdrawal', 'withdrawRequestBody', withdrawRequestBody) + const localVarPath = `/withdraws/request`; + // 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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(withdrawRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * WithdrawApi - functional programming interface + * @export + */ +export const WithdrawApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = WithdrawApiAxiosParamCreator(configuration) + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getUserWithdrawRequests(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserWithdrawRequests(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['WithdrawApi.getUserWithdrawRequests']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWithdrawalStatus(id, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['WithdrawApi.getWithdrawalStatus']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.previewWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['WithdrawApi.previewWithdrawal']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.requestWithdrawal(withdrawRequestBody, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['WithdrawApi.requestWithdrawal']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * WithdrawApi - factory interface + * @export + */ +export const WithdrawApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = WithdrawApiFp(configuration) + return { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getUserWithdrawRequests(options).then((request) => request(axios, basePath)); + }, + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getWithdrawalStatus(id, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.previewWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.requestWithdrawal(withdrawRequestBody, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * WithdrawApi - interface + * @export + * @interface WithdrawApi + */ +export interface WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getUserWithdrawRequests(options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * WithdrawApi - object-oriented interface + * @export + * @class WithdrawApi + * @extends {BaseAPI} + */ +export class WithdrawApi extends BaseAPI implements WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + public getUserWithdrawRequests(options?: RawAxiosRequestConfig) { + return WithdrawApiFp(this.configuration).getUserWithdrawRequests(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + public getWithdrawalStatus(id: number, options?: RawAxiosRequestConfig) { + return WithdrawApiFp(this.configuration).getWithdrawalStatus(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + public previewWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) { + return WithdrawApiFp(this.configuration).previewWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApi + */ + public requestWithdrawal(withdrawRequestBody: WithdrawRequestBody, options?: RawAxiosRequestConfig) { + return WithdrawApiFp(this.configuration).requestWithdrawal(withdrawRequestBody, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/wallet/base.ts b/src/wallet/base.ts new file mode 100644 index 0000000..382adca --- /dev/null +++ b/src/wallet/base.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/src/wallet/common.ts b/src/wallet/common.ts new file mode 100644 index 0000000..0d3d47a --- /dev/null +++ b/src/wallet/common.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; +import { URL, URLSearchParams } from 'url'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/src/wallet/configuration.ts b/src/wallet/configuration.ts new file mode 100644 index 0000000..e18cb6b --- /dev/null +++ b/src/wallet/configuration.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/src/wallet/git_push.sh b/src/wallet/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/src/wallet/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/src/wallet/index.ts b/src/wallet/index.ts new file mode 100644 index 0000000..2b1f0b0 --- /dev/null +++ b/src/wallet/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; +export * from "./model"; diff --git a/src/wallet/model/admin-redemption-update-request.ts b/src/wallet/model/admin-redemption-update-request.ts new file mode 100644 index 0000000..9a766b9 --- /dev/null +++ b/src/wallet/model/admin-redemption-update-request.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AdminRedemptionUpdateRequest + */ +export interface AdminRedemptionUpdateRequest { + /** + * The status of the redemption request + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'status': AdminRedemptionUpdateRequestStatusEnum; + /** + * The Paya tracking code + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + 'payaTrackingCode'?: string; +} + +export const AdminRedemptionUpdateRequestStatusEnum = { + APPROVED: 'Approved', + REJECTED: 'Rejected', + COMPLETED: 'Completed' +} as const; + +export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; + + diff --git a/src/wallet/model/auth-telegram-request.ts b/src/wallet/model/auth-telegram-request.ts new file mode 100644 index 0000000..bb466fc --- /dev/null +++ b/src/wallet/model/auth-telegram-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface AuthTelegramRequest + */ +export interface AuthTelegramRequest { + /** + * Telegram init data + * @type {string} + * @memberof AuthTelegramRequest + */ + 'initdata': string; +} + diff --git a/src/wallet/model/balance.ts b/src/wallet/model/balance.ts new file mode 100644 index 0000000..0b6c28e --- /dev/null +++ b/src/wallet/model/balance.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Coin } from './coin'; +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; + +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Currency} + * @memberof Balance + */ + 'locked': Currency; + /** + * + * @type {Coin} + * @memberof Balance + */ + 'coin': Coin; + /** + * + * @type {Currency} + * @memberof Balance + */ + 'balance': Currency; +} + diff --git a/src/wallet/model/bank-info.ts b/src/wallet/model/bank-info.ts new file mode 100644 index 0000000..0e65195 --- /dev/null +++ b/src/wallet/model/bank-info.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BankInfo + */ +export interface BankInfo { + /** + * Bank name + * @type {string} + * @memberof BankInfo + */ + 'bankName': string; + /** + * Card number + * @type {string} + * @memberof BankInfo + */ + 'cardNumber': string; + /** + * IBAN + * @type {string} + * @memberof BankInfo + */ + 'iban': string; +} + diff --git a/src/wallet/model/bullet-content.ts b/src/wallet/model/bullet-content.ts new file mode 100644 index 0000000..176a6a5 --- /dev/null +++ b/src/wallet/model/bullet-content.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BulletContent + */ +export interface BulletContent { + /** + * + * @type {string} + * @memberof BulletContent + */ + 'title': string; + /** + * + * @type {string} + * @memberof BulletContent + */ + 'text': string; + /** + * + * @type {Array} + * @memberof BulletContent + */ + 'bullets': Array; +} + diff --git a/src/wallet/model/coin-config.ts b/src/wallet/model/coin-config.ts new file mode 100644 index 0000000..4c72c8a --- /dev/null +++ b/src/wallet/model/coin-config.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CoinConfig + */ +export interface CoinConfig { + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'isTradeable': boolean; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'withdrawFees': { [key: string]: string | undefined; }; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + 'minWithdrawal': { [key: string]: string | undefined; }; + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + 'needsMemo': boolean; +} + diff --git a/src/wallet/model/coin-response.ts b/src/wallet/model/coin-response.ts new file mode 100644 index 0000000..5762119 --- /dev/null +++ b/src/wallet/model/coin-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Coin } from './coin'; + +/** + * + * @export + * @interface CoinResponse + */ +export interface CoinResponse { + /** + * + * @type {Array} + * @memberof CoinResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/coin.ts b/src/wallet/model/coin.ts new file mode 100644 index 0000000..a959271 --- /dev/null +++ b/src/wallet/model/coin.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BulletContent } from './bullet-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { CoinConfig } from './coin-config'; +// May contain unused imports in some cases +// @ts-ignore +import type { Network } from './network'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; + +/** + * + * @export + * @interface Coin + */ +export interface Coin { + /** + * + * @type {CoinConfig} + * @memberof Coin + */ + 'config': CoinConfig; + /** + * + * @type {Symbol} + * @memberof Coin + */ + 'symbol': Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Coin + */ + 'name': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof Coin + */ + 'logoUri': string; + /** + * + * @type {Array} + * @memberof Coin + */ + 'depositableNetworks': Array; + /** + * + * @type {Array} + * @memberof Coin + */ + 'withdrawableNetworks': Array; + /** + * + * @type {BulletContent} + * @memberof Coin + */ + 'content': BulletContent; +} + + + diff --git a/src/wallet/model/create-child-user-request.ts b/src/wallet/model/create-child-user-request.ts new file mode 100644 index 0000000..8234dfc --- /dev/null +++ b/src/wallet/model/create-child-user-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CreateChildUserRequest + */ +export interface CreateChildUserRequest { + /** + * the username of the child user + * @type {string} + * @memberof CreateChildUserRequest + */ + 'username': string; +} + diff --git a/src/wallet/model/currency.ts b/src/wallet/model/currency.ts new file mode 100644 index 0000000..cd16d8c --- /dev/null +++ b/src/wallet/model/currency.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Currency + */ +export interface Currency { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Currency + */ + 'values'?: { [key: string]: string | undefined; }; +} + diff --git a/src/wallet/model/deposit-response.ts b/src/wallet/model/deposit-response.ts new file mode 100644 index 0000000..c1d6ea1 --- /dev/null +++ b/src/wallet/model/deposit-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Network } from './network'; + +/** + * + * @export + * @interface DepositResponse + */ +export interface DepositResponse { + /** + * Deposit address + * @type {string} + * @memberof DepositResponse + */ + 'address': string; + /** + * + * @type {Network} + * @memberof DepositResponse + */ + 'network': Network; + /** + * Coin symbol + * @type {string} + * @memberof DepositResponse + */ + 'symbol': string; +} + diff --git a/src/wallet/model/detailed-loan-to-value-options.ts b/src/wallet/model/detailed-loan-to-value-options.ts new file mode 100644 index 0000000..ff94951 --- /dev/null +++ b/src/wallet/model/detailed-loan-to-value-options.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface DetailedLoanToValueOptions + */ +export interface DetailedLoanToValueOptions { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DetailedLoanToValueOptions + */ + 'name': { [key: string]: string | undefined; }; + /** + * The loan to value of the vault. + * @type {string} + * @memberof DetailedLoanToValueOptions + */ + 'value': string; +} + diff --git a/src/wallet/model/email-otp-submit-request.ts b/src/wallet/model/email-otp-submit-request.ts new file mode 100644 index 0000000..b03d82d --- /dev/null +++ b/src/wallet/model/email-otp-submit-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface EmailOtpSubmitRequest + */ +export interface EmailOtpSubmitRequest { + /** + * OTP code + * @type {number} + * @memberof EmailOtpSubmitRequest + */ + 'code': number; +} + diff --git a/src/wallet/model/error-detail.ts b/src/wallet/model/error-detail.ts new file mode 100644 index 0000000..828dc74 --- /dev/null +++ b/src/wallet/model/error-detail.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ErrorDetail + */ +export interface ErrorDetail { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorDetail + */ + 'userMessage': string; + /** + * + * @type {Array} + * @memberof ErrorDetail + */ + 'solutions': Array; +} + diff --git a/src/wallet/model/external-transaction.ts b/src/wallet/model/external-transaction.ts new file mode 100644 index 0000000..09c20a9 --- /dev/null +++ b/src/wallet/model/external-transaction.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { Network } from './network'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; +// May contain unused imports in some cases +// @ts-ignore +import type { TransactionStatus } from './transaction-status'; +// May contain unused imports in some cases +// @ts-ignore +import type { TransactionType } from './transaction-type'; + +/** + * + * @export + * @interface ExternalTransaction + */ +export interface ExternalTransaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof ExternalTransaction + */ + 'Id': number; + /** + * + * @type {Timestamp} + * @memberof ExternalTransaction + */ + 'Time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof ExternalTransaction + */ + 'Type': TransactionType; + /** + * The hash of the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Hash': string; + /** + * The address from which the transaction originated + * @type {string} + * @memberof ExternalTransaction + */ + 'From': string; + /** + * The address to which the transaction is sent + * @type {string} + * @memberof ExternalTransaction + */ + 'To': string; + /** + * A comment associated with the transaction + * @type {string} + * @memberof ExternalTransaction + */ + 'Comment': string | null; + /** + * + * @type {Currency} + * @memberof ExternalTransaction + */ + 'Amount': Currency; + /** + * + * @type {Symbol} + * @memberof ExternalTransaction + */ + 'Symbol': Symbol; + /** + * + * @type {Network} + * @memberof ExternalTransaction + */ + 'Network': Network; + /** + * + * @type {TransactionStatus} + * @memberof ExternalTransaction + */ + 'Status': TransactionStatus; +} + + + diff --git a/src/wallet/model/friend-points-response.ts b/src/wallet/model/friend-points-response.ts new file mode 100644 index 0000000..6479ba8 --- /dev/null +++ b/src/wallet/model/friend-points-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { FriendPoints } from './friend-points'; + +/** + * + * @export + * @interface FriendPointsResponse + */ +export interface FriendPointsResponse { + /** + * + * @type {Array} + * @memberof FriendPointsResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/friend-points.ts b/src/wallet/model/friend-points.ts new file mode 100644 index 0000000..d1ee320 --- /dev/null +++ b/src/wallet/model/friend-points.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface FriendPoints + */ +export interface FriendPoints { + /** + * the first name of the friend + * @type {string} + * @memberof FriendPoints + */ + 'firstName': string; + /** + * the points of the friend + * @type {number} + * @memberof FriendPoints + */ + 'points': number; +} + diff --git a/src/wallet/model/health-status.ts b/src/wallet/model/health-status.ts new file mode 100644 index 0000000..2a7bde0 --- /dev/null +++ b/src/wallet/model/health-status.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface HealthStatus + */ +export interface HealthStatus { + /** + * + * @type {string} + * @memberof HealthStatus + */ + 'status'?: string; +} + diff --git a/src/wallet/model/index.ts b/src/wallet/model/index.ts new file mode 100644 index 0000000..62a97e5 --- /dev/null +++ b/src/wallet/model/index.ts @@ -0,0 +1,64 @@ +export * from './admin-redemption-update-request'; +export * from './auth-telegram-request'; +export * from './balance'; +export * from './bank-info'; +export * from './bullet-content'; +export * from './coin'; +export * from './coin-config'; +export * from './coin-response'; +export * from './create-child-user-request'; +export * from './currency'; +export * from './deposit-response'; +export * from './detailed-loan-to-value-options'; +export * from './email-otp-submit-request'; +export * from './error-detail'; +export * from './external-transaction'; +export * from './friend-points'; +export * from './friend-points-response'; +export * from './health-status'; +export * from './jwt-response'; +export * from './kyc-confirm-request'; +export * from './kyc-request'; +export * from './kyc-response'; +export * from './loan-create-request'; +export * from './loan-plan'; +export * from './loan-plan-response'; +export * from './loan-to-value-options'; +export * from './loans-response'; +export * from './loans-response-list'; +export * from './login-request'; +export * from './model-error'; +export * from './network'; +export * from './payment'; +export * from './payment-request'; +export * from './phone-otp-submit-request'; +export * from './profile-response'; +export * from './redemption'; +export * from './redemption-request'; +export * from './redemption-response'; +export * from './referral'; +export * from './referral-response'; +export * from './repay-loan-request'; +export * from './sign-up-request'; +export * from './simple-response'; +export * from './swap-request'; +export * from './swap-response'; +export * from './symbol'; +export * from './task'; +export * from './task-response'; +export * from './telegram-profile'; +export * from './timestamp'; +export * from './transaction'; +export * from './transaction-response'; +export * from './transaction-status'; +export * from './transaction-type'; +export * from './update-email-request'; +export * from './update-phone-request'; +export * from './user'; +export * from './user-error'; +export * from './wallet-balance'; +export * from './withdraw-request'; +export * from './withdraw-request-body'; +export * from './withdraw-request-preview'; +export * from './withdraw-request-response'; +export * from './withdraw-response-body'; diff --git a/src/wallet/model/jwt-response.ts b/src/wallet/model/jwt-response.ts new file mode 100644 index 0000000..f5b35e5 --- /dev/null +++ b/src/wallet/model/jwt-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface JwtResponse + */ +export interface JwtResponse { + /** + * JWT token + * @type {string} + * @memberof JwtResponse + */ + 'token': string; +} + diff --git a/src/wallet/model/kyc-confirm-request.ts b/src/wallet/model/kyc-confirm-request.ts new file mode 100644 index 0000000..2f6dcd9 --- /dev/null +++ b/src/wallet/model/kyc-confirm-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface KycConfirmRequest + */ +export interface KycConfirmRequest { + /** + * KYC request ID + * @type {string} + * @memberof KycConfirmRequest + */ + 'id': string; +} + diff --git a/src/wallet/model/kyc-request.ts b/src/wallet/model/kyc-request.ts new file mode 100644 index 0000000..dced7e1 --- /dev/null +++ b/src/wallet/model/kyc-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface KycRequest + */ +export interface KycRequest { + /** + * National ID + * @type {string} + * @memberof KycRequest + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycRequest + */ + 'dateOfBirth': string; + /** + * Card number + * @type {string} + * @memberof KycRequest + */ + 'cardNumber': string; +} + diff --git a/src/wallet/model/kyc-response.ts b/src/wallet/model/kyc-response.ts new file mode 100644 index 0000000..5f681e9 --- /dev/null +++ b/src/wallet/model/kyc-response.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BankInfo } from './bank-info'; + +/** + * + * @export + * @interface KycResponse + */ +export interface KycResponse { + /** + * KYC request ID + * @type {string} + * @memberof KycResponse + */ + 'id': string; + /** + * First name + * @type {string} + * @memberof KycResponse + */ + 'firstName': string; + /** + * Last name + * @type {string} + * @memberof KycResponse + */ + 'lastName': string; + /** + * National code + * @type {string} + * @memberof KycResponse + */ + 'nationalId': string; + /** + * Date of birth + * @type {string} + * @memberof KycResponse + */ + 'dateOfBirth': string; + /** + * + * @type {BankInfo} + * @memberof KycResponse + */ + 'bankInfo': BankInfo; +} + diff --git a/src/wallet/model/loan-create-request.ts b/src/wallet/model/loan-create-request.ts new file mode 100644 index 0000000..1583254 --- /dev/null +++ b/src/wallet/model/loan-create-request.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LoanToValueOptions } from './loan-to-value-options'; + +/** + * + * @export + * @interface LoanCreateRequest + */ +export interface LoanCreateRequest { + /** + * Intent to create a vault + * @type {string} + * @memberof LoanCreateRequest + */ + 'intent': LoanCreateRequestIntentEnum; + /** + * The name of the loan plan + * @type {string} + * @memberof LoanCreateRequest + */ + 'planName': string; + /** + * Collateral amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'collateral'?: string; + /** + * Debt amount + * @type {string} + * @memberof LoanCreateRequest + */ + 'debt'?: string; + /** + * Coin symbol + * @type {string} + * @memberof LoanCreateRequest + */ + 'symbol': string; + /** + * + * @type {LoanToValueOptions} + * @memberof LoanCreateRequest + */ + 'loanToValueOption': LoanToValueOptions; +} + +export const LoanCreateRequestIntentEnum = { + CREATE: 'Create', + PREVIEW: 'Preview' +} as const; + +export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; + + diff --git a/src/wallet/model/loan-plan-response.ts b/src/wallet/model/loan-plan-response.ts new file mode 100644 index 0000000..a9dd4c6 --- /dev/null +++ b/src/wallet/model/loan-plan-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LoanPlan } from './loan-plan'; + +/** + * + * @export + * @interface LoanPlanResponse + */ +export interface LoanPlanResponse { + /** + * + * @type {Array} + * @memberof LoanPlanResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/loan-plan.ts b/src/wallet/model/loan-plan.ts new file mode 100644 index 0000000..a13280e --- /dev/null +++ b/src/wallet/model/loan-plan.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Coin } from './coin'; +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { DetailedLoanToValueOptions } from './detailed-loan-to-value-options'; + +/** + * + * @export + * @interface LoanPlan + */ +export interface LoanPlan { + /** + * The name of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'name': string; + /** + * The minimum collateralization ratio of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'minCollateralizationRatio': string; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'acceptableCoins': Array; + /** + * The annual fee of the loan plan + * @type {string} + * @memberof LoanPlan + */ + 'fee': string; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'maxDebt': Currency; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + 'minDebt': Currency; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + 'loanToValueOptions': Array; +} + diff --git a/src/wallet/model/loan-to-value-options.ts b/src/wallet/model/loan-to-value-options.ts new file mode 100644 index 0000000..e58dc42 --- /dev/null +++ b/src/wallet/model/loan-to-value-options.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The loan to value percentage options + * @export + * @enum {string} + */ + +export const LoanToValueOptions = { + RISKY: 'Risky', + NORMAL: 'Normal', + SAFE: 'Safe' +} as const; + +export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; + + + diff --git a/src/wallet/model/loans-response-list.ts b/src/wallet/model/loans-response-list.ts new file mode 100644 index 0000000..59f1448 --- /dev/null +++ b/src/wallet/model/loans-response-list.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { LoansResponse } from './loans-response'; + +/** + * + * @export + * @interface LoansResponseList + */ +export interface LoansResponseList { + /** + * + * @type {Array} + * @memberof LoansResponseList + */ + 'data': Array; +} + diff --git a/src/wallet/model/loans-response.ts b/src/wallet/model/loans-response.ts new file mode 100644 index 0000000..798c021 --- /dev/null +++ b/src/wallet/model/loans-response.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BulletContent } from './bullet-content'; +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { LoanPlan } from './loan-plan'; + +/** + * + * @export + * @interface LoansResponse + */ +export interface LoansResponse { + /** + * Identifier for the vault. + * @type {string} + * @memberof LoansResponse + */ + 'id'?: string; + /** + * Identifier for the user. + * @type {number} + * @memberof LoansResponse + */ + 'userId': number; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'liquidationPrice': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'collateral': Currency; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'collateralizationRatio': string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof LoansResponse + */ + 'loanToValue': string; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'debt': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'principal': Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'scaledDebt': Currency; + /** + * + * @type {LoanPlan} + * @memberof LoansResponse + */ + 'plan': LoanPlan; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LoansResponse + */ + 'state': { [key: string]: string | undefined; }; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedCollateralTokenBalance'?: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + 'updatedDebtTokenBalance'?: Currency; + /** + * + * @type {BulletContent} + * @memberof LoansResponse + */ + 'termsAndConditions'?: BulletContent; +} + diff --git a/src/wallet/model/login-request.ts b/src/wallet/model/login-request.ts new file mode 100644 index 0000000..130db96 --- /dev/null +++ b/src/wallet/model/login-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LoginRequest + */ +export interface LoginRequest { + /** + * user\'s email + * @type {string} + * @memberof LoginRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof LoginRequest + */ + 'password': string; +} + diff --git a/src/wallet/model/model-error.ts b/src/wallet/model/model-error.ts new file mode 100644 index 0000000..4b31a51 --- /dev/null +++ b/src/wallet/model/model-error.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + 'msg': string; + /** + * + * @type {Array} + * @memberof ModelError + */ + 'reasons': Array; +} + diff --git a/src/wallet/model/network.ts b/src/wallet/model/network.ts new file mode 100644 index 0000000..f158cd9 --- /dev/null +++ b/src/wallet/model/network.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Network + */ +export interface Network { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Network + */ + 'name': { [key: string]: string | undefined; }; + /** + * + * @type {string} + * @memberof Network + */ + 'logoUri': string; +} + diff --git a/src/wallet/model/payment-request.ts b/src/wallet/model/payment-request.ts new file mode 100644 index 0000000..af000a3 --- /dev/null +++ b/src/wallet/model/payment-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PaymentRequest + */ +export interface PaymentRequest { + /** + * Payment amount + * @type {string} + * @memberof PaymentRequest + */ + 'amount': string; +} + diff --git a/src/wallet/model/payment.ts b/src/wallet/model/payment.ts new file mode 100644 index 0000000..3fad52c --- /dev/null +++ b/src/wallet/model/payment.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Payment + */ +export interface Payment { + /** + * Payment amount + * @type {string} + * @memberof Payment + */ + 'amount': string; + /** + * Payment hash + * @type {string} + * @memberof Payment + */ + 'hash': string; + /** + * Payment URL + * @type {string} + * @memberof Payment + */ + 'url': string; + /** + * Sender first name + * @type {string} + * @memberof Payment + */ + 'senderFirstName': string; + /** + * Payment text + * @type {string} + * @memberof Payment + */ + 'text': string; + /** + * Share URL + * @type {string} + * @memberof Payment + */ + 'shareUrl': string; +} + diff --git a/src/wallet/model/phone-otp-submit-request.ts b/src/wallet/model/phone-otp-submit-request.ts new file mode 100644 index 0000000..312c1af --- /dev/null +++ b/src/wallet/model/phone-otp-submit-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PhoneOtpSubmitRequest + */ +export interface PhoneOtpSubmitRequest { + /** + * Confirmation code + * @type {number} + * @memberof PhoneOtpSubmitRequest + */ + 'code': number; +} + diff --git a/src/wallet/model/profile-response.ts b/src/wallet/model/profile-response.ts new file mode 100644 index 0000000..0027644 --- /dev/null +++ b/src/wallet/model/profile-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BankInfo } from './bank-info'; +// May contain unused imports in some cases +// @ts-ignore +import type { Referral } from './referral'; +// May contain unused imports in some cases +// @ts-ignore +import type { User } from './user'; + +/** + * + * @export + * @interface ProfileResponse + */ +export interface ProfileResponse { + /** + * + * @type {Referral} + * @memberof ProfileResponse + */ + 'referral': Referral; + /** + * + * @type {number} + * @memberof ProfileResponse + */ + 'points': number; + /** + * + * @type {User} + * @memberof ProfileResponse + */ + 'user': User; + /** + * + * @type {Array} + * @memberof ProfileResponse + */ + 'bankInfo': Array; +} + diff --git a/src/wallet/model/redemption-request.ts b/src/wallet/model/redemption-request.ts new file mode 100644 index 0000000..69f898e --- /dev/null +++ b/src/wallet/model/redemption-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RedemptionRequest + */ +export interface RedemptionRequest { + /** + * The amount to be redeemed in ZAR + * @type {string} + * @memberof RedemptionRequest + */ + 'amount': string; + /** + * The card number to which the redemption amount will be transferred + * @type {string} + * @memberof RedemptionRequest + */ + 'destinationCardNumber': string; + /** + * The SMS OTP code + * @type {number} + * @memberof RedemptionRequest + */ + 'SmsOtp': number; +} + diff --git a/src/wallet/model/redemption-response.ts b/src/wallet/model/redemption-response.ts new file mode 100644 index 0000000..315bde0 --- /dev/null +++ b/src/wallet/model/redemption-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Redemption } from './redemption'; + +/** + * + * @export + * @interface RedemptionResponse + */ +export interface RedemptionResponse { + /** + * + * @type {Array} + * @memberof RedemptionResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/redemption.ts b/src/wallet/model/redemption.ts new file mode 100644 index 0000000..8ee07c8 --- /dev/null +++ b/src/wallet/model/redemption.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BankInfo } from './bank-info'; +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface Redemption + */ +export interface Redemption { + /** + * + * @type {Currency} + * @memberof Redemption + */ + 'amount': Currency; + /** + * + * @type {BankInfo} + * @memberof Redemption + */ + 'destinationBankInfo': BankInfo; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Redemption + */ + 'status': { [key: string]: string | undefined; }; + /** + * The ID of the redemption request + * @type {string} + * @memberof Redemption + */ + 'id': string; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + 'updatedAt'?: Timestamp; + /** + * The Paya tracking code + * @type {string} + * @memberof Redemption + */ + 'payaTrackingCode'?: string; +} + diff --git a/src/wallet/model/referral-response.ts b/src/wallet/model/referral-response.ts new file mode 100644 index 0000000..c4d671a --- /dev/null +++ b/src/wallet/model/referral-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Referral } from './referral'; + +/** + * + * @export + * @interface ReferralResponse + */ +export interface ReferralResponse { + /** + * + * @type {Array} + * @memberof ReferralResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/referral.ts b/src/wallet/model/referral.ts new file mode 100644 index 0000000..ca90b7e --- /dev/null +++ b/src/wallet/model/referral.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface Referral + */ +export interface Referral { + /** + * + * @type {number} + * @memberof Referral + */ + 'id': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'referrerId': number; + /** + * + * @type {string} + * @memberof Referral + */ + 'name'?: string | null; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageLimit': number; + /** + * + * @type {number} + * @memberof Referral + */ + 'usageCount': number; + /** + * + * @type {Timestamp} + * @memberof Referral + */ + 'createdAt': Timestamp; + /** + * + * @type {string} + * @memberof Referral + */ + 'link'?: string | null; + /** + * + * @type {string} + * @memberof Referral + */ + 'shareUrl'?: string; +} + diff --git a/src/wallet/model/repay-loan-request.ts b/src/wallet/model/repay-loan-request.ts new file mode 100644 index 0000000..624f0a5 --- /dev/null +++ b/src/wallet/model/repay-loan-request.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface RepayLoanRequest + */ +export interface RepayLoanRequest { + /** + * Intent to repay a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'intent': RepayLoanRequestIntentEnum; + /** + * The id of a loan + * @type {string} + * @memberof RepayLoanRequest + */ + 'loanId': string; +} + +export const RepayLoanRequestIntentEnum = { + REPAY: 'Repay', + PREVIEW: 'Preview' +} as const; + +export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; + + diff --git a/src/wallet/model/sign-up-request.ts b/src/wallet/model/sign-up-request.ts new file mode 100644 index 0000000..34e3d9d --- /dev/null +++ b/src/wallet/model/sign-up-request.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SignUpRequest + */ +export interface SignUpRequest { + /** + * user\'s email + * @type {string} + * @memberof SignUpRequest + */ + 'email': string; + /** + * user\'s password + * @type {string} + * @memberof SignUpRequest + */ + 'password': string; +} + diff --git a/src/wallet/model/simple-response.ts b/src/wallet/model/simple-response.ts new file mode 100644 index 0000000..1e4359c --- /dev/null +++ b/src/wallet/model/simple-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SimpleResponse + */ +export interface SimpleResponse { + /** + * Localized messages + * @type {{ [key: string]: string | undefined; }} + * @memberof SimpleResponse + */ + 'messages': { [key: string]: string | undefined; }; +} + diff --git a/src/wallet/model/swap-request.ts b/src/wallet/model/swap-request.ts new file mode 100644 index 0000000..33a00e0 --- /dev/null +++ b/src/wallet/model/swap-request.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SwapRequest + */ +export interface SwapRequest { + /** + * Intent to swap + * @type {string} + * @memberof SwapRequest + */ + 'intent': SwapRequestIntentEnum; + /** + * Quote ID, required if intent is Swap + * @type {string} + * @memberof SwapRequest + */ + 'quoteId'?: string; + /** + * Trade type + * @type {string} + * @memberof SwapRequest + */ + 'tradeType'?: SwapRequestTradeTypeEnum; + /** + * Coin symbol to swap from + * @type {string} + * @memberof SwapRequest + */ + 'in'?: string; + /** + * Coin symbol to swap to + * @type {string} + * @memberof SwapRequest + */ + 'out'?: string; + /** + * Amount to swap + * @type {string} + * @memberof SwapRequest + */ + 'amount'?: string; +} + +export const SwapRequestIntentEnum = { + SWAP: 'Swap', + QUOTE: 'Quote', + PREVIEW: 'Preview' +} as const; + +export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; +export const SwapRequestTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +} as const; + +export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; + + diff --git a/src/wallet/model/swap-response.ts b/src/wallet/model/swap-response.ts new file mode 100644 index 0000000..ea50ee5 --- /dev/null +++ b/src/wallet/model/swap-response.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface SwapResponse + */ +export interface SwapResponse { + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'id': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'tradeType': SwapResponseTradeTypeEnum; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'in': Symbol; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + 'out': Symbol; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'amount': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'quote': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'rate': string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'inputBalanceAfterSwap'?: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + 'outputBalanceAfterSwap'?: string; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'createdAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'expiresAt': Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + 'executedAt'?: Timestamp; + /** + * + * @type {Currency} + * @memberof SwapResponse + */ + 'value': Currency; +} + +export const SwapResponseTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +} as const; + +export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; + + diff --git a/src/wallet/model/symbol.ts b/src/wallet/model/symbol.ts new file mode 100644 index 0000000..34286c2 --- /dev/null +++ b/src/wallet/model/symbol.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Symbol representation + * @export + * @enum {string} + */ + +export const Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +} as const; + +export type Symbol = typeof Symbol[keyof typeof Symbol]; + + + diff --git a/src/wallet/model/task-response.ts b/src/wallet/model/task-response.ts new file mode 100644 index 0000000..3328550 --- /dev/null +++ b/src/wallet/model/task-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Task } from './task'; + +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {Array} + * @memberof TaskResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/task.ts b/src/wallet/model/task.ts new file mode 100644 index 0000000..da960d2 --- /dev/null +++ b/src/wallet/model/task.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface Task + */ +export interface Task { + /** + * Task ID + * @type {string} + * @memberof Task + */ + 'id': string; + /** + * Task description + * @type {string} + * @memberof Task + */ + 'description': string; + /** + * Task reward + * @type {number} + * @memberof Task + */ + 'points': number; + /** + * Task status. Possible values \"Pending\", \"Completed\" + * @type {string} + * @memberof Task + */ + 'status': string; + /** + * + * @type {Timestamp} + * @memberof Task + */ + 'completedAt'?: Timestamp; +} + diff --git a/src/wallet/model/telegram-profile.ts b/src/wallet/model/telegram-profile.ts new file mode 100644 index 0000000..748ea1a --- /dev/null +++ b/src/wallet/model/telegram-profile.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface TelegramProfile + */ +export interface TelegramProfile { + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'username'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'firstName': string; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'lastName'?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + 'photoUrl'?: string | null; +} + diff --git a/src/wallet/model/timestamp.ts b/src/wallet/model/timestamp.ts new file mode 100644 index 0000000..4cf22af --- /dev/null +++ b/src/wallet/model/timestamp.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + 'jalaali': string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + 'gregorian': string; +} + diff --git a/src/wallet/model/transaction-response.ts b/src/wallet/model/transaction-response.ts new file mode 100644 index 0000000..9f1949c --- /dev/null +++ b/src/wallet/model/transaction-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Transaction } from './transaction'; + +/** + * + * @export + * @interface TransactionResponse + */ +export interface TransactionResponse { + /** + * + * @type {Array} + * @memberof TransactionResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/transaction-status.ts b/src/wallet/model/transaction-status.ts new file mode 100644 index 0000000..59e14d7 --- /dev/null +++ b/src/wallet/model/transaction-status.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const TransactionStatus = { + SENT: 'Sent', + SUCCESS: 'Success', + FAILED: 'Failed' +} as const; + +export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; + + + diff --git a/src/wallet/model/transaction-type.ts b/src/wallet/model/transaction-type.ts new file mode 100644 index 0000000..01cd110 --- /dev/null +++ b/src/wallet/model/transaction-type.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const TransactionType = { + CREDIT: 'Credit', + DEBIT: 'Debit', + TRANSFER: 'Transfer', + DEPOSIT: 'Deposit', + WITHDRAW: 'Withdraw' +} as const; + +export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; + + + diff --git a/src/wallet/model/transaction.ts b/src/wallet/model/transaction.ts new file mode 100644 index 0000000..6d6251b --- /dev/null +++ b/src/wallet/model/transaction.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { ExternalTransaction } from './external-transaction'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; +// May contain unused imports in some cases +// @ts-ignore +import type { TransactionType } from './transaction-type'; + +/** + * + * @export + * @interface Transaction + */ +export interface Transaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof Transaction + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof Transaction + */ + 'time': Timestamp; + /** + * + * @type {TransactionType} + * @memberof Transaction + */ + 'type': TransactionType; + /** + * The ID of the user from whom the transaction originated + * @type {string} + * @memberof Transaction + */ + 'from': string; + /** + * The ID of the user to whom the transaction is directed + * @type {string} + * @memberof Transaction + */ + 'to': string; + /** + * + * @type {Symbol} + * @memberof Transaction + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof Transaction + */ + 'amount': Currency; + /** + * Equal to \"Inbound\" if the transaction is directed to the user, and \"Outbound\" if the transaction is directed from the user. + * @type {string} + * @memberof Transaction + */ + 'direction': TransactionDirectionEnum; + /** + * + * @type {ExternalTransaction} + * @memberof Transaction + */ + 'externalTransaction'?: ExternalTransaction; +} + +export const TransactionDirectionEnum = { + INBOUND: 'Inbound', + OUTBOUND: 'Outbound' +} as const; + +export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; + + diff --git a/src/wallet/model/update-email-request.ts b/src/wallet/model/update-email-request.ts new file mode 100644 index 0000000..e6b16f6 --- /dev/null +++ b/src/wallet/model/update-email-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdateEmailRequest + */ +export interface UpdateEmailRequest { + /** + * Email address + * @type {string} + * @memberof UpdateEmailRequest + */ + 'email': string; +} + diff --git a/src/wallet/model/update-phone-request.ts b/src/wallet/model/update-phone-request.ts new file mode 100644 index 0000000..381fbb7 --- /dev/null +++ b/src/wallet/model/update-phone-request.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface UpdatePhoneRequest + */ +export interface UpdatePhoneRequest { + /** + * Phone number + * @type {string} + * @memberof UpdatePhoneRequest + */ + 'number': string; +} + diff --git a/src/wallet/model/user-error.ts b/src/wallet/model/user-error.ts new file mode 100644 index 0000000..1865611 --- /dev/null +++ b/src/wallet/model/user-error.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ErrorDetail } from './error-detail'; + +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorDetail | undefined; }} + * @memberof UserError + */ + 'messages': { [key: string]: ErrorDetail | undefined; }; +} + diff --git a/src/wallet/model/user.ts b/src/wallet/model/user.ts new file mode 100644 index 0000000..2e585cf --- /dev/null +++ b/src/wallet/model/user.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { TelegramProfile } from './telegram-profile'; + +/** + * + * @export + * @interface User + */ +export interface User { + /** + * User\'s first name + * @type {string} + * @memberof User + */ + 'firstName'?: string; + /** + * User\'s last name + * @type {string} + * @memberof User + */ + 'lastName'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'email'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'username'?: string; + /** + * + * @type {string} + * @memberof User + */ + 'phone'?: string; + /** + * + * @type {boolean} + * @memberof User + */ + 'isEmailVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isPhoneVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isKycVerified'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isChild'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isSuperUser'?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + 'isAdmin'?: boolean; + /** + * + * @type {TelegramProfile} + * @memberof User + */ + 'telegram'?: TelegramProfile; +} + diff --git a/src/wallet/model/wallet-balance.ts b/src/wallet/model/wallet-balance.ts new file mode 100644 index 0000000..39225ca --- /dev/null +++ b/src/wallet/model/wallet-balance.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Balance } from './balance'; +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; + +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Currency} + * @memberof WalletBalance + */ + 'total': Currency; + /** + * + * @type {Array} + * @memberof WalletBalance + */ + 'balances': Array; +} + diff --git a/src/wallet/model/withdraw-request-body.ts b/src/wallet/model/withdraw-request-body.ts new file mode 100644 index 0000000..3eab4c5 --- /dev/null +++ b/src/wallet/model/withdraw-request-body.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface WithdrawRequestBody + */ +export interface WithdrawRequestBody { + /** + * Network to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'network': string; + /** + * Coin symbol + * @type {string} + * @memberof WithdrawRequestBody + */ + 'symbol': string; + /** + * Amount to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + 'amount': string; + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestBody + */ + 'address': string; + /** + * + * @type {string} + * @memberof WithdrawRequestBody + */ + 'comment'?: string | null; +} + diff --git a/src/wallet/model/withdraw-request-preview.ts b/src/wallet/model/withdraw-request-preview.ts new file mode 100644 index 0000000..bf20b02 --- /dev/null +++ b/src/wallet/model/withdraw-request-preview.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Currency } from './currency'; +// May contain unused imports in some cases +// @ts-ignore +import type { Network } from './network'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; + +/** + * + * @export + * @interface WithdrawRequestPreview + */ +export interface WithdrawRequestPreview { + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestPreview + */ + 'address': string; + /** + * + * @type {Network} + * @memberof WithdrawRequestPreview + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequestPreview + */ + 'symbol': Symbol; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'amount': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'fee': Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + 'balanceAfterWithdraw': Currency; +} + + + diff --git a/src/wallet/model/withdraw-request-response.ts b/src/wallet/model/withdraw-request-response.ts new file mode 100644 index 0000000..1b36e98 --- /dev/null +++ b/src/wallet/model/withdraw-request-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { WithdrawRequest } from './withdraw-request'; + +/** + * + * @export + * @interface WithdrawRequestResponse + */ +export interface WithdrawRequestResponse { + /** + * + * @type {Array} + * @memberof WithdrawRequestResponse + */ + 'data': Array; +} + diff --git a/src/wallet/model/withdraw-request.ts b/src/wallet/model/withdraw-request.ts new file mode 100644 index 0000000..d38784f --- /dev/null +++ b/src/wallet/model/withdraw-request.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { Network } from './network'; +// May contain unused imports in some cases +// @ts-ignore +import type { Symbol } from './symbol'; +// May contain unused imports in some cases +// @ts-ignore +import type { Timestamp } from './timestamp'; + +/** + * + * @export + * @interface WithdrawRequest + */ +export interface WithdrawRequest { + /** + * + * @type {number} + * @memberof WithdrawRequest + */ + 'id': number; + /** + * + * @type {Timestamp} + * @memberof WithdrawRequest + */ + 'timeCreated': Timestamp; + /** + * + * @type {Network} + * @memberof WithdrawRequest + */ + 'network': Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequest + */ + 'symbol': Symbol; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'amount': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'to': string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'comment'?: string | null; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'status': WithdrawRequestStatusEnum; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + 'blockExplorerUrl'?: string | null; +} + +export const WithdrawRequestStatusEnum = { + PENDING: 'Pending', + CANCELED: 'Canceled', + APPROVED: 'Approved', + REJECTED: 'Rejected', + PROCCESSING: 'Proccessing', + FAILED: 'Failed', + SENT: 'Sent', + ACCOUNT_DEBITED: 'AccountDebited', + ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', + COMPLETED: 'Completed' +} as const; + +export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; + + diff --git a/src/wallet/model/withdraw-response-body.ts b/src/wallet/model/withdraw-response-body.ts new file mode 100644 index 0000000..63db3cf --- /dev/null +++ b/src/wallet/model/withdraw-response-body.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface WithdrawResponseBody + */ +export interface WithdrawResponseBody { + /** + * Withdrawal request ID + * @type {number} + * @memberof WithdrawResponseBody + */ + 'id': number; +} + diff --git a/src/wallet/package.json b/src/wallet/package.json index e683f67..7a93350 100644 --- a/src/wallet/package.json +++ b/src/wallet/package.json @@ -1,12 +1,20 @@ { "name": "zarban", - "version": "0.1.8", + "version": "0.2.0", "description": "OpenAPI client for zarban", - "author": "OpenAPI-Generator", + "author": "OpenAPI-Generator Contributors", "repository": { "type": "git", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, + "keywords": [ + "axios", + "typescript", + "openapi-client", + "openapi-generator", + "zarban" + ], + "license": "Unlicense", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", @@ -15,7 +23,11 @@ "build": "tsc && tsc -p tsconfig.esm.json", "prepare": "npm run build" }, + "dependencies": { + "axios": "^1.6.1" + }, "devDependencies": { + "@types/node": "12.11.5 - 12.20.42", "typescript": "^4.0 || ^5.0" } } diff --git a/src/wallet/src/apis/AuthApi.ts b/src/wallet/src/apis/AuthApi.ts deleted file mode 100644 index 519a0b0..0000000 --- a/src/wallet/src/apis/AuthApi.ts +++ /dev/null @@ -1,439 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - AuthTelegramRequest, - JwtResponse, - LoginRequest, - SignUpRequest, - SimpleResponse, - UserError, -} from '../models/index'; -import { - AuthTelegramRequestFromJSON, - AuthTelegramRequestToJSON, - JwtResponseFromJSON, - JwtResponseToJSON, - LoginRequestFromJSON, - LoginRequestToJSON, - SignUpRequestFromJSON, - SignUpRequestToJSON, - SimpleResponseFromJSON, - SimpleResponseToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface AuthenticateWithTelegramRequest { - authTelegramRequest: AuthTelegramRequest; -} - -export interface GenerateJwtTokenRequest { - duration: GenerateJwtTokenDurationEnum; -} - -export interface GetOtpRequest { - channel: GetOtpChannelEnum; -} - -export interface LoginWithEmailAndPasswordRequest { - loginRequest: LoginRequest; -} - -export interface SignupWithEmailAndPasswordRequest { - signUpRequest: SignUpRequest; -} - -export interface VerifyUserEmailRequest { - token: string; -} - -/** - * AuthApi - interface - * - * @export - * @interface AuthApiInterface - */ -export interface AuthApiInterface { - /** - * Authenticate with Telegram and get a JWT token. - * @summary Authenticate with Telegram - * @param {AuthTelegramRequest} authTelegramRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Generate a JWT token. - * @summary Generate a JWT token - * @param {7 | 15 | 30 | 90} duration Token duration in days - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Generate a JWT token. - * Generate a JWT token - */ - generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get OTP for the user. - * @summary Get OTP - * @param {'phone'} channel Channel to send OTP - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get OTP for the user. - * Get OTP - */ - getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Login with email and password and get a JWT token. - * @summary Login with email and password - * @param {LoginRequest} loginRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * signup with email and password and get a JWT token. - * @summary signup with email and password - * @param {SignUpRequest} signUpRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Verify the email of the user. - * @summary Verify email - * @param {string} token Verification token - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthApiInterface - */ - verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class AuthApi extends runtime.BaseAPI implements AuthApiInterface { - - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - async authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['authTelegramRequest'] == null) { - throw new runtime.RequiredError( - 'authTelegramRequest', - 'Required parameter "authTelegramRequest" was null or undefined when calling authenticateWithTelegram().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/auth/telegram`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: AuthTelegramRequestToJSON(requestParameters['authTelegramRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => JwtResponseFromJSON(jsonValue)); - } - - /** - * Authenticate with Telegram and get a JWT token. - * Authenticate with Telegram - */ - async authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.authenticateWithTelegramRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Generate a JWT token. - * Generate a JWT token - */ - async generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['duration'] == null) { - throw new runtime.RequiredError( - 'duration', - 'Required parameter "duration" was null or undefined when calling generateJwtToken().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['duration'] != null) { - queryParameters['duration'] = requestParameters['duration']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/auth/token`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => JwtResponseFromJSON(jsonValue)); - } - - /** - * Generate a JWT token. - * Generate a JWT token - */ - async generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.generateJwtTokenRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get OTP for the user. - * Get OTP - */ - async getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['channel'] == null) { - throw new runtime.RequiredError( - 'channel', - 'Required parameter "channel" was null or undefined when calling getOtp().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['channel'] != null) { - queryParameters['channel'] = requestParameters['channel']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/auth/otp`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleResponseFromJSON(jsonValue)); - } - - /** - * Get OTP for the user. - * Get OTP - */ - async getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getOtpRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - async loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['loginRequest'] == null) { - throw new runtime.RequiredError( - 'loginRequest', - 'Required parameter "loginRequest" was null or undefined when calling loginWithEmailAndPassword().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/auth/login`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LoginRequestToJSON(requestParameters['loginRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => JwtResponseFromJSON(jsonValue)); - } - - /** - * Login with email and password and get a JWT token. - * Login with email and password - */ - async loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.loginWithEmailAndPasswordRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - async signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['signUpRequest'] == null) { - throw new runtime.RequiredError( - 'signUpRequest', - 'Required parameter "signUpRequest" was null or undefined when calling signupWithEmailAndPassword().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/auth/signup`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: SignUpRequestToJSON(requestParameters['signUpRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleResponseFromJSON(jsonValue)); - } - - /** - * signup with email and password and get a JWT token. - * signup with email and password - */ - async signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.signupWithEmailAndPasswordRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['token'] == null) { - throw new runtime.RequiredError( - 'token', - 'Required parameter "token" was null or undefined when calling verifyUserEmail().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['token'] != null) { - queryParameters['token'] = requestParameters['token']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/verify-email`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => JwtResponseFromJSON(jsonValue)); - } - - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.verifyUserEmailRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const GenerateJwtTokenDurationEnum = { - NUMBER_7: 7, - NUMBER_15: 15, - NUMBER_30: 30, - NUMBER_90: 90 -} as const; -export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; -/** - * @export - */ -export const GetOtpChannelEnum = { - PHONE: 'phone' -} as const; -export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; diff --git a/src/wallet/src/apis/BalanceApi.ts b/src/wallet/src/apis/BalanceApi.ts deleted file mode 100644 index 6e41f6c..0000000 --- a/src/wallet/src/apis/BalanceApi.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Balance, - Symbol, - WalletBalance, -} from '../models/index'; -import { - BalanceFromJSON, - BalanceToJSON, - SymbolFromJSON, - SymbolToJSON, - WalletBalanceFromJSON, - WalletBalanceToJSON, -} from '../models/index'; - -export interface GetBalanceBySymbolRequest { - symbol: Symbol; -} - -/** - * BalanceApi - interface - * - * @export - * @interface BalanceApiInterface - */ -export interface BalanceApiInterface { - /** - * Get the balance by a symbol. - * @summary Get balance - * @param {Symbol} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BalanceApiInterface - */ - getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the balance by a symbol. - * Get balance - */ - getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the balance of the wallet. - * @summary Get wallet balance - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof BalanceApiInterface - */ - getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the balance of the wallet. - * Get wallet balance - */ - getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class BalanceApi extends runtime.BaseAPI implements BalanceApiInterface { - - /** - * Get the balance by a symbol. - * Get balance - */ - async getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError( - 'symbol', - 'Required parameter "symbol" was null or undefined when calling getBalanceBySymbol().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/balance/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BalanceFromJSON(jsonValue)); - } - - /** - * Get the balance by a symbol. - * Get balance - */ - async getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getBalanceBySymbolRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get the balance of the wallet. - * Get wallet balance - */ - async getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/balance`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WalletBalanceFromJSON(jsonValue)); - } - - /** - * Get the balance of the wallet. - * Get wallet balance - */ - async getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getWalletBalanceRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/CoinsApi.ts b/src/wallet/src/apis/CoinsApi.ts deleted file mode 100644 index 2fe3cb6..0000000 --- a/src/wallet/src/apis/CoinsApi.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Coin, - CoinResponse, - Symbol, -} from '../models/index'; -import { - CoinFromJSON, - CoinToJSON, - CoinResponseFromJSON, - CoinResponseToJSON, - SymbolFromJSON, - SymbolToJSON, -} from '../models/index'; - -export interface GetCoinDetailsRequest { - symbol: Symbol; -} - -/** - * CoinsApi - interface - * - * @export - * @interface CoinsApiInterface - */ -export interface CoinsApiInterface { - /** - * Get the details of a coin. - * @summary Get coin - * @param {Symbol} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CoinsApiInterface - */ - getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the details of a coin. - * Get coin - */ - getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the list of supported coins. - * @summary Get coins - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof CoinsApiInterface - */ - getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the list of supported coins. - * Get coins - */ - getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class CoinsApi extends runtime.BaseAPI implements CoinsApiInterface { - - /** - * Get the details of a coin. - * Get coin - */ - async getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError( - 'symbol', - 'Required parameter "symbol" was null or undefined when calling getCoinDetails().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/coins/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CoinFromJSON(jsonValue)); - } - - /** - * Get the details of a coin. - * Get coin - */ - async getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCoinDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get the list of supported coins. - * Get coins - */ - async getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/coins`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CoinResponseFromJSON(jsonValue)); - } - - /** - * Get the list of supported coins. - * Get coins - */ - async getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSupportedCoinsRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/DepositApi.ts b/src/wallet/src/apis/DepositApi.ts deleted file mode 100644 index 7fb1b80..0000000 --- a/src/wallet/src/apis/DepositApi.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - DepositResponse, -} from '../models/index'; -import { - DepositResponseFromJSON, - DepositResponseToJSON, -} from '../models/index'; - -export interface DepositMoneyRequest { - network: string; - symbol: string; -} - -/** - * DepositApi - interface - * - * @export - * @interface DepositApiInterface - */ -export interface DepositApiInterface { - /** - * Deposit money to the wallet. - * @summary Deposit money - * @param {string} network Network to deposit - * @param {string} symbol Coin symbol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DepositApiInterface - */ - depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Deposit money to the wallet. - * Deposit money - */ - depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class DepositApi extends runtime.BaseAPI implements DepositApiInterface { - - /** - * Deposit money to the wallet. - * Deposit money - */ - async depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['network'] == null) { - throw new runtime.RequiredError( - 'network', - 'Required parameter "network" was null or undefined when calling depositMoney().' - ); - } - - if (requestParameters['symbol'] == null) { - throw new runtime.RequiredError( - 'symbol', - 'Required parameter "symbol" was null or undefined when calling depositMoney().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['network'] != null) { - queryParameters['network'] = requestParameters['network']; - } - - if (requestParameters['symbol'] != null) { - queryParameters['symbol'] = requestParameters['symbol']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/deposit`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DepositResponseFromJSON(jsonValue)); - } - - /** - * Deposit money to the wallet. - * Deposit money - */ - async depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.depositMoneyRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/HealthApi.ts b/src/wallet/src/apis/HealthApi.ts deleted file mode 100644 index 9f31a63..0000000 --- a/src/wallet/src/apis/HealthApi.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - HealthStatus, -} from '../models/index'; -import { - HealthStatusFromJSON, - HealthStatusToJSON, -} from '../models/index'; - -/** - * HealthApi - interface - * - * @export - * @interface HealthApiInterface - */ -export interface HealthApiInterface { - /** - * Check the health of the API. - * @summary Health check - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof HealthApiInterface - */ - checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Check the health of the API. - * Health check - */ - checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class HealthApi extends runtime.BaseAPI implements HealthApiInterface { - - /** - * Check the health of the API. - * Health check - */ - async checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/healthz`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => HealthStatusFromJSON(jsonValue)); - } - - /** - * Check the health of the API. - * Health check - */ - async checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.checkApiHealthRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/LoansApi.ts b/src/wallet/src/apis/LoansApi.ts deleted file mode 100644 index 0829c25..0000000 --- a/src/wallet/src/apis/LoansApi.ts +++ /dev/null @@ -1,483 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Currency, - LoanCreateRequest, - LoanPlanResponse, - LoanToValueOptions, - LoansResponse, - LoansResponseList, - RepayLoanRequest, - UserError, -} from '../models/index'; -import { - CurrencyFromJSON, - CurrencyToJSON, - LoanCreateRequestFromJSON, - LoanCreateRequestToJSON, - LoanPlanResponseFromJSON, - LoanPlanResponseToJSON, - LoanToValueOptionsFromJSON, - LoanToValueOptionsToJSON, - LoansResponseFromJSON, - LoansResponseToJSON, - LoansResponseListFromJSON, - LoansResponseListToJSON, - RepayLoanRequestFromJSON, - RepayLoanRequestToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface CreateLoanVaultRequest { - loanCreateRequest: LoanCreateRequest; -} - -export interface EstimateLoanCollateralRequest { - planName: string; - loanToValueOption: LoanToValueOptions; - amount: string; - inputType: EstimateLoanCollateralInputTypeEnum; -} - -export interface GetLoanDetailsRequest { - id: string; -} - -export interface GetUserLoansRequest { - state?: GetUserLoansStateEnum; - planName?: string; -} - -export interface RepayLoanOperationRequest { - repayLoanRequest: RepayLoanRequest; -} - -/** - * LoansApi - interface - * - * @export - * @interface LoansApiInterface - */ -export interface LoansApiInterface { - /** - * Create a vault - * @summary Create vault - * @param {LoanCreateRequest} loanCreateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Create a vault - * Create vault - */ - createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * @summary Get collateral and loan amount estimation - * @param {string} planName The name of the loan plan - * @param {LoanToValueOptions} loanToValueOption The desired loan to value option - * @param {string} amount Loan/Collateral amount - * @param {'loan' | 'collateral'} inputType The type of the input amount - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get a list of the available plan loans. - * @summary Get all plan loans - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the details of a loan. - * @summary Get loan - * @param {string} id Loan ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the details of a loan. - * Get loan - */ - getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get a list of the user\'s loans. - * @summary Get user loans - * @param {'pending' | 'active' | 'repayment-ongoing' | 'settled' | 'creation-failed' | 'settlement-failed'} [state] loan state - * @param {string} [planName] loan plan name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a list of the user\'s loans. - * Get user loans - */ - getUserLoans(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Repay a loan totally - * @summary Repay Loan - * @param {RepayLoanRequest} repayLoanRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof LoansApiInterface - */ - repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Repay a loan totally - * Repay Loan - */ - repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class LoansApi extends runtime.BaseAPI implements LoansApiInterface { - - /** - * Create a vault - * Create vault - */ - async createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['loanCreateRequest'] == null) { - throw new runtime.RequiredError( - 'loanCreateRequest', - 'Required parameter "loanCreateRequest" was null or undefined when calling createLoanVault().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/create`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LoanCreateRequestToJSON(requestParameters['loanCreateRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LoansResponseFromJSON(jsonValue)); - } - - /** - * Create a vault - * Create vault - */ - async createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createLoanVaultRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - async estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['planName'] == null) { - throw new runtime.RequiredError( - 'planName', - 'Required parameter "planName" was null or undefined when calling estimateLoanCollateral().' - ); - } - - if (requestParameters['loanToValueOption'] == null) { - throw new runtime.RequiredError( - 'loanToValueOption', - 'Required parameter "loanToValueOption" was null or undefined when calling estimateLoanCollateral().' - ); - } - - if (requestParameters['amount'] == null) { - throw new runtime.RequiredError( - 'amount', - 'Required parameter "amount" was null or undefined when calling estimateLoanCollateral().' - ); - } - - if (requestParameters['inputType'] == null) { - throw new runtime.RequiredError( - 'inputType', - 'Required parameter "inputType" was null or undefined when calling estimateLoanCollateral().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['planName'] != null) { - queryParameters['planName'] = requestParameters['planName']; - } - - if (requestParameters['loanToValueOption'] != null) { - queryParameters['loanToValueOption'] = requestParameters['loanToValueOption']; - } - - if (requestParameters['amount'] != null) { - queryParameters['amount'] = requestParameters['amount']; - } - - if (requestParameters['inputType'] != null) { - queryParameters['inputType'] = requestParameters['inputType']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/loans/estimate`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CurrencyFromJSON(jsonValue)); - } - - /** - * Get an estimate of required collateral for a specific loan amount, and vice versa. - * Get collateral and loan amount estimation - */ - async estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.estimateLoanCollateralRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - async getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/loans/plans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LoanPlanResponseFromJSON(jsonValue)); - } - - /** - * Get a list of the available plan loans. - * Get all plan loans - */ - async getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllLoanPlansRaw(initOverrides); - return await response.value(); - } - - /** - * Get the details of a loan. - * Get loan - */ - async getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getLoanDetails().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LoansResponseFromJSON(jsonValue)); - } - - /** - * Get the details of a loan. - * Get loan - */ - async getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLoanDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a list of the user\'s loans. - * Get user loans - */ - async getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['state'] != null) { - queryParameters['state'] = requestParameters['state']; - } - - if (requestParameters['planName'] != null) { - queryParameters['planName'] = requestParameters['planName']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LoansResponseListFromJSON(jsonValue)); - } - - /** - * Get a list of the user\'s loans. - * Get user loans - */ - async getUserLoans(requestParameters: GetUserLoansRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserLoansRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Repay a loan totally - * Repay Loan - */ - async repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['repayLoanRequest'] == null) { - throw new runtime.RequiredError( - 'repayLoanRequest', - 'Required parameter "repayLoanRequest" was null or undefined when calling repayLoan().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/loans/repay`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RepayLoanRequestToJSON(requestParameters['repayLoanRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => LoansResponseFromJSON(jsonValue)); - } - - /** - * Repay a loan totally - * Repay Loan - */ - async repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.repayLoanRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const EstimateLoanCollateralInputTypeEnum = { - LOAN: 'loan', - COLLATERAL: 'collateral' -} as const; -export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; -/** - * @export - */ -export const GetUserLoansStateEnum = { - PENDING: 'pending', - ACTIVE: 'active', - REPAYMENT_ONGOING: 'repayment-ongoing', - SETTLED: 'settled', - CREATION_FAILED: 'creation-failed', - SETTLEMENT_FAILED: 'settlement-failed' -} as const; -export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; diff --git a/src/wallet/src/apis/PaymentApi.ts b/src/wallet/src/apis/PaymentApi.ts deleted file mode 100644 index 833b27a..0000000 --- a/src/wallet/src/apis/PaymentApi.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Payment, - PaymentRequest, - UserError, -} from '../models/index'; -import { - PaymentFromJSON, - PaymentToJSON, - PaymentRequestFromJSON, - PaymentRequestToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface CreatePaymentRequest { - paymentRequest: PaymentRequest; -} - -/** - * PaymentApi - interface - * - * @export - * @interface PaymentApiInterface - */ -export interface PaymentApiInterface { - /** - * Create a new payment. - * @summary Create a payment - * @param {PaymentRequest} paymentRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PaymentApiInterface - */ - createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Create a new payment. - * Create a payment - */ - createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class PaymentApi extends runtime.BaseAPI implements PaymentApiInterface { - - /** - * Create a new payment. - * Create a payment - */ - async createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['paymentRequest'] == null) { - throw new runtime.RequiredError( - 'paymentRequest', - 'Required parameter "paymentRequest" was null or undefined when calling createPayment().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/payments`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PaymentRequestToJSON(requestParameters['paymentRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PaymentFromJSON(jsonValue)); - } - - /** - * Create a new payment. - * Create a payment - */ - async createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createPaymentRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/PointsApi.ts b/src/wallet/src/apis/PointsApi.ts deleted file mode 100644 index bb5ccfa..0000000 --- a/src/wallet/src/apis/PointsApi.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - FriendPointsResponse, -} from '../models/index'; -import { - FriendPointsResponseFromJSON, - FriendPointsResponseToJSON, -} from '../models/index'; - -/** - * PointsApi - interface - * - * @export - * @interface PointsApiInterface - */ -export interface PointsApiInterface { - /** - * Get friends points. - * @summary Get friends points. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PointsApiInterface - */ - getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get friends points. - * Get friends points. - */ - getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class PointsApi extends runtime.BaseAPI implements PointsApiInterface { - - /** - * Get friends points. - * Get friends points. - */ - async getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/points/frineds`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => FriendPointsResponseFromJSON(jsonValue)); - } - - /** - * Get friends points. - * Get friends points. - */ - async getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getFriendsPointsRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/RedemptionsApi.ts b/src/wallet/src/apis/RedemptionsApi.ts deleted file mode 100644 index 3676b58..0000000 --- a/src/wallet/src/apis/RedemptionsApi.ts +++ /dev/null @@ -1,326 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - AdminRedemptionUpdateRequest, - Redemption, - RedemptionRequest, - RedemptionResponse, - UserError, -} from '../models/index'; -import { - AdminRedemptionUpdateRequestFromJSON, - AdminRedemptionUpdateRequestToJSON, - RedemptionFromJSON, - RedemptionToJSON, - RedemptionRequestFromJSON, - RedemptionRequestToJSON, - RedemptionResponseFromJSON, - RedemptionResponseToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface GetAllRedemptionsRequest { - state?: GetAllRedemptionsStateEnum; -} - -export interface GetRedemptionDetailsRequest { - id: number; -} - -export interface RedeemZarRequest { - redemptionRequest: RedemptionRequest; -} - -export interface UpdateRedemptionStatusRequest { - id: string; - adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest; -} - -/** - * RedemptionsApi - interface - * - * @export - * @interface RedemptionsApiInterface - */ -export interface RedemptionsApiInterface { - /** - * Get a list of all redemptions. - * @summary Get all redemptions - * @param {'pending' | 'approved' | 'completed' | 'rejected'} [state] Cursor for pagination - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a list of all redemptions. - * Get all redemptions - */ - getAllRedemptions(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the details of a redemption. - * @summary Get redemption - * @param {number} id Redemption ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the details of a redemption. - * Get redemption - */ - getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Redeem zar - * @summary Redeem zar - * @param {RedemptionRequest} redemptionRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Redeem zar - * Redeem zar - */ - redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Update the status of a redemption. - * @summary Update redemption - * @param {string} id Redemption ID - * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RedemptionsApiInterface - */ - updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Update the status of a redemption. - * Update redemption - */ - updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class RedemptionsApi extends runtime.BaseAPI implements RedemptionsApiInterface { - - /** - * Get a list of all redemptions. - * Get all redemptions - */ - async getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['state'] != null) { - queryParameters['state'] = requestParameters['state']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RedemptionResponseFromJSON(jsonValue)); - } - - /** - * Get a list of all redemptions. - * Get all redemptions - */ - async getAllRedemptions(requestParameters: GetAllRedemptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAllRedemptionsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get the details of a redemption. - * Get redemption - */ - async getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getRedemptionDetails().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RedemptionFromJSON(jsonValue)); - } - - /** - * Get the details of a redemption. - * Get redemption - */ - async getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getRedemptionDetailsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Redeem zar - * Redeem zar - */ - async redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['redemptionRequest'] == null) { - throw new runtime.RequiredError( - 'redemptionRequest', - 'Required parameter "redemptionRequest" was null or undefined when calling redeemZar().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/redemptions`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RedemptionRequestToJSON(requestParameters['redemptionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RedemptionFromJSON(jsonValue)); - } - - /** - * Redeem zar - * Redeem zar - */ - async redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.redeemZarRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Update the status of a redemption. - * Update redemption - */ - async updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling updateRedemptionStatus().' - ); - } - - if (requestParameters['adminRedemptionUpdateRequest'] == null) { - throw new runtime.RequiredError( - 'adminRedemptionUpdateRequest', - 'Required parameter "adminRedemptionUpdateRequest" was null or undefined when calling updateRedemptionStatus().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: AdminRedemptionUpdateRequestToJSON(requestParameters['adminRedemptionUpdateRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RedemptionFromJSON(jsonValue)); - } - - /** - * Update the status of a redemption. - * Update redemption - */ - async updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateRedemptionStatusRaw(requestParameters, initOverrides); - return await response.value(); - } - -} - -/** - * @export - */ -export const GetAllRedemptionsStateEnum = { - PENDING: 'pending', - APPROVED: 'approved', - COMPLETED: 'completed', - REJECTED: 'rejected' -} as const; -export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; diff --git a/src/wallet/src/apis/ReferralsApi.ts b/src/wallet/src/apis/ReferralsApi.ts deleted file mode 100644 index 4d0ba45..0000000 --- a/src/wallet/src/apis/ReferralsApi.ts +++ /dev/null @@ -1,289 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - Referral, - ReferralResponse, -} from '../models/index'; -import { - ReferralFromJSON, - ReferralToJSON, - ReferralResponseFromJSON, - ReferralResponseToJSON, -} from '../models/index'; - -export interface GetReferralByIdRequest { - referralId: number; -} - -export interface GetReferralsRequest { - name?: string; -} - -export interface RedeemReferralRequest { - referralId: number; -} - -export interface ValidateReferralRequest { - referralId: number; -} - -/** - * ReferralsApi - interface - * - * @export - * @interface ReferralsApiInterface - */ -export interface ReferralsApiInterface { - /** - * Get a referral by its ID. - * @summary Get referral by ID - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a referral by its ID. - * Get referral by ID - */ - getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get referrals by user ID or name. - * @summary Get referrals - * @param {string} [name] Referral name - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get referrals by user ID or name. - * Get referrals - */ - getReferrals(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Redeem a referral for a user. - * @summary Redeem a referral - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Redeem a referral for a user. - * Redeem a referral - */ - redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Validate a referral to check if it can be redeemed. - * @summary Validate a referral - * @param {number} referralId Referral ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ReferralsApiInterface - */ - validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class ReferralsApi extends runtime.BaseAPI implements ReferralsApiInterface { - - /** - * Get a referral by its ID. - * Get referral by ID - */ - async getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError( - 'referralId', - 'Required parameter "referralId" was null or undefined when calling getReferralById().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ReferralFromJSON(jsonValue)); - } - - /** - * Get a referral by its ID. - * Get referral by ID - */ - async getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getReferralByIdRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get referrals by user ID or name. - * Get referrals - */ - async getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['name'] != null) { - queryParameters['name'] = requestParameters['name']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ReferralResponseFromJSON(jsonValue)); - } - - /** - * Get referrals by user ID or name. - * Get referrals - */ - async getReferrals(requestParameters: GetReferralsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getReferralsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Redeem a referral for a user. - * Redeem a referral - */ - async redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError( - 'referralId', - 'Required parameter "referralId" was null or undefined when calling redeemReferral().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}/redeem`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Redeem a referral for a user. - * Redeem a referral - */ - async redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.redeemReferralRaw(requestParameters, initOverrides); - } - - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - async validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['referralId'] == null) { - throw new runtime.RequiredError( - 'referralId', - 'Required parameter "referralId" was null or undefined when calling validateReferral().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/referrals/{referralId}/validate`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Validate a referral to check if it can be redeemed. - * Validate a referral - */ - async validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.validateReferralRaw(requestParameters, initOverrides); - } - -} diff --git a/src/wallet/src/apis/SwapApi.ts b/src/wallet/src/apis/SwapApi.ts deleted file mode 100644 index a75edc7..0000000 --- a/src/wallet/src/apis/SwapApi.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - SwapRequest, - SwapResponse, -} from '../models/index'; -import { - SwapRequestFromJSON, - SwapRequestToJSON, - SwapResponseFromJSON, - SwapResponseToJSON, -} from '../models/index'; - -export interface SwapCoinsRequest { - swapRequest: SwapRequest; -} - -/** - * SwapApi - interface - * - * @export - * @interface SwapApiInterface - */ -export interface SwapApiInterface { - /** - * Swap coins in the wallet. - * @summary Swap coins - * @param {SwapRequest} swapRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof SwapApiInterface - */ - swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Swap coins in the wallet. - * Swap coins - */ - swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class SwapApi extends runtime.BaseAPI implements SwapApiInterface { - - /** - * Swap coins in the wallet. - * Swap coins - */ - async swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['swapRequest'] == null) { - throw new runtime.RequiredError( - 'swapRequest', - 'Required parameter "swapRequest" was null or undefined when calling swapCoins().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/swap`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: SwapRequestToJSON(requestParameters['swapRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SwapResponseFromJSON(jsonValue)); - } - - /** - * Swap coins in the wallet. - * Swap coins - */ - async swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.swapCoinsRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/TasksApi.ts b/src/wallet/src/apis/TasksApi.ts deleted file mode 100644 index bf67bda..0000000 --- a/src/wallet/src/apis/TasksApi.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - TaskResponse, -} from '../models/index'; -import { - TaskResponseFromJSON, - TaskResponseToJSON, -} from '../models/index'; - -/** - * TasksApi - interface - * - * @export - * @interface TasksApiInterface - */ -export interface TasksApiInterface { - /** - * Get the list of tasks. - * @summary Get tasks - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TasksApiInterface - */ - getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the list of tasks. - * Get tasks - */ - getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class TasksApi extends runtime.BaseAPI implements TasksApiInterface { - - /** - * Get the list of tasks. - * Get tasks - */ - async getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/tasks`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => TaskResponseFromJSON(jsonValue)); - } - - /** - * Get the list of tasks. - * Get tasks - */ - async getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getTasksRaw(initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/TransactionsApi.ts b/src/wallet/src/apis/TransactionsApi.ts deleted file mode 100644 index e4fedf2..0000000 --- a/src/wallet/src/apis/TransactionsApi.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - TransactionResponse, -} from '../models/index'; -import { - TransactionResponseFromJSON, - TransactionResponseToJSON, -} from '../models/index'; - -export interface GetUserTransactionsRequest { - cursor?: number; - limit?: number; -} - -/** - * TransactionsApi - interface - * - * @export - * @interface TransactionsApiInterface - */ -export interface TransactionsApiInterface { - /** - * Get a list of the recent transactions of the user. - * @summary Get user transactions - * @param {number} [cursor] Cursor for pagination - * @param {number} [limit] Limit the number of transactions returned (default is 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TransactionsApiInterface - */ - getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - getUserTransactions(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class TransactionsApi extends runtime.BaseAPI implements TransactionsApiInterface { - - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - async getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - if (requestParameters['cursor'] != null) { - queryParameters['cursor'] = requestParameters['cursor']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/transactions`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => TransactionResponseFromJSON(jsonValue)); - } - - /** - * Get a list of the recent transactions of the user. - * Get user transactions - */ - async getUserTransactions(requestParameters: GetUserTransactionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserTransactionsRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/UserApi.ts b/src/wallet/src/apis/UserApi.ts deleted file mode 100644 index 91ad46f..0000000 --- a/src/wallet/src/apis/UserApi.ts +++ /dev/null @@ -1,583 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - CreateChildUserRequest, - EmailOtpSubmitRequest, - KycConfirmRequest, - KycRequest, - KycResponse, - PhoneOtpSubmitRequest, - ProfileResponse, - SimpleResponse, - UpdateEmailRequest, - UpdatePhoneRequest, - User, - UserError, -} from '../models/index'; -import { - CreateChildUserRequestFromJSON, - CreateChildUserRequestToJSON, - EmailOtpSubmitRequestFromJSON, - EmailOtpSubmitRequestToJSON, - KycConfirmRequestFromJSON, - KycConfirmRequestToJSON, - KycRequestFromJSON, - KycRequestToJSON, - KycResponseFromJSON, - KycResponseToJSON, - PhoneOtpSubmitRequestFromJSON, - PhoneOtpSubmitRequestToJSON, - ProfileResponseFromJSON, - ProfileResponseToJSON, - SimpleResponseFromJSON, - SimpleResponseToJSON, - UpdateEmailRequestFromJSON, - UpdateEmailRequestToJSON, - UpdatePhoneRequestFromJSON, - UpdatePhoneRequestToJSON, - UserFromJSON, - UserToJSON, - UserErrorFromJSON, - UserErrorToJSON, -} from '../models/index'; - -export interface ConfirmKycRequest { - kycConfirmRequest: KycConfirmRequest; -} - -export interface ConfirmPhoneNumberRequest { - phoneOtpSubmitRequest: PhoneOtpSubmitRequest; -} - -export interface CreateChildUserOperationRequest { - createChildUserRequest: CreateChildUserRequest; -} - -export interface SubmitEmailConfirmationOtpRequest { - emailOtpSubmitRequest: EmailOtpSubmitRequest; -} - -export interface SubmitKycRequest { - kycRequest: KycRequest; -} - -export interface VerifyPhoneNumberRequest { - updatePhoneRequest: UpdatePhoneRequest; -} - -export interface VerifyUserEmailAddressRequest { - updateEmailRequest: UpdateEmailRequest; -} - -/** - * UserApi - interface - * - * @export - * @interface UserApiInterface - */ -export interface UserApiInterface { - /** - * Confirm KYC for the user. - * @summary Confirm KYC - * @param {KycConfirmRequest} kycConfirmRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Confirm KYC for the user. - * Confirm KYC - */ - confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Confirm the phone number of the user. - * @summary Confirm phone number - * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * create a child user - * @summary create a child user - * @param {CreateChildUserRequest} createChildUserRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * create a child user - * create a child user - */ - createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the profile of the user. - * @summary Get profile - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the profile of the user. - * Get profile - */ - getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Submit email confirmation OTP for the user. - * @summary Submit email confirmation OTP - * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Submit KYC for the user. - * @summary Submit KYC - * @param {KycRequest} kycRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Submit KYC for the user. - * Submit KYC - */ - submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Verify the phone number of the user. - * @summary Verify phone number - * @param {UpdatePhoneRequest} updatePhoneRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Verify the phone number of the user. - * Verify phone number - */ - verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Verify the email of the user. - * @summary Verify email - * @param {UpdateEmailRequest} updateEmailRequest - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserApiInterface - */ - verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Verify the email of the user. - * Verify email - */ - verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class UserApi extends runtime.BaseAPI implements UserApiInterface { - - /** - * Confirm KYC for the user. - * Confirm KYC - */ - async confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['kycConfirmRequest'] == null) { - throw new runtime.RequiredError( - 'kycConfirmRequest', - 'Required parameter "kycConfirmRequest" was null or undefined when calling confirmKyc().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/kyc/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: KycConfirmRequestToJSON(requestParameters['kycConfirmRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleResponseFromJSON(jsonValue)); - } - - /** - * Confirm KYC for the user. - * Confirm KYC - */ - async confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.confirmKycRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - async confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['phoneOtpSubmitRequest'] == null) { - throw new runtime.RequiredError( - 'phoneOtpSubmitRequest', - 'Required parameter "phoneOtpSubmitRequest" was null or undefined when calling confirmPhoneNumber().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/phone/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PhoneOtpSubmitRequestToJSON(requestParameters['phoneOtpSubmitRequest']), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Confirm the phone number of the user. - * Confirm phone number - */ - async confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.confirmPhoneNumberRaw(requestParameters, initOverrides); - } - - /** - * create a child user - * create a child user - */ - async createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['createChildUserRequest'] == null) { - throw new runtime.RequiredError( - 'createChildUserRequest', - 'Required parameter "createChildUserRequest" was null or undefined when calling createChildUser().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/children`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CreateChildUserRequestToJSON(requestParameters['createChildUserRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue)); - } - - /** - * create a child user - * create a child user - */ - async createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createChildUserRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get the profile of the user. - * Get profile - */ - async getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/profile`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ProfileResponseFromJSON(jsonValue)); - } - - /** - * Get the profile of the user. - * Get profile - */ - async getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserProfileRaw(initOverrides); - return await response.value(); - } - - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - async submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['emailOtpSubmitRequest'] == null) { - throw new runtime.RequiredError( - 'emailOtpSubmitRequest', - 'Required parameter "emailOtpSubmitRequest" was null or undefined when calling submitEmailConfirmationOtp().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/email/confirm`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: EmailOtpSubmitRequestToJSON(requestParameters['emailOtpSubmitRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleResponseFromJSON(jsonValue)); - } - - /** - * Submit email confirmation OTP for the user. - * Submit email confirmation OTP - */ - async submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.submitEmailConfirmationOtpRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Submit KYC for the user. - * Submit KYC - */ - async submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['kycRequest'] == null) { - throw new runtime.RequiredError( - 'kycRequest', - 'Required parameter "kycRequest" was null or undefined when calling submitKyc().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/kyc`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: KycRequestToJSON(requestParameters['kycRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => KycResponseFromJSON(jsonValue)); - } - - /** - * Submit KYC for the user. - * Submit KYC - */ - async submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.submitKycRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Verify the phone number of the user. - * Verify phone number - */ - async verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updatePhoneRequest'] == null) { - throw new runtime.RequiredError( - 'updatePhoneRequest', - 'Required parameter "updatePhoneRequest" was null or undefined when calling verifyPhoneNumber().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/phone`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: UpdatePhoneRequestToJSON(requestParameters['updatePhoneRequest']), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Verify the phone number of the user. - * Verify phone number - */ - async verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.verifyPhoneNumberRaw(requestParameters, initOverrides); - } - - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['updateEmailRequest'] == null) { - throw new runtime.RequiredError( - 'updateEmailRequest', - 'Required parameter "updateEmailRequest" was null or undefined when calling verifyUserEmailAddress().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/users/email`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: UpdateEmailRequestToJSON(requestParameters['updateEmailRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SimpleResponseFromJSON(jsonValue)); - } - - /** - * Verify the email of the user. - * Verify email - */ - async verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.verifyUserEmailAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/WithdrawApi.ts b/src/wallet/src/apis/WithdrawApi.ts deleted file mode 100644 index 4455e39..0000000 --- a/src/wallet/src/apis/WithdrawApi.ts +++ /dev/null @@ -1,300 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - UserError, - WithdrawRequest, - WithdrawRequestBody, - WithdrawRequestPreview, - WithdrawRequestResponse, - WithdrawResponseBody, -} from '../models/index'; -import { - UserErrorFromJSON, - UserErrorToJSON, - WithdrawRequestFromJSON, - WithdrawRequestToJSON, - WithdrawRequestBodyFromJSON, - WithdrawRequestBodyToJSON, - WithdrawRequestPreviewFromJSON, - WithdrawRequestPreviewToJSON, - WithdrawRequestResponseFromJSON, - WithdrawRequestResponseToJSON, - WithdrawResponseBodyFromJSON, - WithdrawResponseBodyToJSON, -} from '../models/index'; - -export interface GetWithdrawalStatusRequest { - id: number; -} - -export interface PreviewWithdrawalRequest { - withdrawRequestBody: WithdrawRequestBody; -} - -export interface RequestWithdrawalRequest { - withdrawRequestBody: WithdrawRequestBody; -} - -/** - * WithdrawApi - interface - * - * @export - * @interface WithdrawApiInterface - */ -export interface WithdrawApiInterface { - /** - * Get user withdraw requests - * @summary Get user withdraw requests - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get user withdraw requests - * Get user withdraw requests - */ - getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Get the status of a withdrawal request. - * @summary Get withdrawal status - * @param {number} id Withdrawal request ID - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Request a withdrawal from the wallet. - * @summary Withdraw request - * @param {WithdrawRequestBody} withdrawRequestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - - /** - * Request a withdrawal from the wallet. - * @summary Withdraw request - * @param {WithdrawRequestBody} withdrawRequestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof WithdrawApiInterface - */ - requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - -} - -/** - * - */ -export class WithdrawApi extends runtime.BaseAPI implements WithdrawApiInterface { - - /** - * Get user withdraw requests - * Get user withdraw requests - */ - async getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawRequestResponseFromJSON(jsonValue)); - } - - /** - * Get user withdraw requests - * Get user withdraw requests - */ - async getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getUserWithdrawRequestsRaw(initOverrides); - return await response.value(); - } - - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - async getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getWithdrawalStatus().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawRequestFromJSON(jsonValue)); - } - - /** - * Get the status of a withdrawal request. - * Get withdrawal status - */ - async getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getWithdrawalStatusRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['withdrawRequestBody'] == null) { - throw new runtime.RequiredError( - 'withdrawRequestBody', - 'Required parameter "withdrawRequestBody" was null or undefined when calling previewWithdrawal().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/preview`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: WithdrawRequestBodyToJSON(requestParameters['withdrawRequestBody']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawRequestPreviewFromJSON(jsonValue)); - } - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.previewWithdrawalRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['withdrawRequestBody'] == null) { - throw new runtime.RequiredError( - 'withdrawRequestBody', - 'Required parameter "withdrawRequestBody" was null or undefined when calling requestWithdrawal().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - const response = await this.request({ - path: `/withdraws/request`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: WithdrawRequestBodyToJSON(requestParameters['withdrawRequestBody']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawResponseBodyFromJSON(jsonValue)); - } - - /** - * Request a withdrawal from the wallet. - * Withdraw request - */ - async requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.requestWithdrawalRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/src/wallet/src/apis/index.ts b/src/wallet/src/apis/index.ts deleted file mode 100644 index 10069da..0000000 --- a/src/wallet/src/apis/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * as AuthApi from "./AuthApi"; -export * as BalanceApi from "./BalanceApi"; -export * as CoinsApi from "./CoinsApi"; -export * as DepositApi from "./DepositApi"; -export * as HealthApi from "./HealthApi"; -export * as LoansApi from "./LoansApi"; -export * as PaymentApi from "./PaymentApi"; -export * as PointsApi from "./PointsApi"; -export * as RedemptionsApi from "./RedemptionsApi"; -export * as ReferralsApi from "./ReferralsApi"; -export * as SwapApi from "./SwapApi"; -export * as TasksApi from "./TasksApi"; -export * as TransactionsApi from "./TransactionsApi"; -export * as UserApi from "./UserApi"; -export * as WithdrawApi from "./WithdrawApi"; diff --git a/src/wallet/src/index.ts b/src/wallet/src/index.ts deleted file mode 100644 index bebe8bb..0000000 --- a/src/wallet/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './runtime'; -export * from './apis/index'; -export * from './models/index'; diff --git a/src/wallet/src/models/AdminRedemptionUpdateRequest.ts b/src/wallet/src/models/AdminRedemptionUpdateRequest.ts deleted file mode 100644 index d7857e7..0000000 --- a/src/wallet/src/models/AdminRedemptionUpdateRequest.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface AdminRedemptionUpdateRequest - */ -export interface AdminRedemptionUpdateRequest { - /** - * The status of the redemption request - * @type {string} - * @memberof AdminRedemptionUpdateRequest - */ - status: AdminRedemptionUpdateRequestStatusEnum; - /** - * The Paya tracking code - * @type {string} - * @memberof AdminRedemptionUpdateRequest - */ - payaTrackingCode?: string; -} - - -/** - * @export - */ -export const AdminRedemptionUpdateRequestStatusEnum = { - APPROVED: 'Approved', - REJECTED: 'Rejected', - COMPLETED: 'Completed' -} as const; -export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; - - -/** - * Check if a given object implements the AdminRedemptionUpdateRequest interface. - */ -export function instanceOfAdminRedemptionUpdateRequest(value: object): value is AdminRedemptionUpdateRequest { - if (!('status' in value) || value['status'] === undefined) return false; - return true; -} - -export function AdminRedemptionUpdateRequestFromJSON(json: any): AdminRedemptionUpdateRequest { - return AdminRedemptionUpdateRequestFromJSONTyped(json, false); -} - -export function AdminRedemptionUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminRedemptionUpdateRequest { - if (json == null) { - return json; - } - return { - - 'status': json['status'], - 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], - }; -} - -export function AdminRedemptionUpdateRequestToJSON(json: any): AdminRedemptionUpdateRequest { - return AdminRedemptionUpdateRequestToJSONTyped(json, false); -} - -export function AdminRedemptionUpdateRequestToJSONTyped(value?: AdminRedemptionUpdateRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'status': value['status'], - 'payaTrackingCode': value['payaTrackingCode'], - }; -} - diff --git a/src/wallet/src/models/AuthTelegramRequest.ts b/src/wallet/src/models/AuthTelegramRequest.ts deleted file mode 100644 index bf0d184..0000000 --- a/src/wallet/src/models/AuthTelegramRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface AuthTelegramRequest - */ -export interface AuthTelegramRequest { - /** - * Telegram init data - * @type {string} - * @memberof AuthTelegramRequest - */ - initdata: string; -} - -/** - * Check if a given object implements the AuthTelegramRequest interface. - */ -export function instanceOfAuthTelegramRequest(value: object): value is AuthTelegramRequest { - if (!('initdata' in value) || value['initdata'] === undefined) return false; - return true; -} - -export function AuthTelegramRequestFromJSON(json: any): AuthTelegramRequest { - return AuthTelegramRequestFromJSONTyped(json, false); -} - -export function AuthTelegramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthTelegramRequest { - if (json == null) { - return json; - } - return { - - 'initdata': json['initdata'], - }; -} - -export function AuthTelegramRequestToJSON(json: any): AuthTelegramRequest { - return AuthTelegramRequestToJSONTyped(json, false); -} - -export function AuthTelegramRequestToJSONTyped(value?: AuthTelegramRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'initdata': value['initdata'], - }; -} - diff --git a/src/wallet/src/models/Balance.ts b/src/wallet/src/models/Balance.ts deleted file mode 100644 index 47da66e..0000000 --- a/src/wallet/src/models/Balance.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Coin } from './Coin'; -import { - CoinFromJSON, - CoinFromJSONTyped, - CoinToJSON, - CoinToJSONTyped, -} from './Coin'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; - -/** - * - * @export - * @interface Balance - */ -export interface Balance { - /** - * - * @type {Currency} - * @memberof Balance - */ - locked: Currency; - /** - * - * @type {Coin} - * @memberof Balance - */ - coin: Coin; - /** - * - * @type {Currency} - * @memberof Balance - */ - balance: Currency; -} - -/** - * Check if a given object implements the Balance interface. - */ -export function instanceOfBalance(value: object): value is Balance { - if (!('locked' in value) || value['locked'] === undefined) return false; - if (!('coin' in value) || value['coin'] === undefined) return false; - if (!('balance' in value) || value['balance'] === undefined) return false; - return true; -} - -export function BalanceFromJSON(json: any): Balance { - return BalanceFromJSONTyped(json, false); -} - -export function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance { - if (json == null) { - return json; - } - return { - - 'locked': CurrencyFromJSON(json['locked']), - 'coin': CoinFromJSON(json['coin']), - 'balance': CurrencyFromJSON(json['balance']), - }; -} - -export function BalanceToJSON(json: any): Balance { - return BalanceToJSONTyped(json, false); -} - -export function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'locked': CurrencyToJSON(value['locked']), - 'coin': CoinToJSON(value['coin']), - 'balance': CurrencyToJSON(value['balance']), - }; -} - diff --git a/src/wallet/src/models/BankInfo.ts b/src/wallet/src/models/BankInfo.ts deleted file mode 100644 index 0361e32..0000000 --- a/src/wallet/src/models/BankInfo.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface BankInfo - */ -export interface BankInfo { - /** - * Bank name - * @type {string} - * @memberof BankInfo - */ - bankName: string; - /** - * Card number - * @type {string} - * @memberof BankInfo - */ - cardNumber: string; - /** - * IBAN - * @type {string} - * @memberof BankInfo - */ - iban: string; -} - -/** - * Check if a given object implements the BankInfo interface. - */ -export function instanceOfBankInfo(value: object): value is BankInfo { - if (!('bankName' in value) || value['bankName'] === undefined) return false; - if (!('cardNumber' in value) || value['cardNumber'] === undefined) return false; - if (!('iban' in value) || value['iban'] === undefined) return false; - return true; -} - -export function BankInfoFromJSON(json: any): BankInfo { - return BankInfoFromJSONTyped(json, false); -} - -export function BankInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankInfo { - if (json == null) { - return json; - } - return { - - 'bankName': json['bankName'], - 'cardNumber': json['cardNumber'], - 'iban': json['iban'], - }; -} - -export function BankInfoToJSON(json: any): BankInfo { - return BankInfoToJSONTyped(json, false); -} - -export function BankInfoToJSONTyped(value?: BankInfo | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'bankName': value['bankName'], - 'cardNumber': value['cardNumber'], - 'iban': value['iban'], - }; -} - diff --git a/src/wallet/src/models/BulletContent.ts b/src/wallet/src/models/BulletContent.ts deleted file mode 100644 index b3d1ffe..0000000 --- a/src/wallet/src/models/BulletContent.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface BulletContent - */ -export interface BulletContent { - /** - * - * @type {string} - * @memberof BulletContent - */ - title: string; - /** - * - * @type {string} - * @memberof BulletContent - */ - text: string; - /** - * - * @type {Array} - * @memberof BulletContent - */ - bullets: Array; -} - -/** - * Check if a given object implements the BulletContent interface. - */ -export function instanceOfBulletContent(value: object): value is BulletContent { - if (!('title' in value) || value['title'] === undefined) return false; - if (!('text' in value) || value['text'] === undefined) return false; - if (!('bullets' in value) || value['bullets'] === undefined) return false; - return true; -} - -export function BulletContentFromJSON(json: any): BulletContent { - return BulletContentFromJSONTyped(json, false); -} - -export function BulletContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulletContent { - if (json == null) { - return json; - } - return { - - 'title': json['title'], - 'text': json['text'], - 'bullets': json['bullets'], - }; -} - -export function BulletContentToJSON(json: any): BulletContent { - return BulletContentToJSONTyped(json, false); -} - -export function BulletContentToJSONTyped(value?: BulletContent | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'title': value['title'], - 'text': value['text'], - 'bullets': value['bullets'], - }; -} - diff --git a/src/wallet/src/models/Coin.ts b/src/wallet/src/models/Coin.ts deleted file mode 100644 index ea731b0..0000000 --- a/src/wallet/src/models/Coin.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { BulletContent } from './BulletContent'; -import { - BulletContentFromJSON, - BulletContentFromJSONTyped, - BulletContentToJSON, - BulletContentToJSONTyped, -} from './BulletContent'; -import type { CoinConfig } from './CoinConfig'; -import { - CoinConfigFromJSON, - CoinConfigFromJSONTyped, - CoinConfigToJSON, - CoinConfigToJSONTyped, -} from './CoinConfig'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, - NetworkToJSONTyped, -} from './Network'; - -/** - * - * @export - * @interface Coin - */ -export interface Coin { - /** - * - * @type {CoinConfig} - * @memberof Coin - */ - config: CoinConfig; - /** - * - * @type {Symbol} - * @memberof Coin - */ - symbol: Symbol; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Coin - */ - name: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof Coin - */ - logoUri: string; - /** - * - * @type {Array} - * @memberof Coin - */ - depositableNetworks: Array; - /** - * - * @type {Array} - * @memberof Coin - */ - withdrawableNetworks: Array; - /** - * - * @type {BulletContent} - * @memberof Coin - */ - content: BulletContent; -} - - - -/** - * Check if a given object implements the Coin interface. - */ -export function instanceOfCoin(value: object): value is Coin { - if (!('config' in value) || value['config'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('name' in value) || value['name'] === undefined) return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) return false; - if (!('depositableNetworks' in value) || value['depositableNetworks'] === undefined) return false; - if (!('withdrawableNetworks' in value) || value['withdrawableNetworks'] === undefined) return false; - if (!('content' in value) || value['content'] === undefined) return false; - return true; -} - -export function CoinFromJSON(json: any): Coin { - return CoinFromJSONTyped(json, false); -} - -export function CoinFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coin { - if (json == null) { - return json; - } - return { - - 'config': CoinConfigFromJSON(json['config']), - 'symbol': SymbolFromJSON(json['symbol']), - 'name': json['name'], - 'logoUri': json['logoUri'], - 'depositableNetworks': ((json['depositableNetworks'] as Array).map(NetworkFromJSON)), - 'withdrawableNetworks': ((json['withdrawableNetworks'] as Array).map(NetworkFromJSON)), - 'content': BulletContentFromJSON(json['content']), - }; -} - -export function CoinToJSON(json: any): Coin { - return CoinToJSONTyped(json, false); -} - -export function CoinToJSONTyped(value?: Coin | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': CoinConfigToJSON(value['config']), - 'symbol': SymbolToJSON(value['symbol']), - 'name': value['name'], - 'logoUri': value['logoUri'], - 'depositableNetworks': ((value['depositableNetworks'] as Array).map(NetworkToJSON)), - 'withdrawableNetworks': ((value['withdrawableNetworks'] as Array).map(NetworkToJSON)), - 'content': BulletContentToJSON(value['content']), - }; -} - diff --git a/src/wallet/src/models/CoinConfig.ts b/src/wallet/src/models/CoinConfig.ts deleted file mode 100644 index 5607541..0000000 --- a/src/wallet/src/models/CoinConfig.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface CoinConfig - */ -export interface CoinConfig { - /** - * - * @type {boolean} - * @memberof CoinConfig - */ - isTradeable: boolean; - /** - * Map of network to amount - * @type {{ [key: string]: string | undefined; }} - * @memberof CoinConfig - */ - withdrawFees: { [key: string]: string | undefined; }; - /** - * Map of network to amount - * @type {{ [key: string]: string | undefined; }} - * @memberof CoinConfig - */ - minWithdrawal: { [key: string]: string | undefined; }; - /** - * - * @type {boolean} - * @memberof CoinConfig - */ - needsMemo: boolean; -} - -/** - * Check if a given object implements the CoinConfig interface. - */ -export function instanceOfCoinConfig(value: object): value is CoinConfig { - if (!('isTradeable' in value) || value['isTradeable'] === undefined) return false; - if (!('withdrawFees' in value) || value['withdrawFees'] === undefined) return false; - if (!('minWithdrawal' in value) || value['minWithdrawal'] === undefined) return false; - if (!('needsMemo' in value) || value['needsMemo'] === undefined) return false; - return true; -} - -export function CoinConfigFromJSON(json: any): CoinConfig { - return CoinConfigFromJSONTyped(json, false); -} - -export function CoinConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinConfig { - if (json == null) { - return json; - } - return { - - 'isTradeable': json['isTradeable'], - 'withdrawFees': json['withdrawFees'], - 'minWithdrawal': json['minWithdrawal'], - 'needsMemo': json['needsMemo'], - }; -} - -export function CoinConfigToJSON(json: any): CoinConfig { - return CoinConfigToJSONTyped(json, false); -} - -export function CoinConfigToJSONTyped(value?: CoinConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'isTradeable': value['isTradeable'], - 'withdrawFees': value['withdrawFees'], - 'minWithdrawal': value['minWithdrawal'], - 'needsMemo': value['needsMemo'], - }; -} - diff --git a/src/wallet/src/models/CoinResponse.ts b/src/wallet/src/models/CoinResponse.ts deleted file mode 100644 index 9b65679..0000000 --- a/src/wallet/src/models/CoinResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Coin } from './Coin'; -import { - CoinFromJSON, - CoinFromJSONTyped, - CoinToJSON, - CoinToJSONTyped, -} from './Coin'; - -/** - * - * @export - * @interface CoinResponse - */ -export interface CoinResponse { - /** - * - * @type {Array} - * @memberof CoinResponse - */ - data: Array; -} - -/** - * Check if a given object implements the CoinResponse interface. - */ -export function instanceOfCoinResponse(value: object): value is CoinResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function CoinResponseFromJSON(json: any): CoinResponse { - return CoinResponseFromJSONTyped(json, false); -} - -export function CoinResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(CoinFromJSON)), - }; -} - -export function CoinResponseToJSON(json: any): CoinResponse { - return CoinResponseToJSONTyped(json, false); -} - -export function CoinResponseToJSONTyped(value?: CoinResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(CoinToJSON)), - }; -} - diff --git a/src/wallet/src/models/CreateChildUserRequest.ts b/src/wallet/src/models/CreateChildUserRequest.ts deleted file mode 100644 index 33487b9..0000000 --- a/src/wallet/src/models/CreateChildUserRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface CreateChildUserRequest - */ -export interface CreateChildUserRequest { - /** - * the username of the child user - * @type {string} - * @memberof CreateChildUserRequest - */ - username: string; -} - -/** - * Check if a given object implements the CreateChildUserRequest interface. - */ -export function instanceOfCreateChildUserRequest(value: object): value is CreateChildUserRequest { - if (!('username' in value) || value['username'] === undefined) return false; - return true; -} - -export function CreateChildUserRequestFromJSON(json: any): CreateChildUserRequest { - return CreateChildUserRequestFromJSONTyped(json, false); -} - -export function CreateChildUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChildUserRequest { - if (json == null) { - return json; - } - return { - - 'username': json['username'], - }; -} - -export function CreateChildUserRequestToJSON(json: any): CreateChildUserRequest { - return CreateChildUserRequestToJSONTyped(json, false); -} - -export function CreateChildUserRequestToJSONTyped(value?: CreateChildUserRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'username': value['username'], - }; -} - diff --git a/src/wallet/src/models/Currency.ts b/src/wallet/src/models/Currency.ts deleted file mode 100644 index 3d3574d..0000000 --- a/src/wallet/src/models/Currency.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Currency - */ -export interface Currency { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Currency - */ - values?: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the Currency interface. - */ -export function instanceOfCurrency(value: object): value is Currency { - return true; -} - -export function CurrencyFromJSON(json: any): Currency { - return CurrencyFromJSONTyped(json, false); -} - -export function CurrencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Currency { - if (json == null) { - return json; - } - return { - - 'values': json['values'] == null ? undefined : json['values'], - }; -} - -export function CurrencyToJSON(json: any): Currency { - return CurrencyToJSONTyped(json, false); -} - -export function CurrencyToJSONTyped(value?: Currency | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'values': value['values'], - }; -} - diff --git a/src/wallet/src/models/DepositResponse.ts b/src/wallet/src/models/DepositResponse.ts deleted file mode 100644 index 9353958..0000000 --- a/src/wallet/src/models/DepositResponse.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, - NetworkToJSONTyped, -} from './Network'; - -/** - * - * @export - * @interface DepositResponse - */ -export interface DepositResponse { - /** - * Deposit address - * @type {string} - * @memberof DepositResponse - */ - address: string; - /** - * - * @type {Network} - * @memberof DepositResponse - */ - network: Network; - /** - * Coin symbol - * @type {string} - * @memberof DepositResponse - */ - symbol: string; -} - -/** - * Check if a given object implements the DepositResponse interface. - */ -export function instanceOfDepositResponse(value: object): value is DepositResponse { - if (!('address' in value) || value['address'] === undefined) return false; - if (!('network' in value) || value['network'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - return true; -} - -export function DepositResponseFromJSON(json: any): DepositResponse { - return DepositResponseFromJSONTyped(json, false); -} - -export function DepositResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositResponse { - if (json == null) { - return json; - } - return { - - 'address': json['address'], - 'network': NetworkFromJSON(json['network']), - 'symbol': json['symbol'], - }; -} - -export function DepositResponseToJSON(json: any): DepositResponse { - return DepositResponseToJSONTyped(json, false); -} - -export function DepositResponseToJSONTyped(value?: DepositResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'address': value['address'], - 'network': NetworkToJSON(value['network']), - 'symbol': value['symbol'], - }; -} - diff --git a/src/wallet/src/models/DetailedLoanToValueOptions.ts b/src/wallet/src/models/DetailedLoanToValueOptions.ts deleted file mode 100644 index ec10ad5..0000000 --- a/src/wallet/src/models/DetailedLoanToValueOptions.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface DetailedLoanToValueOptions - */ -export interface DetailedLoanToValueOptions { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof DetailedLoanToValueOptions - */ - name: { [key: string]: string | undefined; }; - /** - * The loan to value of the vault. - * @type {string} - * @memberof DetailedLoanToValueOptions - */ - value: string; -} - -/** - * Check if a given object implements the DetailedLoanToValueOptions interface. - */ -export function instanceOfDetailedLoanToValueOptions(value: object): value is DetailedLoanToValueOptions { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - return true; -} - -export function DetailedLoanToValueOptionsFromJSON(json: any): DetailedLoanToValueOptions { - return DetailedLoanToValueOptionsFromJSONTyped(json, false); -} - -export function DetailedLoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedLoanToValueOptions { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'value': json['value'], - }; -} - -export function DetailedLoanToValueOptionsToJSON(json: any): DetailedLoanToValueOptions { - return DetailedLoanToValueOptionsToJSONTyped(json, false); -} - -export function DetailedLoanToValueOptionsToJSONTyped(value?: DetailedLoanToValueOptions | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'value': value['value'], - }; -} - diff --git a/src/wallet/src/models/EmailOtpSubmitRequest.ts b/src/wallet/src/models/EmailOtpSubmitRequest.ts deleted file mode 100644 index 45d76e9..0000000 --- a/src/wallet/src/models/EmailOtpSubmitRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface EmailOtpSubmitRequest - */ -export interface EmailOtpSubmitRequest { - /** - * OTP code - * @type {number} - * @memberof EmailOtpSubmitRequest - */ - code: number; -} - -/** - * Check if a given object implements the EmailOtpSubmitRequest interface. - */ -export function instanceOfEmailOtpSubmitRequest(value: object): value is EmailOtpSubmitRequest { - if (!('code' in value) || value['code'] === undefined) return false; - return true; -} - -export function EmailOtpSubmitRequestFromJSON(json: any): EmailOtpSubmitRequest { - return EmailOtpSubmitRequestFromJSONTyped(json, false); -} - -export function EmailOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailOtpSubmitRequest { - if (json == null) { - return json; - } - return { - - 'code': json['code'], - }; -} - -export function EmailOtpSubmitRequestToJSON(json: any): EmailOtpSubmitRequest { - return EmailOtpSubmitRequestToJSONTyped(json, false); -} - -export function EmailOtpSubmitRequestToJSONTyped(value?: EmailOtpSubmitRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'code': value['code'], - }; -} - diff --git a/src/wallet/src/models/ErrorDetail.ts b/src/wallet/src/models/ErrorDetail.ts deleted file mode 100644 index de08a2b..0000000 --- a/src/wallet/src/models/ErrorDetail.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ErrorDetail - */ -export interface ErrorDetail { - /** - * User-friendly error message - * @type {string} - * @memberof ErrorDetail - */ - userMessage: string; - /** - * - * @type {Array} - * @memberof ErrorDetail - */ - solutions: Array; -} - -/** - * Check if a given object implements the ErrorDetail interface. - */ -export function instanceOfErrorDetail(value: object): value is ErrorDetail { - if (!('userMessage' in value) || value['userMessage'] === undefined) return false; - if (!('solutions' in value) || value['solutions'] === undefined) return false; - return true; -} - -export function ErrorDetailFromJSON(json: any): ErrorDetail { - return ErrorDetailFromJSONTyped(json, false); -} - -export function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail { - if (json == null) { - return json; - } - return { - - 'userMessage': json['userMessage'], - 'solutions': json['solutions'], - }; -} - -export function ErrorDetailToJSON(json: any): ErrorDetail { - return ErrorDetailToJSONTyped(json, false); -} - -export function ErrorDetailToJSONTyped(value?: ErrorDetail | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'userMessage': value['userMessage'], - 'solutions': value['solutions'], - }; -} - diff --git a/src/wallet/src/models/ExternalTransaction.ts b/src/wallet/src/models/ExternalTransaction.ts deleted file mode 100644 index 576dbf2..0000000 --- a/src/wallet/src/models/ExternalTransaction.ts +++ /dev/null @@ -1,201 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { TransactionType } from './TransactionType'; -import { - TransactionTypeFromJSON, - TransactionTypeFromJSONTyped, - TransactionTypeToJSON, - TransactionTypeToJSONTyped, -} from './TransactionType'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, - NetworkToJSONTyped, -} from './Network'; -import type { TransactionStatus } from './TransactionStatus'; -import { - TransactionStatusFromJSON, - TransactionStatusFromJSONTyped, - TransactionStatusToJSON, - TransactionStatusToJSONTyped, -} from './TransactionStatus'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface ExternalTransaction - */ -export interface ExternalTransaction { - /** - * Unique identifier of the transaction - * @type {number} - * @memberof ExternalTransaction - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof ExternalTransaction - */ - time: Timestamp; - /** - * - * @type {TransactionType} - * @memberof ExternalTransaction - */ - type: TransactionType; - /** - * The hash of the transaction - * @type {string} - * @memberof ExternalTransaction - */ - hash: string; - /** - * The address from which the transaction originated - * @type {string} - * @memberof ExternalTransaction - */ - from: string; - /** - * The address to which the transaction is sent - * @type {string} - * @memberof ExternalTransaction - */ - to: string; - /** - * A comment associated with the transaction - * @type {string} - * @memberof ExternalTransaction - */ - comment: string | null; - /** - * - * @type {Currency} - * @memberof ExternalTransaction - */ - amount: Currency; - /** - * - * @type {Symbol} - * @memberof ExternalTransaction - */ - symbol: Symbol; - /** - * - * @type {Network} - * @memberof ExternalTransaction - */ - network: Network; - /** - * - * @type {TransactionStatus} - * @memberof ExternalTransaction - */ - status: TransactionStatus; -} - - - -/** - * Check if a given object implements the ExternalTransaction interface. - */ -export function instanceOfExternalTransaction(value: object): value is ExternalTransaction { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('time' in value) || value['time'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('hash' in value) || value['hash'] === undefined) return false; - if (!('from' in value) || value['from'] === undefined) return false; - if (!('to' in value) || value['to'] === undefined) return false; - if (!('comment' in value) || value['comment'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('network' in value) || value['network'] === undefined) return false; - if (!('status' in value) || value['status'] === undefined) return false; - return true; -} - -export function ExternalTransactionFromJSON(json: any): ExternalTransaction { - return ExternalTransactionFromJSONTyped(json, false); -} - -export function ExternalTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalTransaction { - if (json == null) { - return json; - } - return { - - 'id': json['Id'], - 'time': TimestampFromJSON(json['Time']), - 'type': TransactionTypeFromJSON(json['Type']), - 'hash': json['Hash'], - 'from': json['From'], - 'to': json['To'], - 'comment': json['Comment'], - 'amount': CurrencyFromJSON(json['Amount']), - 'symbol': SymbolFromJSON(json['Symbol']), - 'network': NetworkFromJSON(json['Network']), - 'status': TransactionStatusFromJSON(json['Status']), - }; -} - -export function ExternalTransactionToJSON(json: any): ExternalTransaction { - return ExternalTransactionToJSONTyped(json, false); -} - -export function ExternalTransactionToJSONTyped(value?: ExternalTransaction | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'Id': value['id'], - 'Time': TimestampToJSON(value['time']), - 'Type': TransactionTypeToJSON(value['type']), - 'Hash': value['hash'], - 'From': value['from'], - 'To': value['to'], - 'Comment': value['comment'], - 'Amount': CurrencyToJSON(value['amount']), - 'Symbol': SymbolToJSON(value['symbol']), - 'Network': NetworkToJSON(value['network']), - 'Status': TransactionStatusToJSON(value['status']), - }; -} - diff --git a/src/wallet/src/models/FriendPoints.ts b/src/wallet/src/models/FriendPoints.ts deleted file mode 100644 index 3dbb2d6..0000000 --- a/src/wallet/src/models/FriendPoints.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface FriendPoints - */ -export interface FriendPoints { - /** - * the first name of the friend - * @type {string} - * @memberof FriendPoints - */ - firstName: string; - /** - * the points of the friend - * @type {number} - * @memberof FriendPoints - */ - points: number; -} - -/** - * Check if a given object implements the FriendPoints interface. - */ -export function instanceOfFriendPoints(value: object): value is FriendPoints { - if (!('firstName' in value) || value['firstName'] === undefined) return false; - if (!('points' in value) || value['points'] === undefined) return false; - return true; -} - -export function FriendPointsFromJSON(json: any): FriendPoints { - return FriendPointsFromJSONTyped(json, false); -} - -export function FriendPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPoints { - if (json == null) { - return json; - } - return { - - 'firstName': json['firstName'], - 'points': json['points'], - }; -} - -export function FriendPointsToJSON(json: any): FriendPoints { - return FriendPointsToJSONTyped(json, false); -} - -export function FriendPointsToJSONTyped(value?: FriendPoints | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'firstName': value['firstName'], - 'points': value['points'], - }; -} - diff --git a/src/wallet/src/models/FriendPointsResponse.ts b/src/wallet/src/models/FriendPointsResponse.ts deleted file mode 100644 index 90fb666..0000000 --- a/src/wallet/src/models/FriendPointsResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { FriendPoints } from './FriendPoints'; -import { - FriendPointsFromJSON, - FriendPointsFromJSONTyped, - FriendPointsToJSON, - FriendPointsToJSONTyped, -} from './FriendPoints'; - -/** - * - * @export - * @interface FriendPointsResponse - */ -export interface FriendPointsResponse { - /** - * - * @type {Array} - * @memberof FriendPointsResponse - */ - data: Array; -} - -/** - * Check if a given object implements the FriendPointsResponse interface. - */ -export function instanceOfFriendPointsResponse(value: object): value is FriendPointsResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function FriendPointsResponseFromJSON(json: any): FriendPointsResponse { - return FriendPointsResponseFromJSONTyped(json, false); -} - -export function FriendPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPointsResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(FriendPointsFromJSON)), - }; -} - -export function FriendPointsResponseToJSON(json: any): FriendPointsResponse { - return FriendPointsResponseToJSONTyped(json, false); -} - -export function FriendPointsResponseToJSONTyped(value?: FriendPointsResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(FriendPointsToJSON)), - }; -} - diff --git a/src/wallet/src/models/HealthStatus.ts b/src/wallet/src/models/HealthStatus.ts deleted file mode 100644 index 7da54ec..0000000 --- a/src/wallet/src/models/HealthStatus.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HealthStatus - */ -export interface HealthStatus { - /** - * - * @type {string} - * @memberof HealthStatus - */ - status?: string; -} - -/** - * Check if a given object implements the HealthStatus interface. - */ -export function instanceOfHealthStatus(value: object): value is HealthStatus { - return true; -} - -export function HealthStatusFromJSON(json: any): HealthStatus { - return HealthStatusFromJSONTyped(json, false); -} - -export function HealthStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthStatus { - if (json == null) { - return json; - } - return { - - 'status': json['status'] == null ? undefined : json['status'], - }; -} - -export function HealthStatusToJSON(json: any): HealthStatus { - return HealthStatusToJSONTyped(json, false); -} - -export function HealthStatusToJSONTyped(value?: HealthStatus | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'status': value['status'], - }; -} - diff --git a/src/wallet/src/models/JwtResponse.ts b/src/wallet/src/models/JwtResponse.ts deleted file mode 100644 index 6188012..0000000 --- a/src/wallet/src/models/JwtResponse.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface JwtResponse - */ -export interface JwtResponse { - /** - * JWT token - * @type {string} - * @memberof JwtResponse - */ - token: string; -} - -/** - * Check if a given object implements the JwtResponse interface. - */ -export function instanceOfJwtResponse(value: object): value is JwtResponse { - if (!('token' in value) || value['token'] === undefined) return false; - return true; -} - -export function JwtResponseFromJSON(json: any): JwtResponse { - return JwtResponseFromJSONTyped(json, false); -} - -export function JwtResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwtResponse { - if (json == null) { - return json; - } - return { - - 'token': json['token'], - }; -} - -export function JwtResponseToJSON(json: any): JwtResponse { - return JwtResponseToJSONTyped(json, false); -} - -export function JwtResponseToJSONTyped(value?: JwtResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'token': value['token'], - }; -} - diff --git a/src/wallet/src/models/KycConfirmRequest.ts b/src/wallet/src/models/KycConfirmRequest.ts deleted file mode 100644 index b789de0..0000000 --- a/src/wallet/src/models/KycConfirmRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface KycConfirmRequest - */ -export interface KycConfirmRequest { - /** - * KYC request ID - * @type {string} - * @memberof KycConfirmRequest - */ - id: string; -} - -/** - * Check if a given object implements the KycConfirmRequest interface. - */ -export function instanceOfKycConfirmRequest(value: object): value is KycConfirmRequest { - if (!('id' in value) || value['id'] === undefined) return false; - return true; -} - -export function KycConfirmRequestFromJSON(json: any): KycConfirmRequest { - return KycConfirmRequestFromJSONTyped(json, false); -} - -export function KycConfirmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycConfirmRequest { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - }; -} - -export function KycConfirmRequestToJSON(json: any): KycConfirmRequest { - return KycConfirmRequestToJSONTyped(json, false); -} - -export function KycConfirmRequestToJSONTyped(value?: KycConfirmRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - }; -} - diff --git a/src/wallet/src/models/KycRequest.ts b/src/wallet/src/models/KycRequest.ts deleted file mode 100644 index 2986045..0000000 --- a/src/wallet/src/models/KycRequest.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface KycRequest - */ -export interface KycRequest { - /** - * National ID - * @type {string} - * @memberof KycRequest - */ - nationalId: string; - /** - * Date of birth - * @type {string} - * @memberof KycRequest - */ - dateOfBirth: string; - /** - * Card number - * @type {string} - * @memberof KycRequest - */ - cardNumber: string; -} - -/** - * Check if a given object implements the KycRequest interface. - */ -export function instanceOfKycRequest(value: object): value is KycRequest { - if (!('nationalId' in value) || value['nationalId'] === undefined) return false; - if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false; - if (!('cardNumber' in value) || value['cardNumber'] === undefined) return false; - return true; -} - -export function KycRequestFromJSON(json: any): KycRequest { - return KycRequestFromJSONTyped(json, false); -} - -export function KycRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycRequest { - if (json == null) { - return json; - } - return { - - 'nationalId': json['nationalId'], - 'dateOfBirth': json['dateOfBirth'], - 'cardNumber': json['cardNumber'], - }; -} - -export function KycRequestToJSON(json: any): KycRequest { - return KycRequestToJSONTyped(json, false); -} - -export function KycRequestToJSONTyped(value?: KycRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'nationalId': value['nationalId'], - 'dateOfBirth': value['dateOfBirth'], - 'cardNumber': value['cardNumber'], - }; -} - diff --git a/src/wallet/src/models/KycResponse.ts b/src/wallet/src/models/KycResponse.ts deleted file mode 100644 index 65230a0..0000000 --- a/src/wallet/src/models/KycResponse.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { BankInfo } from './BankInfo'; -import { - BankInfoFromJSON, - BankInfoFromJSONTyped, - BankInfoToJSON, - BankInfoToJSONTyped, -} from './BankInfo'; - -/** - * - * @export - * @interface KycResponse - */ -export interface KycResponse { - /** - * KYC request ID - * @type {string} - * @memberof KycResponse - */ - id: string; - /** - * First name - * @type {string} - * @memberof KycResponse - */ - firstName: string; - /** - * Last name - * @type {string} - * @memberof KycResponse - */ - lastName: string; - /** - * National code - * @type {string} - * @memberof KycResponse - */ - nationalId: string; - /** - * Date of birth - * @type {string} - * @memberof KycResponse - */ - dateOfBirth: string; - /** - * - * @type {BankInfo} - * @memberof KycResponse - */ - bankInfo: BankInfo; -} - -/** - * Check if a given object implements the KycResponse interface. - */ -export function instanceOfKycResponse(value: object): value is KycResponse { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('firstName' in value) || value['firstName'] === undefined) return false; - if (!('lastName' in value) || value['lastName'] === undefined) return false; - if (!('nationalId' in value) || value['nationalId'] === undefined) return false; - if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false; - if (!('bankInfo' in value) || value['bankInfo'] === undefined) return false; - return true; -} - -export function KycResponseFromJSON(json: any): KycResponse { - return KycResponseFromJSONTyped(json, false); -} - -export function KycResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycResponse { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'firstName': json['firstName'], - 'lastName': json['lastName'], - 'nationalId': json['nationalId'], - 'dateOfBirth': json['dateOfBirth'], - 'bankInfo': BankInfoFromJSON(json['bankInfo']), - }; -} - -export function KycResponseToJSON(json: any): KycResponse { - return KycResponseToJSONTyped(json, false); -} - -export function KycResponseToJSONTyped(value?: KycResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'nationalId': value['nationalId'], - 'dateOfBirth': value['dateOfBirth'], - 'bankInfo': BankInfoToJSON(value['bankInfo']), - }; -} - diff --git a/src/wallet/src/models/LoanCreateRequest.ts b/src/wallet/src/models/LoanCreateRequest.ts deleted file mode 100644 index 0aee670..0000000 --- a/src/wallet/src/models/LoanCreateRequest.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LoanToValueOptions } from './LoanToValueOptions'; -import { - LoanToValueOptionsFromJSON, - LoanToValueOptionsFromJSONTyped, - LoanToValueOptionsToJSON, - LoanToValueOptionsToJSONTyped, -} from './LoanToValueOptions'; - -/** - * - * @export - * @interface LoanCreateRequest - */ -export interface LoanCreateRequest { - /** - * Intent to create a vault - * @type {string} - * @memberof LoanCreateRequest - */ - intent: LoanCreateRequestIntentEnum; - /** - * The name of the loan plan - * @type {string} - * @memberof LoanCreateRequest - */ - planName: string; - /** - * Collateral amount - * @type {string} - * @memberof LoanCreateRequest - */ - collateral?: string; - /** - * Debt amount - * @type {string} - * @memberof LoanCreateRequest - */ - debt?: string; - /** - * Coin symbol - * @type {string} - * @memberof LoanCreateRequest - */ - symbol: string; - /** - * - * @type {LoanToValueOptions} - * @memberof LoanCreateRequest - */ - loanToValueOption: LoanToValueOptions; -} - - -/** - * @export - */ -export const LoanCreateRequestIntentEnum = { - CREATE: 'create', - PREVIEW: 'preview' -} as const; -export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; - - -/** - * Check if a given object implements the LoanCreateRequest interface. - */ -export function instanceOfLoanCreateRequest(value: object): value is LoanCreateRequest { - if (!('intent' in value) || value['intent'] === undefined) return false; - if (!('planName' in value) || value['planName'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('loanToValueOption' in value) || value['loanToValueOption'] === undefined) return false; - return true; -} - -export function LoanCreateRequestFromJSON(json: any): LoanCreateRequest { - return LoanCreateRequestFromJSONTyped(json, false); -} - -export function LoanCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanCreateRequest { - if (json == null) { - return json; - } - return { - - 'intent': json['intent'], - 'planName': json['planName'], - 'collateral': json['collateral'] == null ? undefined : json['collateral'], - 'debt': json['debt'] == null ? undefined : json['debt'], - 'symbol': json['symbol'], - 'loanToValueOption': LoanToValueOptionsFromJSON(json['loanToValueOption']), - }; -} - -export function LoanCreateRequestToJSON(json: any): LoanCreateRequest { - return LoanCreateRequestToJSONTyped(json, false); -} - -export function LoanCreateRequestToJSONTyped(value?: LoanCreateRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'intent': value['intent'], - 'planName': value['planName'], - 'collateral': value['collateral'], - 'debt': value['debt'], - 'symbol': value['symbol'], - 'loanToValueOption': LoanToValueOptionsToJSON(value['loanToValueOption']), - }; -} - diff --git a/src/wallet/src/models/LoanPlan.ts b/src/wallet/src/models/LoanPlan.ts deleted file mode 100644 index 9d2c423..0000000 --- a/src/wallet/src/models/LoanPlan.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Coin } from './Coin'; -import { - CoinFromJSON, - CoinFromJSONTyped, - CoinToJSON, - CoinToJSONTyped, -} from './Coin'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { DetailedLoanToValueOptions } from './DetailedLoanToValueOptions'; -import { - DetailedLoanToValueOptionsFromJSON, - DetailedLoanToValueOptionsFromJSONTyped, - DetailedLoanToValueOptionsToJSON, - DetailedLoanToValueOptionsToJSONTyped, -} from './DetailedLoanToValueOptions'; - -/** - * - * @export - * @interface LoanPlan - */ -export interface LoanPlan { - /** - * The name of the loan plan - * @type {string} - * @memberof LoanPlan - */ - name: string; - /** - * The minimum collateralization ratio of the loan plan - * @type {string} - * @memberof LoanPlan - */ - minCollateralizationRatio: string; - /** - * - * @type {Array} - * @memberof LoanPlan - */ - acceptableCoins: Array; - /** - * The annual fee of the loan plan - * @type {string} - * @memberof LoanPlan - */ - fee: string; - /** - * - * @type {Currency} - * @memberof LoanPlan - */ - maxDebt: Currency; - /** - * - * @type {Currency} - * @memberof LoanPlan - */ - minDebt: Currency; - /** - * - * @type {Array} - * @memberof LoanPlan - */ - loanToValueOptions: Array; -} - -/** - * Check if a given object implements the LoanPlan interface. - */ -export function instanceOfLoanPlan(value: object): value is LoanPlan { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('minCollateralizationRatio' in value) || value['minCollateralizationRatio'] === undefined) return false; - if (!('acceptableCoins' in value) || value['acceptableCoins'] === undefined) return false; - if (!('fee' in value) || value['fee'] === undefined) return false; - if (!('maxDebt' in value) || value['maxDebt'] === undefined) return false; - if (!('minDebt' in value) || value['minDebt'] === undefined) return false; - if (!('loanToValueOptions' in value) || value['loanToValueOptions'] === undefined) return false; - return true; -} - -export function LoanPlanFromJSON(json: any): LoanPlan { - return LoanPlanFromJSONTyped(json, false); -} - -export function LoanPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlan { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'minCollateralizationRatio': json['minCollateralizationRatio'], - 'acceptableCoins': ((json['acceptableCoins'] as Array).map(CoinFromJSON)), - 'fee': json['fee'], - 'maxDebt': CurrencyFromJSON(json['maxDebt']), - 'minDebt': CurrencyFromJSON(json['minDebt']), - 'loanToValueOptions': ((json['loanToValueOptions'] as Array).map(DetailedLoanToValueOptionsFromJSON)), - }; -} - -export function LoanPlanToJSON(json: any): LoanPlan { - return LoanPlanToJSONTyped(json, false); -} - -export function LoanPlanToJSONTyped(value?: LoanPlan | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'minCollateralizationRatio': value['minCollateralizationRatio'], - 'acceptableCoins': ((value['acceptableCoins'] as Array).map(CoinToJSON)), - 'fee': value['fee'], - 'maxDebt': CurrencyToJSON(value['maxDebt']), - 'minDebt': CurrencyToJSON(value['minDebt']), - 'loanToValueOptions': ((value['loanToValueOptions'] as Array).map(DetailedLoanToValueOptionsToJSON)), - }; -} - diff --git a/src/wallet/src/models/LoanPlanResponse.ts b/src/wallet/src/models/LoanPlanResponse.ts deleted file mode 100644 index e183a71..0000000 --- a/src/wallet/src/models/LoanPlanResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LoanPlan } from './LoanPlan'; -import { - LoanPlanFromJSON, - LoanPlanFromJSONTyped, - LoanPlanToJSON, - LoanPlanToJSONTyped, -} from './LoanPlan'; - -/** - * - * @export - * @interface LoanPlanResponse - */ -export interface LoanPlanResponse { - /** - * - * @type {Array} - * @memberof LoanPlanResponse - */ - data: Array; -} - -/** - * Check if a given object implements the LoanPlanResponse interface. - */ -export function instanceOfLoanPlanResponse(value: object): value is LoanPlanResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function LoanPlanResponseFromJSON(json: any): LoanPlanResponse { - return LoanPlanResponseFromJSONTyped(json, false); -} - -export function LoanPlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlanResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(LoanPlanFromJSON)), - }; -} - -export function LoanPlanResponseToJSON(json: any): LoanPlanResponse { - return LoanPlanResponseToJSONTyped(json, false); -} - -export function LoanPlanResponseToJSONTyped(value?: LoanPlanResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(LoanPlanToJSON)), - }; -} - diff --git a/src/wallet/src/models/LoanToValueOptions.ts b/src/wallet/src/models/LoanToValueOptions.ts deleted file mode 100644 index 3096aa5..0000000 --- a/src/wallet/src/models/LoanToValueOptions.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * The loan to value percentage options - * @export - */ -export const LoanToValueOptions = { - RISKY: 'Risky', - NORMAL: 'Normal', - SAFE: 'Safe' -} as const; -export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; - - -export function instanceOfLoanToValueOptions(value: any): boolean { - for (const key in LoanToValueOptions) { - if (Object.prototype.hasOwnProperty.call(LoanToValueOptions, key)) { - if (LoanToValueOptions[key as keyof typeof LoanToValueOptions] === value) { - return true; - } - } - } - return false; -} - -export function LoanToValueOptionsFromJSON(json: any): LoanToValueOptions { - return LoanToValueOptionsFromJSONTyped(json, false); -} - -export function LoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanToValueOptions { - return json as LoanToValueOptions; -} - -export function LoanToValueOptionsToJSON(value?: LoanToValueOptions | null): any { - return value as any; -} - -export function LoanToValueOptionsToJSONTyped(value: any, ignoreDiscriminator: boolean): LoanToValueOptions { - return value as LoanToValueOptions; -} - diff --git a/src/wallet/src/models/LoansResponse.ts b/src/wallet/src/models/LoansResponse.ts deleted file mode 100644 index 10973ea..0000000 --- a/src/wallet/src/models/LoansResponse.ts +++ /dev/null @@ -1,201 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { BulletContent } from './BulletContent'; -import { - BulletContentFromJSON, - BulletContentFromJSONTyped, - BulletContentToJSON, - BulletContentToJSONTyped, -} from './BulletContent'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { LoanPlan } from './LoanPlan'; -import { - LoanPlanFromJSON, - LoanPlanFromJSONTyped, - LoanPlanToJSON, - LoanPlanToJSONTyped, -} from './LoanPlan'; - -/** - * - * @export - * @interface LoansResponse - */ -export interface LoansResponse { - /** - * Identifier for the vault. - * @type {string} - * @memberof LoansResponse - */ - id?: string; - /** - * Identifier for the user. - * @type {number} - * @memberof LoansResponse - */ - userId: number; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - liquidationPrice: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - collateral: Currency; - /** - * The collateralization ratio of the vault. - * @type {string} - * @memberof LoansResponse - */ - collateralizationRatio: string; - /** - * The loan to value of the vault. - * @type {string} - * @memberof LoansResponse - */ - loanToValue: string; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - debt: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - principal: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - scaledDebt: Currency; - /** - * - * @type {LoanPlan} - * @memberof LoansResponse - */ - plan: LoanPlan; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof LoansResponse - */ - state: { [key: string]: string | undefined; }; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - updatedCollateralTokenBalance?: Currency; - /** - * - * @type {Currency} - * @memberof LoansResponse - */ - updatedDebtTokenBalance?: Currency; - /** - * - * @type {BulletContent} - * @memberof LoansResponse - */ - termsAndConditions?: BulletContent; -} - -/** - * Check if a given object implements the LoansResponse interface. - */ -export function instanceOfLoansResponse(value: object): value is LoansResponse { - if (!('userId' in value) || value['userId'] === undefined) return false; - if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) return false; - if (!('collateral' in value) || value['collateral'] === undefined) return false; - if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) return false; - if (!('loanToValue' in value) || value['loanToValue'] === undefined) return false; - if (!('debt' in value) || value['debt'] === undefined) return false; - if (!('principal' in value) || value['principal'] === undefined) return false; - if (!('scaledDebt' in value) || value['scaledDebt'] === undefined) return false; - if (!('plan' in value) || value['plan'] === undefined) return false; - if (!('state' in value) || value['state'] === undefined) return false; - return true; -} - -export function LoansResponseFromJSON(json: any): LoansResponse { - return LoansResponseFromJSONTyped(json, false); -} - -export function LoansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponse { - if (json == null) { - return json; - } - return { - - 'id': json['id'] == null ? undefined : json['id'], - 'userId': json['userId'], - 'liquidationPrice': CurrencyFromJSON(json['liquidationPrice']), - 'collateral': CurrencyFromJSON(json['collateral']), - 'collateralizationRatio': json['collateralizationRatio'], - 'loanToValue': json['loanToValue'], - 'debt': CurrencyFromJSON(json['debt']), - 'principal': CurrencyFromJSON(json['principal']), - 'scaledDebt': CurrencyFromJSON(json['scaledDebt']), - 'plan': LoanPlanFromJSON(json['plan']), - 'state': json['state'], - 'updatedCollateralTokenBalance': json['updatedCollateralTokenBalance'] == null ? undefined : CurrencyFromJSON(json['updatedCollateralTokenBalance']), - 'updatedDebtTokenBalance': json['updatedDebtTokenBalance'] == null ? undefined : CurrencyFromJSON(json['updatedDebtTokenBalance']), - 'termsAndConditions': json['termsAndConditions'] == null ? undefined : BulletContentFromJSON(json['termsAndConditions']), - }; -} - -export function LoansResponseToJSON(json: any): LoansResponse { - return LoansResponseToJSONTyped(json, false); -} - -export function LoansResponseToJSONTyped(value?: LoansResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'userId': value['userId'], - 'liquidationPrice': CurrencyToJSON(value['liquidationPrice']), - 'collateral': CurrencyToJSON(value['collateral']), - 'collateralizationRatio': value['collateralizationRatio'], - 'loanToValue': value['loanToValue'], - 'debt': CurrencyToJSON(value['debt']), - 'principal': CurrencyToJSON(value['principal']), - 'scaledDebt': CurrencyToJSON(value['scaledDebt']), - 'plan': LoanPlanToJSON(value['plan']), - 'state': value['state'], - 'updatedCollateralTokenBalance': CurrencyToJSON(value['updatedCollateralTokenBalance']), - 'updatedDebtTokenBalance': CurrencyToJSON(value['updatedDebtTokenBalance']), - 'termsAndConditions': BulletContentToJSON(value['termsAndConditions']), - }; -} - diff --git a/src/wallet/src/models/LoansResponseList.ts b/src/wallet/src/models/LoansResponseList.ts deleted file mode 100644 index 1ce238d..0000000 --- a/src/wallet/src/models/LoansResponseList.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LoansResponse } from './LoansResponse'; -import { - LoansResponseFromJSON, - LoansResponseFromJSONTyped, - LoansResponseToJSON, - LoansResponseToJSONTyped, -} from './LoansResponse'; - -/** - * - * @export - * @interface LoansResponseList - */ -export interface LoansResponseList { - /** - * - * @type {Array} - * @memberof LoansResponseList - */ - data: Array; -} - -/** - * Check if a given object implements the LoansResponseList interface. - */ -export function instanceOfLoansResponseList(value: object): value is LoansResponseList { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function LoansResponseListFromJSON(json: any): LoansResponseList { - return LoansResponseListFromJSONTyped(json, false); -} - -export function LoansResponseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponseList { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(LoansResponseFromJSON)), - }; -} - -export function LoansResponseListToJSON(json: any): LoansResponseList { - return LoansResponseListToJSONTyped(json, false); -} - -export function LoansResponseListToJSONTyped(value?: LoansResponseList | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(LoansResponseToJSON)), - }; -} - diff --git a/src/wallet/src/models/LoginRequest.ts b/src/wallet/src/models/LoginRequest.ts deleted file mode 100644 index a5c9231..0000000 --- a/src/wallet/src/models/LoginRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LoginRequest - */ -export interface LoginRequest { - /** - * user's email - * @type {string} - * @memberof LoginRequest - */ - email: string; - /** - * user's password - * @type {string} - * @memberof LoginRequest - */ - password: string; -} - -/** - * Check if a given object implements the LoginRequest interface. - */ -export function instanceOfLoginRequest(value: object): value is LoginRequest { - if (!('email' in value) || value['email'] === undefined) return false; - if (!('password' in value) || value['password'] === undefined) return false; - return true; -} - -export function LoginRequestFromJSON(json: any): LoginRequest { - return LoginRequestFromJSONTyped(json, false); -} - -export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest { - if (json == null) { - return json; - } - return { - - 'email': json['email'], - 'password': json['password'], - }; -} - -export function LoginRequestToJSON(json: any): LoginRequest { - return LoginRequestToJSONTyped(json, false); -} - -export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'email': value['email'], - 'password': value['password'], - }; -} - diff --git a/src/wallet/src/models/ModelError.ts b/src/wallet/src/models/ModelError.ts deleted file mode 100644 index 30a975f..0000000 --- a/src/wallet/src/models/ModelError.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * Error message - * @type {string} - * @memberof ModelError - */ - msg: string; - /** - * - * @type {Array} - * @memberof ModelError - */ - reasons: Array; -} - -/** - * Check if a given object implements the ModelError interface. - */ -export function instanceOfModelError(value: object): value is ModelError { - if (!('msg' in value) || value['msg'] === undefined) return false; - if (!('reasons' in value) || value['reasons'] === undefined) return false; - return true; -} - -export function ModelErrorFromJSON(json: any): ModelError { - return ModelErrorFromJSONTyped(json, false); -} - -export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError { - if (json == null) { - return json; - } - return { - - 'msg': json['msg'], - 'reasons': json['reasons'], - }; -} - -export function ModelErrorToJSON(json: any): ModelError { - return ModelErrorToJSONTyped(json, false); -} - -export function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'msg': value['msg'], - 'reasons': value['reasons'], - }; -} - diff --git a/src/wallet/src/models/Network.ts b/src/wallet/src/models/Network.ts deleted file mode 100644 index 6591605..0000000 --- a/src/wallet/src/models/Network.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Network - */ -export interface Network { - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Network - */ - name: { [key: string]: string | undefined; }; - /** - * - * @type {string} - * @memberof Network - */ - logoUri: string; -} - -/** - * Check if a given object implements the Network interface. - */ -export function instanceOfNetwork(value: object): value is Network { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('logoUri' in value) || value['logoUri'] === undefined) return false; - return true; -} - -export function NetworkFromJSON(json: any): Network { - return NetworkFromJSONTyped(json, false); -} - -export function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'logoUri': json['logoUri'], - }; -} - -export function NetworkToJSON(json: any): Network { - return NetworkToJSONTyped(json, false); -} - -export function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'logoUri': value['logoUri'], - }; -} - diff --git a/src/wallet/src/models/Payment.ts b/src/wallet/src/models/Payment.ts deleted file mode 100644 index b808992..0000000 --- a/src/wallet/src/models/Payment.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Payment - */ -export interface Payment { - /** - * Payment amount - * @type {string} - * @memberof Payment - */ - amount: string; - /** - * Payment hash - * @type {string} - * @memberof Payment - */ - hash: string; - /** - * Payment URL - * @type {string} - * @memberof Payment - */ - url: string; - /** - * Sender first name - * @type {string} - * @memberof Payment - */ - senderFirstName: string; - /** - * Payment text - * @type {string} - * @memberof Payment - */ - text: string; - /** - * Share URL - * @type {string} - * @memberof Payment - */ - shareUrl: string; -} - -/** - * Check if a given object implements the Payment interface. - */ -export function instanceOfPayment(value: object): value is Payment { - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('hash' in value) || value['hash'] === undefined) return false; - if (!('url' in value) || value['url'] === undefined) return false; - if (!('senderFirstName' in value) || value['senderFirstName'] === undefined) return false; - if (!('text' in value) || value['text'] === undefined) return false; - if (!('shareUrl' in value) || value['shareUrl'] === undefined) return false; - return true; -} - -export function PaymentFromJSON(json: any): Payment { - return PaymentFromJSONTyped(json, false); -} - -export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payment { - if (json == null) { - return json; - } - return { - - 'amount': json['amount'], - 'hash': json['hash'], - 'url': json['url'], - 'senderFirstName': json['senderFirstName'], - 'text': json['text'], - 'shareUrl': json['shareUrl'], - }; -} - -export function PaymentToJSON(json: any): Payment { - return PaymentToJSONTyped(json, false); -} - -export function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'amount': value['amount'], - 'hash': value['hash'], - 'url': value['url'], - 'senderFirstName': value['senderFirstName'], - 'text': value['text'], - 'shareUrl': value['shareUrl'], - }; -} - diff --git a/src/wallet/src/models/PaymentRequest.ts b/src/wallet/src/models/PaymentRequest.ts deleted file mode 100644 index d51ef3b..0000000 --- a/src/wallet/src/models/PaymentRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface PaymentRequest - */ -export interface PaymentRequest { - /** - * Payment amount - * @type {string} - * @memberof PaymentRequest - */ - amount: string; -} - -/** - * Check if a given object implements the PaymentRequest interface. - */ -export function instanceOfPaymentRequest(value: object): value is PaymentRequest { - if (!('amount' in value) || value['amount'] === undefined) return false; - return true; -} - -export function PaymentRequestFromJSON(json: any): PaymentRequest { - return PaymentRequestFromJSONTyped(json, false); -} - -export function PaymentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentRequest { - if (json == null) { - return json; - } - return { - - 'amount': json['amount'], - }; -} - -export function PaymentRequestToJSON(json: any): PaymentRequest { - return PaymentRequestToJSONTyped(json, false); -} - -export function PaymentRequestToJSONTyped(value?: PaymentRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'amount': value['amount'], - }; -} - diff --git a/src/wallet/src/models/PhoneOtpSubmitRequest.ts b/src/wallet/src/models/PhoneOtpSubmitRequest.ts deleted file mode 100644 index 3f746ea..0000000 --- a/src/wallet/src/models/PhoneOtpSubmitRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface PhoneOtpSubmitRequest - */ -export interface PhoneOtpSubmitRequest { - /** - * Confirmation code - * @type {number} - * @memberof PhoneOtpSubmitRequest - */ - code: number; -} - -/** - * Check if a given object implements the PhoneOtpSubmitRequest interface. - */ -export function instanceOfPhoneOtpSubmitRequest(value: object): value is PhoneOtpSubmitRequest { - if (!('code' in value) || value['code'] === undefined) return false; - return true; -} - -export function PhoneOtpSubmitRequestFromJSON(json: any): PhoneOtpSubmitRequest { - return PhoneOtpSubmitRequestFromJSONTyped(json, false); -} - -export function PhoneOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneOtpSubmitRequest { - if (json == null) { - return json; - } - return { - - 'code': json['code'], - }; -} - -export function PhoneOtpSubmitRequestToJSON(json: any): PhoneOtpSubmitRequest { - return PhoneOtpSubmitRequestToJSONTyped(json, false); -} - -export function PhoneOtpSubmitRequestToJSONTyped(value?: PhoneOtpSubmitRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'code': value['code'], - }; -} - diff --git a/src/wallet/src/models/ProfileResponse.ts b/src/wallet/src/models/ProfileResponse.ts deleted file mode 100644 index ff75018..0000000 --- a/src/wallet/src/models/ProfileResponse.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { User } from './User'; -import { - UserFromJSON, - UserFromJSONTyped, - UserToJSON, - UserToJSONTyped, -} from './User'; -import type { Referral } from './Referral'; -import { - ReferralFromJSON, - ReferralFromJSONTyped, - ReferralToJSON, - ReferralToJSONTyped, -} from './Referral'; -import type { BankInfo } from './BankInfo'; -import { - BankInfoFromJSON, - BankInfoFromJSONTyped, - BankInfoToJSON, - BankInfoToJSONTyped, -} from './BankInfo'; - -/** - * - * @export - * @interface ProfileResponse - */ -export interface ProfileResponse { - /** - * - * @type {Referral} - * @memberof ProfileResponse - */ - referral: Referral; - /** - * - * @type {number} - * @memberof ProfileResponse - */ - points: number; - /** - * - * @type {User} - * @memberof ProfileResponse - */ - user: User; - /** - * - * @type {Array} - * @memberof ProfileResponse - */ - bankInfo: Array; -} - -/** - * Check if a given object implements the ProfileResponse interface. - */ -export function instanceOfProfileResponse(value: object): value is ProfileResponse { - if (!('referral' in value) || value['referral'] === undefined) return false; - if (!('points' in value) || value['points'] === undefined) return false; - if (!('user' in value) || value['user'] === undefined) return false; - if (!('bankInfo' in value) || value['bankInfo'] === undefined) return false; - return true; -} - -export function ProfileResponseFromJSON(json: any): ProfileResponse { - return ProfileResponseFromJSONTyped(json, false); -} - -export function ProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileResponse { - if (json == null) { - return json; - } - return { - - 'referral': ReferralFromJSON(json['referral']), - 'points': json['points'], - 'user': UserFromJSON(json['user']), - 'bankInfo': ((json['bankInfo'] as Array).map(BankInfoFromJSON)), - }; -} - -export function ProfileResponseToJSON(json: any): ProfileResponse { - return ProfileResponseToJSONTyped(json, false); -} - -export function ProfileResponseToJSONTyped(value?: ProfileResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'referral': ReferralToJSON(value['referral']), - 'points': value['points'], - 'user': UserToJSON(value['user']), - 'bankInfo': ((value['bankInfo'] as Array).map(BankInfoToJSON)), - }; -} - diff --git a/src/wallet/src/models/Redemption.ts b/src/wallet/src/models/Redemption.ts deleted file mode 100644 index cee483c..0000000 --- a/src/wallet/src/models/Redemption.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; -import type { BankInfo } from './BankInfo'; -import { - BankInfoFromJSON, - BankInfoFromJSONTyped, - BankInfoToJSON, - BankInfoToJSONTyped, -} from './BankInfo'; - -/** - * - * @export - * @interface Redemption - */ -export interface Redemption { - /** - * - * @type {Currency} - * @memberof Redemption - */ - amount: Currency; - /** - * - * @type {BankInfo} - * @memberof Redemption - */ - destinationBankInfo: BankInfo; - /** - * - * @type {{ [key: string]: string | undefined; }} - * @memberof Redemption - */ - status: { [key: string]: string | undefined; }; - /** - * The ID of the redemption request - * @type {string} - * @memberof Redemption - */ - id: string; - /** - * - * @type {Timestamp} - * @memberof Redemption - */ - createdAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof Redemption - */ - updatedAt?: Timestamp; - /** - * The Paya tracking code - * @type {string} - * @memberof Redemption - */ - payaTrackingCode?: string; -} - -/** - * Check if a given object implements the Redemption interface. - */ -export function instanceOfRedemption(value: object): value is Redemption { - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('destinationBankInfo' in value) || value['destinationBankInfo'] === undefined) return false; - if (!('status' in value) || value['status'] === undefined) return false; - if (!('id' in value) || value['id'] === undefined) return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) return false; - return true; -} - -export function RedemptionFromJSON(json: any): Redemption { - return RedemptionFromJSONTyped(json, false); -} - -export function RedemptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Redemption { - if (json == null) { - return json; - } - return { - - 'amount': CurrencyFromJSON(json['amount']), - 'destinationBankInfo': BankInfoFromJSON(json['destinationBankInfo']), - 'status': json['status'], - 'id': json['id'], - 'createdAt': TimestampFromJSON(json['createdAt']), - 'updatedAt': json['updatedAt'] == null ? undefined : TimestampFromJSON(json['updatedAt']), - 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], - }; -} - -export function RedemptionToJSON(json: any): Redemption { - return RedemptionToJSONTyped(json, false); -} - -export function RedemptionToJSONTyped(value?: Redemption | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'amount': CurrencyToJSON(value['amount']), - 'destinationBankInfo': BankInfoToJSON(value['destinationBankInfo']), - 'status': value['status'], - 'id': value['id'], - 'createdAt': TimestampToJSON(value['createdAt']), - 'updatedAt': TimestampToJSON(value['updatedAt']), - 'payaTrackingCode': value['payaTrackingCode'], - }; -} - diff --git a/src/wallet/src/models/RedemptionRequest.ts b/src/wallet/src/models/RedemptionRequest.ts deleted file mode 100644 index b4c41de..0000000 --- a/src/wallet/src/models/RedemptionRequest.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RedemptionRequest - */ -export interface RedemptionRequest { - /** - * The amount to be redeemed in ZAR - * @type {string} - * @memberof RedemptionRequest - */ - amount: string; - /** - * The card number to which the redemption amount will be transferred - * @type {string} - * @memberof RedemptionRequest - */ - destinationCardNumber: string; - /** - * The SMS OTP code - * @type {number} - * @memberof RedemptionRequest - */ - smsOtp: number; -} - -/** - * Check if a given object implements the RedemptionRequest interface. - */ -export function instanceOfRedemptionRequest(value: object): value is RedemptionRequest { - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('destinationCardNumber' in value) || value['destinationCardNumber'] === undefined) return false; - if (!('smsOtp' in value) || value['smsOtp'] === undefined) return false; - return true; -} - -export function RedemptionRequestFromJSON(json: any): RedemptionRequest { - return RedemptionRequestFromJSONTyped(json, false); -} - -export function RedemptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionRequest { - if (json == null) { - return json; - } - return { - - 'amount': json['amount'], - 'destinationCardNumber': json['destinationCardNumber'], - 'smsOtp': json['SmsOtp'], - }; -} - -export function RedemptionRequestToJSON(json: any): RedemptionRequest { - return RedemptionRequestToJSONTyped(json, false); -} - -export function RedemptionRequestToJSONTyped(value?: RedemptionRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'amount': value['amount'], - 'destinationCardNumber': value['destinationCardNumber'], - 'SmsOtp': value['smsOtp'], - }; -} - diff --git a/src/wallet/src/models/RedemptionResponse.ts b/src/wallet/src/models/RedemptionResponse.ts deleted file mode 100644 index adcd4e9..0000000 --- a/src/wallet/src/models/RedemptionResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Redemption } from './Redemption'; -import { - RedemptionFromJSON, - RedemptionFromJSONTyped, - RedemptionToJSON, - RedemptionToJSONTyped, -} from './Redemption'; - -/** - * - * @export - * @interface RedemptionResponse - */ -export interface RedemptionResponse { - /** - * - * @type {Array} - * @memberof RedemptionResponse - */ - data: Array; -} - -/** - * Check if a given object implements the RedemptionResponse interface. - */ -export function instanceOfRedemptionResponse(value: object): value is RedemptionResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function RedemptionResponseFromJSON(json: any): RedemptionResponse { - return RedemptionResponseFromJSONTyped(json, false); -} - -export function RedemptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(RedemptionFromJSON)), - }; -} - -export function RedemptionResponseToJSON(json: any): RedemptionResponse { - return RedemptionResponseToJSONTyped(json, false); -} - -export function RedemptionResponseToJSONTyped(value?: RedemptionResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(RedemptionToJSON)), - }; -} - diff --git a/src/wallet/src/models/Referral.ts b/src/wallet/src/models/Referral.ts deleted file mode 100644 index cf435c1..0000000 --- a/src/wallet/src/models/Referral.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface Referral - */ -export interface Referral { - /** - * - * @type {number} - * @memberof Referral - */ - id: number; - /** - * - * @type {number} - * @memberof Referral - */ - referrerId: number; - /** - * - * @type {string} - * @memberof Referral - */ - name?: string | null; - /** - * - * @type {number} - * @memberof Referral - */ - usageLimit: number; - /** - * - * @type {number} - * @memberof Referral - */ - usageCount: number; - /** - * - * @type {Timestamp} - * @memberof Referral - */ - createdAt: Timestamp; - /** - * - * @type {string} - * @memberof Referral - */ - link?: string | null; - /** - * - * @type {string} - * @memberof Referral - */ - shareUrl?: string; -} - -/** - * Check if a given object implements the Referral interface. - */ -export function instanceOfReferral(value: object): value is Referral { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('referrerId' in value) || value['referrerId'] === undefined) return false; - if (!('usageLimit' in value) || value['usageLimit'] === undefined) return false; - if (!('usageCount' in value) || value['usageCount'] === undefined) return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) return false; - return true; -} - -export function ReferralFromJSON(json: any): Referral { - return ReferralFromJSONTyped(json, false); -} - -export function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean): Referral { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'referrerId': json['referrerId'], - 'name': json['name'] == null ? undefined : json['name'], - 'usageLimit': json['usageLimit'], - 'usageCount': json['usageCount'], - 'createdAt': TimestampFromJSON(json['createdAt']), - 'link': json['link'] == null ? undefined : json['link'], - 'shareUrl': json['shareUrl'] == null ? undefined : json['shareUrl'], - }; -} - -export function ReferralToJSON(json: any): Referral { - return ReferralToJSONTyped(json, false); -} - -export function ReferralToJSONTyped(value?: Referral | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'referrerId': value['referrerId'], - 'name': value['name'], - 'usageLimit': value['usageLimit'], - 'usageCount': value['usageCount'], - 'createdAt': TimestampToJSON(value['createdAt']), - 'link': value['link'], - 'shareUrl': value['shareUrl'], - }; -} - diff --git a/src/wallet/src/models/ReferralResponse.ts b/src/wallet/src/models/ReferralResponse.ts deleted file mode 100644 index 0311c3c..0000000 --- a/src/wallet/src/models/ReferralResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Referral } from './Referral'; -import { - ReferralFromJSON, - ReferralFromJSONTyped, - ReferralToJSON, - ReferralToJSONTyped, -} from './Referral'; - -/** - * - * @export - * @interface ReferralResponse - */ -export interface ReferralResponse { - /** - * - * @type {Array} - * @memberof ReferralResponse - */ - data: Array; -} - -/** - * Check if a given object implements the ReferralResponse interface. - */ -export function instanceOfReferralResponse(value: object): value is ReferralResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function ReferralResponseFromJSON(json: any): ReferralResponse { - return ReferralResponseFromJSONTyped(json, false); -} - -export function ReferralResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(ReferralFromJSON)), - }; -} - -export function ReferralResponseToJSON(json: any): ReferralResponse { - return ReferralResponseToJSONTyped(json, false); -} - -export function ReferralResponseToJSONTyped(value?: ReferralResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(ReferralToJSON)), - }; -} - diff --git a/src/wallet/src/models/RepayLoanRequest.ts b/src/wallet/src/models/RepayLoanRequest.ts deleted file mode 100644 index cb81fbf..0000000 --- a/src/wallet/src/models/RepayLoanRequest.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RepayLoanRequest - */ -export interface RepayLoanRequest { - /** - * Intent to repay a loan - * @type {string} - * @memberof RepayLoanRequest - */ - intent: RepayLoanRequestIntentEnum; - /** - * The id of a loan - * @type {string} - * @memberof RepayLoanRequest - */ - loanId: string; -} - - -/** - * @export - */ -export const RepayLoanRequestIntentEnum = { - REPAY: 'Repay', - PREVIEW: 'Preview' -} as const; -export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; - - -/** - * Check if a given object implements the RepayLoanRequest interface. - */ -export function instanceOfRepayLoanRequest(value: object): value is RepayLoanRequest { - if (!('intent' in value) || value['intent'] === undefined) return false; - if (!('loanId' in value) || value['loanId'] === undefined) return false; - return true; -} - -export function RepayLoanRequestFromJSON(json: any): RepayLoanRequest { - return RepayLoanRequestFromJSONTyped(json, false); -} - -export function RepayLoanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepayLoanRequest { - if (json == null) { - return json; - } - return { - - 'intent': json['intent'], - 'loanId': json['loanId'], - }; -} - -export function RepayLoanRequestToJSON(json: any): RepayLoanRequest { - return RepayLoanRequestToJSONTyped(json, false); -} - -export function RepayLoanRequestToJSONTyped(value?: RepayLoanRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'intent': value['intent'], - 'loanId': value['loanId'], - }; -} - diff --git a/src/wallet/src/models/SignUpRequest.ts b/src/wallet/src/models/SignUpRequest.ts deleted file mode 100644 index 8442deb..0000000 --- a/src/wallet/src/models/SignUpRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface SignUpRequest - */ -export interface SignUpRequest { - /** - * user's email - * @type {string} - * @memberof SignUpRequest - */ - email: string; - /** - * user's password - * @type {string} - * @memberof SignUpRequest - */ - password: string; -} - -/** - * Check if a given object implements the SignUpRequest interface. - */ -export function instanceOfSignUpRequest(value: object): value is SignUpRequest { - if (!('email' in value) || value['email'] === undefined) return false; - if (!('password' in value) || value['password'] === undefined) return false; - return true; -} - -export function SignUpRequestFromJSON(json: any): SignUpRequest { - return SignUpRequestFromJSONTyped(json, false); -} - -export function SignUpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignUpRequest { - if (json == null) { - return json; - } - return { - - 'email': json['email'], - 'password': json['password'], - }; -} - -export function SignUpRequestToJSON(json: any): SignUpRequest { - return SignUpRequestToJSONTyped(json, false); -} - -export function SignUpRequestToJSONTyped(value?: SignUpRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'email': value['email'], - 'password': value['password'], - }; -} - diff --git a/src/wallet/src/models/SimpleResponse.ts b/src/wallet/src/models/SimpleResponse.ts deleted file mode 100644 index 3ddfbdd..0000000 --- a/src/wallet/src/models/SimpleResponse.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface SimpleResponse - */ -export interface SimpleResponse { - /** - * Localized messages - * @type {{ [key: string]: string | undefined; }} - * @memberof SimpleResponse - */ - messages: { [key: string]: string | undefined; }; -} - -/** - * Check if a given object implements the SimpleResponse interface. - */ -export function instanceOfSimpleResponse(value: object): value is SimpleResponse { - if (!('messages' in value) || value['messages'] === undefined) return false; - return true; -} - -export function SimpleResponseFromJSON(json: any): SimpleResponse { - return SimpleResponseFromJSONTyped(json, false); -} - -export function SimpleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimpleResponse { - if (json == null) { - return json; - } - return { - - 'messages': json['messages'], - }; -} - -export function SimpleResponseToJSON(json: any): SimpleResponse { - return SimpleResponseToJSONTyped(json, false); -} - -export function SimpleResponseToJSONTyped(value?: SimpleResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'messages': value['messages'], - }; -} - diff --git a/src/wallet/src/models/SwapRequest.ts b/src/wallet/src/models/SwapRequest.ts deleted file mode 100644 index c65ee7d..0000000 --- a/src/wallet/src/models/SwapRequest.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface SwapRequest - */ -export interface SwapRequest { - /** - * Intent to swap - * @type {string} - * @memberof SwapRequest - */ - intent: SwapRequestIntentEnum; - /** - * Quote ID, required if intent is Swap - * @type {string} - * @memberof SwapRequest - */ - quoteId?: string; - /** - * Trade type - * @type {string} - * @memberof SwapRequest - */ - tradeType?: SwapRequestTradeTypeEnum; - /** - * Coin symbol to swap from - * @type {string} - * @memberof SwapRequest - */ - _in?: string; - /** - * Coin symbol to swap to - * @type {string} - * @memberof SwapRequest - */ - out?: string; - /** - * Amount to swap - * @type {string} - * @memberof SwapRequest - */ - amount?: string; -} - - -/** - * @export - */ -export const SwapRequestIntentEnum = { - SWAP: 'Swap', - QUOTE: 'Quote', - PREVIEW: 'Preview' -} as const; -export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; - -/** - * @export - */ -export const SwapRequestTradeTypeEnum = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -} as const; -export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; - - -/** - * Check if a given object implements the SwapRequest interface. - */ -export function instanceOfSwapRequest(value: object): value is SwapRequest { - if (!('intent' in value) || value['intent'] === undefined) return false; - return true; -} - -export function SwapRequestFromJSON(json: any): SwapRequest { - return SwapRequestFromJSONTyped(json, false); -} - -export function SwapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapRequest { - if (json == null) { - return json; - } - return { - - 'intent': json['intent'], - 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], - 'tradeType': json['tradeType'] == null ? undefined : json['tradeType'], - '_in': json['in'] == null ? undefined : json['in'], - 'out': json['out'] == null ? undefined : json['out'], - 'amount': json['amount'] == null ? undefined : json['amount'], - }; -} - -export function SwapRequestToJSON(json: any): SwapRequest { - return SwapRequestToJSONTyped(json, false); -} - -export function SwapRequestToJSONTyped(value?: SwapRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'intent': value['intent'], - 'quoteId': value['quoteId'], - 'tradeType': value['tradeType'], - 'in': value['_in'], - 'out': value['out'], - 'amount': value['amount'], - }; -} - diff --git a/src/wallet/src/models/SwapResponse.ts b/src/wallet/src/models/SwapResponse.ts deleted file mode 100644 index e4554cc..0000000 --- a/src/wallet/src/models/SwapResponse.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface SwapResponse - */ -export interface SwapResponse { - /** - * - * @type {string} - * @memberof SwapResponse - */ - id: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - tradeType: SwapResponseTradeTypeEnum; - /** - * - * @type {Symbol} - * @memberof SwapResponse - */ - _in: Symbol; - /** - * - * @type {Symbol} - * @memberof SwapResponse - */ - out: Symbol; - /** - * - * @type {string} - * @memberof SwapResponse - */ - amount: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - quote: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - rate: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - inputBalanceAfterSwap?: string; - /** - * - * @type {string} - * @memberof SwapResponse - */ - outputBalanceAfterSwap?: string; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - createdAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - expiresAt: Timestamp; - /** - * - * @type {Timestamp} - * @memberof SwapResponse - */ - executedAt?: Timestamp; - /** - * - * @type {Currency} - * @memberof SwapResponse - */ - value: Currency; -} - - -/** - * @export - */ -export const SwapResponseTradeTypeEnum = { - EXACT_INPUT: 'ExactInput', - EXACT_OUTPUT: 'ExactOutput' -} as const; -export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; - - -/** - * Check if a given object implements the SwapResponse interface. - */ -export function instanceOfSwapResponse(value: object): value is SwapResponse { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('tradeType' in value) || value['tradeType'] === undefined) return false; - if (!('_in' in value) || value['_in'] === undefined) return false; - if (!('out' in value) || value['out'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('quote' in value) || value['quote'] === undefined) return false; - if (!('rate' in value) || value['rate'] === undefined) return false; - if (!('createdAt' in value) || value['createdAt'] === undefined) return false; - if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - return true; -} - -export function SwapResponseFromJSON(json: any): SwapResponse { - return SwapResponseFromJSONTyped(json, false); -} - -export function SwapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapResponse { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'tradeType': json['tradeType'], - '_in': SymbolFromJSON(json['in']), - 'out': SymbolFromJSON(json['out']), - 'amount': json['amount'], - 'quote': json['quote'], - 'rate': json['rate'], - 'inputBalanceAfterSwap': json['inputBalanceAfterSwap'] == null ? undefined : json['inputBalanceAfterSwap'], - 'outputBalanceAfterSwap': json['outputBalanceAfterSwap'] == null ? undefined : json['outputBalanceAfterSwap'], - 'createdAt': TimestampFromJSON(json['createdAt']), - 'expiresAt': TimestampFromJSON(json['expiresAt']), - 'executedAt': json['executedAt'] == null ? undefined : TimestampFromJSON(json['executedAt']), - 'value': CurrencyFromJSON(json['value']), - }; -} - -export function SwapResponseToJSON(json: any): SwapResponse { - return SwapResponseToJSONTyped(json, false); -} - -export function SwapResponseToJSONTyped(value?: SwapResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'tradeType': value['tradeType'], - 'in': SymbolToJSON(value['_in']), - 'out': SymbolToJSON(value['out']), - 'amount': value['amount'], - 'quote': value['quote'], - 'rate': value['rate'], - 'inputBalanceAfterSwap': value['inputBalanceAfterSwap'], - 'outputBalanceAfterSwap': value['outputBalanceAfterSwap'], - 'createdAt': TimestampToJSON(value['createdAt']), - 'expiresAt': TimestampToJSON(value['expiresAt']), - 'executedAt': TimestampToJSON(value['executedAt']), - 'value': CurrencyToJSON(value['value']), - }; -} - diff --git a/src/wallet/src/models/Symbol.ts b/src/wallet/src/models/Symbol.ts deleted file mode 100644 index 453a68e..0000000 --- a/src/wallet/src/models/Symbol.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * Symbol representation - * @export - */ -export const Symbol = { - USD: 'USD', - DAI: 'DAI', - USDT: 'USDT', - USDC: 'USDC', - WBTC: 'WBTC', - ETH: 'ETH', - WETH: 'WETH', - ZAR: 'ZAR', - TMN: 'TMN' -} as const; -export type Symbol = typeof Symbol[keyof typeof Symbol]; - - -export function instanceOfSymbol(value: any): boolean { - for (const key in Symbol) { - if (Object.prototype.hasOwnProperty.call(Symbol, key)) { - if (Symbol[key as keyof typeof Symbol] === value) { - return true; - } - } - } - return false; -} - -export function SymbolFromJSON(json: any): Symbol { - return SymbolFromJSONTyped(json, false); -} - -export function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol { - return json as Symbol; -} - -export function SymbolToJSON(value?: Symbol | null): any { - return value as any; -} - -export function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol { - return value as Symbol; -} - diff --git a/src/wallet/src/models/Task.ts b/src/wallet/src/models/Task.ts deleted file mode 100644 index e42e75a..0000000 --- a/src/wallet/src/models/Task.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface Task - */ -export interface Task { - /** - * Task ID - * @type {string} - * @memberof Task - */ - id: string; - /** - * Task description - * @type {string} - * @memberof Task - */ - description: string; - /** - * Task reward - * @type {number} - * @memberof Task - */ - points: number; - /** - * Task status. Possible values "Pending", "Completed" - * @type {string} - * @memberof Task - */ - status: string; - /** - * - * @type {Timestamp} - * @memberof Task - */ - completedAt?: Timestamp; -} - -/** - * Check if a given object implements the Task interface. - */ -export function instanceOfTask(value: object): value is Task { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('description' in value) || value['description'] === undefined) return false; - if (!('points' in value) || value['points'] === undefined) return false; - if (!('status' in value) || value['status'] === undefined) return false; - return true; -} - -export function TaskFromJSON(json: any): Task { - return TaskFromJSONTyped(json, false); -} - -export function TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Task { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'description': json['description'], - 'points': json['points'], - 'status': json['status'], - 'completedAt': json['completedAt'] == null ? undefined : TimestampFromJSON(json['completedAt']), - }; -} - -export function TaskToJSON(json: any): Task { - return TaskToJSONTyped(json, false); -} - -export function TaskToJSONTyped(value?: Task | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'description': value['description'], - 'points': value['points'], - 'status': value['status'], - 'completedAt': TimestampToJSON(value['completedAt']), - }; -} - diff --git a/src/wallet/src/models/TaskResponse.ts b/src/wallet/src/models/TaskResponse.ts deleted file mode 100644 index 8d8ad2c..0000000 --- a/src/wallet/src/models/TaskResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Task } from './Task'; -import { - TaskFromJSON, - TaskFromJSONTyped, - TaskToJSON, - TaskToJSONTyped, -} from './Task'; - -/** - * - * @export - * @interface TaskResponse - */ -export interface TaskResponse { - /** - * - * @type {Array} - * @memberof TaskResponse - */ - data: Array; -} - -/** - * Check if a given object implements the TaskResponse interface. - */ -export function instanceOfTaskResponse(value: object): value is TaskResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function TaskResponseFromJSON(json: any): TaskResponse { - return TaskResponseFromJSONTyped(json, false); -} - -export function TaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(TaskFromJSON)), - }; -} - -export function TaskResponseToJSON(json: any): TaskResponse { - return TaskResponseToJSONTyped(json, false); -} - -export function TaskResponseToJSONTyped(value?: TaskResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(TaskToJSON)), - }; -} - diff --git a/src/wallet/src/models/TelegramProfile.ts b/src/wallet/src/models/TelegramProfile.ts deleted file mode 100644 index e5077c0..0000000 --- a/src/wallet/src/models/TelegramProfile.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface TelegramProfile - */ -export interface TelegramProfile { - /** - * - * @type {string} - * @memberof TelegramProfile - */ - username?: string | null; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - firstName: string; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - lastName?: string | null; - /** - * - * @type {string} - * @memberof TelegramProfile - */ - photoUrl?: string | null; -} - -/** - * Check if a given object implements the TelegramProfile interface. - */ -export function instanceOfTelegramProfile(value: object): value is TelegramProfile { - if (!('firstName' in value) || value['firstName'] === undefined) return false; - return true; -} - -export function TelegramProfileFromJSON(json: any): TelegramProfile { - return TelegramProfileFromJSONTyped(json, false); -} - -export function TelegramProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelegramProfile { - if (json == null) { - return json; - } - return { - - 'username': json['username'] == null ? undefined : json['username'], - 'firstName': json['firstName'], - 'lastName': json['lastName'] == null ? undefined : json['lastName'], - 'photoUrl': json['photoUrl'] == null ? undefined : json['photoUrl'], - }; -} - -export function TelegramProfileToJSON(json: any): TelegramProfile { - return TelegramProfileToJSONTyped(json, false); -} - -export function TelegramProfileToJSONTyped(value?: TelegramProfile | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'username': value['username'], - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'photoUrl': value['photoUrl'], - }; -} - diff --git a/src/wallet/src/models/Timestamp.ts b/src/wallet/src/models/Timestamp.ts deleted file mode 100644 index cf87ec9..0000000 --- a/src/wallet/src/models/Timestamp.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Timestamp - */ -export interface Timestamp { - /** - * Jalaali date - * @type {string} - * @memberof Timestamp - */ - jalaali: string; - /** - * Gregorian date - * @type {string} - * @memberof Timestamp - */ - gregorian: string; -} - -/** - * Check if a given object implements the Timestamp interface. - */ -export function instanceOfTimestamp(value: object): value is Timestamp { - if (!('jalaali' in value) || value['jalaali'] === undefined) return false; - if (!('gregorian' in value) || value['gregorian'] === undefined) return false; - return true; -} - -export function TimestampFromJSON(json: any): Timestamp { - return TimestampFromJSONTyped(json, false); -} - -export function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp { - if (json == null) { - return json; - } - return { - - 'jalaali': json['jalaali'], - 'gregorian': json['gregorian'], - }; -} - -export function TimestampToJSON(json: any): Timestamp { - return TimestampToJSONTyped(json, false); -} - -export function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'jalaali': value['jalaali'], - 'gregorian': value['gregorian'], - }; -} - diff --git a/src/wallet/src/models/Transaction.ts b/src/wallet/src/models/Transaction.ts deleted file mode 100644 index 86da469..0000000 --- a/src/wallet/src/models/Transaction.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { TransactionType } from './TransactionType'; -import { - TransactionTypeFromJSON, - TransactionTypeFromJSONTyped, - TransactionTypeToJSON, - TransactionTypeToJSONTyped, -} from './TransactionType'; -import type { ExternalTransaction } from './ExternalTransaction'; -import { - ExternalTransactionFromJSON, - ExternalTransactionFromJSONTyped, - ExternalTransactionToJSON, - ExternalTransactionToJSONTyped, -} from './ExternalTransaction'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface Transaction - */ -export interface Transaction { - /** - * Unique identifier of the transaction - * @type {number} - * @memberof Transaction - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof Transaction - */ - time: Timestamp; - /** - * - * @type {TransactionType} - * @memberof Transaction - */ - type: TransactionType; - /** - * The ID of the user from whom the transaction originated - * @type {string} - * @memberof Transaction - */ - from: string; - /** - * The ID of the user to whom the transaction is directed - * @type {string} - * @memberof Transaction - */ - to: string; - /** - * - * @type {Symbol} - * @memberof Transaction - */ - symbol: Symbol; - /** - * - * @type {Currency} - * @memberof Transaction - */ - amount: Currency; - /** - * Equal to "Inbound" if the transaction is directed to the user, and "Outbound" if the transaction is directed from the user. - * @type {string} - * @memberof Transaction - */ - direction: TransactionDirectionEnum; - /** - * - * @type {ExternalTransaction} - * @memberof Transaction - */ - externalTransaction?: ExternalTransaction; -} - - -/** - * @export - */ -export const TransactionDirectionEnum = { - INBOUND: 'Inbound', - OUTBOUND: 'Outbound' -} as const; -export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; - - -/** - * Check if a given object implements the Transaction interface. - */ -export function instanceOfTransaction(value: object): value is Transaction { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('time' in value) || value['time'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('from' in value) || value['from'] === undefined) return false; - if (!('to' in value) || value['to'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('direction' in value) || value['direction'] === undefined) return false; - return true; -} - -export function TransactionFromJSON(json: any): Transaction { - return TransactionFromJSONTyped(json, false); -} - -export function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'time': TimestampFromJSON(json['time']), - 'type': TransactionTypeFromJSON(json['type']), - 'from': json['from'], - 'to': json['to'], - 'symbol': SymbolFromJSON(json['symbol']), - 'amount': CurrencyFromJSON(json['amount']), - 'direction': json['direction'], - 'externalTransaction': json['externalTransaction'] == null ? undefined : ExternalTransactionFromJSON(json['externalTransaction']), - }; -} - -export function TransactionToJSON(json: any): Transaction { - return TransactionToJSONTyped(json, false); -} - -export function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'time': TimestampToJSON(value['time']), - 'type': TransactionTypeToJSON(value['type']), - 'from': value['from'], - 'to': value['to'], - 'symbol': SymbolToJSON(value['symbol']), - 'amount': CurrencyToJSON(value['amount']), - 'direction': value['direction'], - 'externalTransaction': ExternalTransactionToJSON(value['externalTransaction']), - }; -} - diff --git a/src/wallet/src/models/TransactionResponse.ts b/src/wallet/src/models/TransactionResponse.ts deleted file mode 100644 index 19bb21f..0000000 --- a/src/wallet/src/models/TransactionResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Transaction } from './Transaction'; -import { - TransactionFromJSON, - TransactionFromJSONTyped, - TransactionToJSON, - TransactionToJSONTyped, -} from './Transaction'; - -/** - * - * @export - * @interface TransactionResponse - */ -export interface TransactionResponse { - /** - * - * @type {Array} - * @memberof TransactionResponse - */ - data: Array; -} - -/** - * Check if a given object implements the TransactionResponse interface. - */ -export function instanceOfTransactionResponse(value: object): value is TransactionResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function TransactionResponseFromJSON(json: any): TransactionResponse { - return TransactionResponseFromJSONTyped(json, false); -} - -export function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(TransactionFromJSON)), - }; -} - -export function TransactionResponseToJSON(json: any): TransactionResponse { - return TransactionResponseToJSONTyped(json, false); -} - -export function TransactionResponseToJSONTyped(value?: TransactionResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(TransactionToJSON)), - }; -} - diff --git a/src/wallet/src/models/TransactionStatus.ts b/src/wallet/src/models/TransactionStatus.ts deleted file mode 100644 index ad54f1d..0000000 --- a/src/wallet/src/models/TransactionStatus.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const TransactionStatus = { - SENT: 'Sent', - SUCCESS: 'Success', - FAILED: 'Failed' -} as const; -export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; - - -export function instanceOfTransactionStatus(value: any): boolean { - for (const key in TransactionStatus) { - if (Object.prototype.hasOwnProperty.call(TransactionStatus, key)) { - if (TransactionStatus[key as keyof typeof TransactionStatus] === value) { - return true; - } - } - } - return false; -} - -export function TransactionStatusFromJSON(json: any): TransactionStatus { - return TransactionStatusFromJSONTyped(json, false); -} - -export function TransactionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionStatus { - return json as TransactionStatus; -} - -export function TransactionStatusToJSON(value?: TransactionStatus | null): any { - return value as any; -} - -export function TransactionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionStatus { - return value as TransactionStatus; -} - diff --git a/src/wallet/src/models/TransactionType.ts b/src/wallet/src/models/TransactionType.ts deleted file mode 100644 index 1c16fe4..0000000 --- a/src/wallet/src/models/TransactionType.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const TransactionType = { - CREDIT: 'Credit', - DEBIT: 'Debit', - TRANSFER: 'Transfer', - DEPOSIT: 'Deposit', - WITHDRAW: 'Withdraw' -} as const; -export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; - - -export function instanceOfTransactionType(value: any): boolean { - for (const key in TransactionType) { - if (Object.prototype.hasOwnProperty.call(TransactionType, key)) { - if (TransactionType[key as keyof typeof TransactionType] === value) { - return true; - } - } - } - return false; -} - -export function TransactionTypeFromJSON(json: any): TransactionType { - return TransactionTypeFromJSONTyped(json, false); -} - -export function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType { - return json as TransactionType; -} - -export function TransactionTypeToJSON(value?: TransactionType | null): any { - return value as any; -} - -export function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType { - return value as TransactionType; -} - diff --git a/src/wallet/src/models/UpdateEmailRequest.ts b/src/wallet/src/models/UpdateEmailRequest.ts deleted file mode 100644 index 86573de..0000000 --- a/src/wallet/src/models/UpdateEmailRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface UpdateEmailRequest - */ -export interface UpdateEmailRequest { - /** - * Email address - * @type {string} - * @memberof UpdateEmailRequest - */ - email: string; -} - -/** - * Check if a given object implements the UpdateEmailRequest interface. - */ -export function instanceOfUpdateEmailRequest(value: object): value is UpdateEmailRequest { - if (!('email' in value) || value['email'] === undefined) return false; - return true; -} - -export function UpdateEmailRequestFromJSON(json: any): UpdateEmailRequest { - return UpdateEmailRequestFromJSONTyped(json, false); -} - -export function UpdateEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateEmailRequest { - if (json == null) { - return json; - } - return { - - 'email': json['email'], - }; -} - -export function UpdateEmailRequestToJSON(json: any): UpdateEmailRequest { - return UpdateEmailRequestToJSONTyped(json, false); -} - -export function UpdateEmailRequestToJSONTyped(value?: UpdateEmailRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'email': value['email'], - }; -} - diff --git a/src/wallet/src/models/UpdatePhoneRequest.ts b/src/wallet/src/models/UpdatePhoneRequest.ts deleted file mode 100644 index d81a6a7..0000000 --- a/src/wallet/src/models/UpdatePhoneRequest.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface UpdatePhoneRequest - */ -export interface UpdatePhoneRequest { - /** - * Phone number - * @type {string} - * @memberof UpdatePhoneRequest - */ - number: string; -} - -/** - * Check if a given object implements the UpdatePhoneRequest interface. - */ -export function instanceOfUpdatePhoneRequest(value: object): value is UpdatePhoneRequest { - if (!('number' in value) || value['number'] === undefined) return false; - return true; -} - -export function UpdatePhoneRequestFromJSON(json: any): UpdatePhoneRequest { - return UpdatePhoneRequestFromJSONTyped(json, false); -} - -export function UpdatePhoneRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePhoneRequest { - if (json == null) { - return json; - } - return { - - 'number': json['number'], - }; -} - -export function UpdatePhoneRequestToJSON(json: any): UpdatePhoneRequest { - return UpdatePhoneRequestToJSONTyped(json, false); -} - -export function UpdatePhoneRequestToJSONTyped(value?: UpdatePhoneRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'number': value['number'], - }; -} - diff --git a/src/wallet/src/models/User.ts b/src/wallet/src/models/User.ts deleted file mode 100644 index 45bc7df..0000000 --- a/src/wallet/src/models/User.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { TelegramProfile } from './TelegramProfile'; -import { - TelegramProfileFromJSON, - TelegramProfileFromJSONTyped, - TelegramProfileToJSON, - TelegramProfileToJSONTyped, -} from './TelegramProfile'; - -/** - * - * @export - * @interface User - */ -export interface User { - /** - * User's first name - * @type {string} - * @memberof User - */ - firstName?: string; - /** - * User's last name - * @type {string} - * @memberof User - */ - lastName?: string; - /** - * - * @type {string} - * @memberof User - */ - email?: string; - /** - * - * @type {string} - * @memberof User - */ - username?: string; - /** - * - * @type {string} - * @memberof User - */ - phone?: string; - /** - * - * @type {boolean} - * @memberof User - */ - isEmailVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isPhoneVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isKycVerified?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isChild?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isSuperUser?: boolean; - /** - * - * @type {boolean} - * @memberof User - */ - isAdmin?: boolean; - /** - * - * @type {TelegramProfile} - * @memberof User - */ - telegram?: TelegramProfile; -} - -/** - * Check if a given object implements the User interface. - */ -export function instanceOfUser(value: object): value is User { - return true; -} - -export function UserFromJSON(json: any): User { - return UserFromJSONTyped(json, false); -} - -export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User { - if (json == null) { - return json; - } - return { - - 'firstName': json['firstName'] == null ? undefined : json['firstName'], - 'lastName': json['lastName'] == null ? undefined : json['lastName'], - 'email': json['email'] == null ? undefined : json['email'], - 'username': json['username'] == null ? undefined : json['username'], - 'phone': json['phone'] == null ? undefined : json['phone'], - 'isEmailVerified': json['isEmailVerified'] == null ? undefined : json['isEmailVerified'], - 'isPhoneVerified': json['isPhoneVerified'] == null ? undefined : json['isPhoneVerified'], - 'isKycVerified': json['isKycVerified'] == null ? undefined : json['isKycVerified'], - 'isChild': json['isChild'] == null ? undefined : json['isChild'], - 'isSuperUser': json['isSuperUser'] == null ? undefined : json['isSuperUser'], - 'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'], - 'telegram': json['telegram'] == null ? undefined : TelegramProfileFromJSON(json['telegram']), - }; -} - -export function UserToJSON(json: any): User { - return UserToJSONTyped(json, false); -} - -export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'firstName': value['firstName'], - 'lastName': value['lastName'], - 'email': value['email'], - 'username': value['username'], - 'phone': value['phone'], - 'isEmailVerified': value['isEmailVerified'], - 'isPhoneVerified': value['isPhoneVerified'], - 'isKycVerified': value['isKycVerified'], - 'isChild': value['isChild'], - 'isSuperUser': value['isSuperUser'], - 'isAdmin': value['isAdmin'], - 'telegram': TelegramProfileToJSON(value['telegram']), - }; -} - diff --git a/src/wallet/src/models/UserError.ts b/src/wallet/src/models/UserError.ts deleted file mode 100644 index 243d0de..0000000 --- a/src/wallet/src/models/UserError.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ErrorDetail } from './ErrorDetail'; -import { - ErrorDetailFromJSON, - ErrorDetailFromJSONTyped, - ErrorDetailToJSON, - ErrorDetailToJSONTyped, -} from './ErrorDetail'; - -/** - * - * @export - * @interface UserError - */ -export interface UserError { - /** - * Localized error messages - * @type {{ [key: string]: ErrorDetail | undefined; }} - * @memberof UserError - */ - messages: { [key: string]: ErrorDetail | undefined; }; -} - -/** - * Check if a given object implements the UserError interface. - */ -export function instanceOfUserError(value: object): value is UserError { - if (!('messages' in value) || value['messages'] === undefined) return false; - return true; -} - -export function UserErrorFromJSON(json: any): UserError { - return UserErrorFromJSONTyped(json, false); -} - -export function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError { - if (json == null) { - return json; - } - return { - - 'messages': (mapValues(json['messages'], ErrorDetailFromJSON)), - }; -} - -export function UserErrorToJSON(json: any): UserError { - return UserErrorToJSONTyped(json, false); -} - -export function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'messages': (mapValues(value['messages'], ErrorDetailToJSON)), - }; -} - diff --git a/src/wallet/src/models/WalletBalance.ts b/src/wallet/src/models/WalletBalance.ts deleted file mode 100644 index 07ae0bf..0000000 --- a/src/wallet/src/models/WalletBalance.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Balance } from './Balance'; -import { - BalanceFromJSON, - BalanceFromJSONTyped, - BalanceToJSON, - BalanceToJSONTyped, -} from './Balance'; - -/** - * - * @export - * @interface WalletBalance - */ -export interface WalletBalance { - /** - * - * @type {Currency} - * @memberof WalletBalance - */ - total: Currency; - /** - * - * @type {Array} - * @memberof WalletBalance - */ - balances: Array; -} - -/** - * Check if a given object implements the WalletBalance interface. - */ -export function instanceOfWalletBalance(value: object): value is WalletBalance { - if (!('total' in value) || value['total'] === undefined) return false; - if (!('balances' in value) || value['balances'] === undefined) return false; - return true; -} - -export function WalletBalanceFromJSON(json: any): WalletBalance { - return WalletBalanceFromJSONTyped(json, false); -} - -export function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance { - if (json == null) { - return json; - } - return { - - 'total': CurrencyFromJSON(json['total']), - 'balances': ((json['balances'] as Array).map(BalanceFromJSON)), - }; -} - -export function WalletBalanceToJSON(json: any): WalletBalance { - return WalletBalanceToJSONTyped(json, false); -} - -export function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'total': CurrencyToJSON(value['total']), - 'balances': ((value['balances'] as Array).map(BalanceToJSON)), - }; -} - diff --git a/src/wallet/src/models/WithdrawRequest.ts b/src/wallet/src/models/WithdrawRequest.ts deleted file mode 100644 index 657710b..0000000 --- a/src/wallet/src/models/WithdrawRequest.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, - NetworkToJSONTyped, -} from './Network'; -import type { Timestamp } from './Timestamp'; -import { - TimestampFromJSON, - TimestampFromJSONTyped, - TimestampToJSON, - TimestampToJSONTyped, -} from './Timestamp'; - -/** - * - * @export - * @interface WithdrawRequest - */ -export interface WithdrawRequest { - /** - * - * @type {number} - * @memberof WithdrawRequest - */ - id: number; - /** - * - * @type {Timestamp} - * @memberof WithdrawRequest - */ - timeCreated: Timestamp; - /** - * - * @type {Network} - * @memberof WithdrawRequest - */ - network: Network; - /** - * - * @type {Symbol} - * @memberof WithdrawRequest - */ - symbol: Symbol; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - amount: string; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - to: string; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - comment?: string | null; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - status: WithdrawRequestStatusEnum; - /** - * - * @type {string} - * @memberof WithdrawRequest - */ - blockExplorerUrl?: string | null; -} - - -/** - * @export - */ -export const WithdrawRequestStatusEnum = { - PENDING: 'Pending', - CANCELED: 'Canceled', - APPROVED: 'Approved', - REJECTED: 'Rejected', - PROCCESSING: 'Proccessing', - FAILED: 'Failed', - SENT: 'Sent', - ACCOUNT_DEBITED: 'AccountDebited', - ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', - COMPLETED: 'Completed' -} as const; -export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; - - -/** - * Check if a given object implements the WithdrawRequest interface. - */ -export function instanceOfWithdrawRequest(value: object): value is WithdrawRequest { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('timeCreated' in value) || value['timeCreated'] === undefined) return false; - if (!('network' in value) || value['network'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('to' in value) || value['to'] === undefined) return false; - if (!('status' in value) || value['status'] === undefined) return false; - return true; -} - -export function WithdrawRequestFromJSON(json: any): WithdrawRequest { - return WithdrawRequestFromJSONTyped(json, false); -} - -export function WithdrawRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequest { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'timeCreated': TimestampFromJSON(json['timeCreated']), - 'network': NetworkFromJSON(json['network']), - 'symbol': SymbolFromJSON(json['symbol']), - 'amount': json['amount'], - 'to': json['to'], - 'comment': json['comment'] == null ? undefined : json['comment'], - 'status': json['status'], - 'blockExplorerUrl': json['blockExplorerUrl'] == null ? undefined : json['blockExplorerUrl'], - }; -} - -export function WithdrawRequestToJSON(json: any): WithdrawRequest { - return WithdrawRequestToJSONTyped(json, false); -} - -export function WithdrawRequestToJSONTyped(value?: WithdrawRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'timeCreated': TimestampToJSON(value['timeCreated']), - 'network': NetworkToJSON(value['network']), - 'symbol': SymbolToJSON(value['symbol']), - 'amount': value['amount'], - 'to': value['to'], - 'comment': value['comment'], - 'status': value['status'], - 'blockExplorerUrl': value['blockExplorerUrl'], - }; -} - diff --git a/src/wallet/src/models/WithdrawRequestBody.ts b/src/wallet/src/models/WithdrawRequestBody.ts deleted file mode 100644 index 1135324..0000000 --- a/src/wallet/src/models/WithdrawRequestBody.ts +++ /dev/null @@ -1,101 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface WithdrawRequestBody - */ -export interface WithdrawRequestBody { - /** - * Network to withdraw - * @type {string} - * @memberof WithdrawRequestBody - */ - network: string; - /** - * Coin symbol - * @type {string} - * @memberof WithdrawRequestBody - */ - symbol: string; - /** - * Amount to withdraw - * @type {string} - * @memberof WithdrawRequestBody - */ - amount: string; - /** - * Withdrawal address - * @type {string} - * @memberof WithdrawRequestBody - */ - address: string; - /** - * - * @type {string} - * @memberof WithdrawRequestBody - */ - comment?: string | null; -} - -/** - * Check if a given object implements the WithdrawRequestBody interface. - */ -export function instanceOfWithdrawRequestBody(value: object): value is WithdrawRequestBody { - if (!('network' in value) || value['network'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('address' in value) || value['address'] === undefined) return false; - return true; -} - -export function WithdrawRequestBodyFromJSON(json: any): WithdrawRequestBody { - return WithdrawRequestBodyFromJSONTyped(json, false); -} - -export function WithdrawRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestBody { - if (json == null) { - return json; - } - return { - - 'network': json['network'], - 'symbol': json['symbol'], - 'amount': json['amount'], - 'address': json['address'], - 'comment': json['comment'] == null ? undefined : json['comment'], - }; -} - -export function WithdrawRequestBodyToJSON(json: any): WithdrawRequestBody { - return WithdrawRequestBodyToJSONTyped(json, false); -} - -export function WithdrawRequestBodyToJSONTyped(value?: WithdrawRequestBody | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'network': value['network'], - 'symbol': value['symbol'], - 'amount': value['amount'], - 'address': value['address'], - 'comment': value['comment'], - }; -} - diff --git a/src/wallet/src/models/WithdrawRequestPreview.ts b/src/wallet/src/models/WithdrawRequestPreview.ts deleted file mode 100644 index a6081eb..0000000 --- a/src/wallet/src/models/WithdrawRequestPreview.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { Symbol } from './Symbol'; -import { - SymbolFromJSON, - SymbolFromJSONTyped, - SymbolToJSON, - SymbolToJSONTyped, -} from './Symbol'; -import type { Currency } from './Currency'; -import { - CurrencyFromJSON, - CurrencyFromJSONTyped, - CurrencyToJSON, - CurrencyToJSONTyped, -} from './Currency'; -import type { Network } from './Network'; -import { - NetworkFromJSON, - NetworkFromJSONTyped, - NetworkToJSON, - NetworkToJSONTyped, -} from './Network'; - -/** - * - * @export - * @interface WithdrawRequestPreview - */ -export interface WithdrawRequestPreview { - /** - * Withdrawal address - * @type {string} - * @memberof WithdrawRequestPreview - */ - address: string; - /** - * - * @type {Network} - * @memberof WithdrawRequestPreview - */ - network: Network; - /** - * - * @type {Symbol} - * @memberof WithdrawRequestPreview - */ - symbol: Symbol; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - amount: Currency; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - fee: Currency; - /** - * - * @type {Currency} - * @memberof WithdrawRequestPreview - */ - balanceAfterWithdraw: Currency; -} - - - -/** - * Check if a given object implements the WithdrawRequestPreview interface. - */ -export function instanceOfWithdrawRequestPreview(value: object): value is WithdrawRequestPreview { - if (!('address' in value) || value['address'] === undefined) return false; - if (!('network' in value) || value['network'] === undefined) return false; - if (!('symbol' in value) || value['symbol'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; - if (!('fee' in value) || value['fee'] === undefined) return false; - if (!('balanceAfterWithdraw' in value) || value['balanceAfterWithdraw'] === undefined) return false; - return true; -} - -export function WithdrawRequestPreviewFromJSON(json: any): WithdrawRequestPreview { - return WithdrawRequestPreviewFromJSONTyped(json, false); -} - -export function WithdrawRequestPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestPreview { - if (json == null) { - return json; - } - return { - - 'address': json['address'], - 'network': NetworkFromJSON(json['network']), - 'symbol': SymbolFromJSON(json['symbol']), - 'amount': CurrencyFromJSON(json['amount']), - 'fee': CurrencyFromJSON(json['fee']), - 'balanceAfterWithdraw': CurrencyFromJSON(json['balanceAfterWithdraw']), - }; -} - -export function WithdrawRequestPreviewToJSON(json: any): WithdrawRequestPreview { - return WithdrawRequestPreviewToJSONTyped(json, false); -} - -export function WithdrawRequestPreviewToJSONTyped(value?: WithdrawRequestPreview | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'address': value['address'], - 'network': NetworkToJSON(value['network']), - 'symbol': SymbolToJSON(value['symbol']), - 'amount': CurrencyToJSON(value['amount']), - 'fee': CurrencyToJSON(value['fee']), - 'balanceAfterWithdraw': CurrencyToJSON(value['balanceAfterWithdraw']), - }; -} - diff --git a/src/wallet/src/models/WithdrawRequestResponse.ts b/src/wallet/src/models/WithdrawRequestResponse.ts deleted file mode 100644 index ea36a13..0000000 --- a/src/wallet/src/models/WithdrawRequestResponse.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { WithdrawRequest } from './WithdrawRequest'; -import { - WithdrawRequestFromJSON, - WithdrawRequestFromJSONTyped, - WithdrawRequestToJSON, - WithdrawRequestToJSONTyped, -} from './WithdrawRequest'; - -/** - * - * @export - * @interface WithdrawRequestResponse - */ -export interface WithdrawRequestResponse { - /** - * - * @type {Array} - * @memberof WithdrawRequestResponse - */ - data: Array; -} - -/** - * Check if a given object implements the WithdrawRequestResponse interface. - */ -export function instanceOfWithdrawRequestResponse(value: object): value is WithdrawRequestResponse { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function WithdrawRequestResponseFromJSON(json: any): WithdrawRequestResponse { - return WithdrawRequestResponseFromJSONTyped(json, false); -} - -export function WithdrawRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestResponse { - if (json == null) { - return json; - } - return { - - 'data': ((json['data'] as Array).map(WithdrawRequestFromJSON)), - }; -} - -export function WithdrawRequestResponseToJSON(json: any): WithdrawRequestResponse { - return WithdrawRequestResponseToJSONTyped(json, false); -} - -export function WithdrawRequestResponseToJSONTyped(value?: WithdrawRequestResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': ((value['data'] as Array).map(WithdrawRequestToJSON)), - }; -} - diff --git a/src/wallet/src/models/WithdrawResponseBody.ts b/src/wallet/src/models/WithdrawResponseBody.ts deleted file mode 100644 index 7bab777..0000000 --- a/src/wallet/src/models/WithdrawResponseBody.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface WithdrawResponseBody - */ -export interface WithdrawResponseBody { - /** - * Withdrawal request ID - * @type {number} - * @memberof WithdrawResponseBody - */ - id: number; -} - -/** - * Check if a given object implements the WithdrawResponseBody interface. - */ -export function instanceOfWithdrawResponseBody(value: object): value is WithdrawResponseBody { - if (!('id' in value) || value['id'] === undefined) return false; - return true; -} - -export function WithdrawResponseBodyFromJSON(json: any): WithdrawResponseBody { - return WithdrawResponseBodyFromJSONTyped(json, false); -} - -export function WithdrawResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawResponseBody { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - }; -} - -export function WithdrawResponseBodyToJSON(json: any): WithdrawResponseBody { - return WithdrawResponseBodyToJSONTyped(json, false); -} - -export function WithdrawResponseBodyToJSONTyped(value?: WithdrawResponseBody | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - }; -} - diff --git a/src/wallet/src/models/index.ts b/src/wallet/src/models/index.ts deleted file mode 100644 index 9190b51..0000000 --- a/src/wallet/src/models/index.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './AdminRedemptionUpdateRequest'; -export * from './AuthTelegramRequest'; -export * from './Balance'; -export * from './BankInfo'; -export * from './BulletContent'; -export * from './Coin'; -export * from './CoinConfig'; -export * from './CoinResponse'; -export * from './CreateChildUserRequest'; -export * from './Currency'; -export * from './DepositResponse'; -export * from './DetailedLoanToValueOptions'; -export * from './EmailOtpSubmitRequest'; -export * from './ErrorDetail'; -export * from './ExternalTransaction'; -export * from './FriendPoints'; -export * from './FriendPointsResponse'; -export * from './HealthStatus'; -export * from './JwtResponse'; -export * from './KycConfirmRequest'; -export * from './KycRequest'; -export * from './KycResponse'; -export * from './LoanCreateRequest'; -export * from './LoanPlan'; -export * from './LoanPlanResponse'; -export * from './LoanToValueOptions'; -export * from './LoansResponse'; -export * from './LoansResponseList'; -export * from './LoginRequest'; -export * from './ModelError'; -export * from './Network'; -export * from './Payment'; -export * from './PaymentRequest'; -export * from './PhoneOtpSubmitRequest'; -export * from './ProfileResponse'; -export * from './Redemption'; -export * from './RedemptionRequest'; -export * from './RedemptionResponse'; -export * from './Referral'; -export * from './ReferralResponse'; -export * from './RepayLoanRequest'; -export * from './SignUpRequest'; -export * from './SimpleResponse'; -export * from './SwapRequest'; -export * from './SwapResponse'; -export * from './Symbol'; -export * from './Task'; -export * from './TaskResponse'; -export * from './TelegramProfile'; -export * from './Timestamp'; -export * from './Transaction'; -export * from './TransactionResponse'; -export * from './TransactionStatus'; -export * from './TransactionType'; -export * from './UpdateEmailRequest'; -export * from './UpdatePhoneRequest'; -export * from './User'; -export * from './UserError'; -export * from './WalletBalance'; -export * from './WithdrawRequest'; -export * from './WithdrawRequestBody'; -export * from './WithdrawRequestPreview'; -export * from './WithdrawRequestResponse'; -export * from './WithdrawResponseBody'; diff --git a/src/wallet/src/runtime.ts b/src/wallet/src/runtime.ts deleted file mode 100644 index 84e98fa..0000000 --- a/src/wallet/src/runtime.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Zarban Wallet API - * API for Zarban wallet services. - * - * The version of the OpenAPI document: 2.0.0 - * Contact: info@zarban.io - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string | Promise) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - }; - - let body: any; - if (isFormData(overriddenInit.body) - || (overriddenInit.body instanceof URLSearchParams) - || isBlob(overriddenInit.body)) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers['Content-Type'])) { - body = JSON.stringify(overriddenInit.body); - } else { - body = overriddenInit.body; - } - - const init: RequestInit = { - ...overriddenInit, - body - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob; -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string; -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/src/wallet/tsconfig.json b/src/wallet/tsconfig.json index 250280d..30dc264 100644 --- a/src/wallet/tsconfig.json +++ b/src/wallet/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { "declaration": true, - "target": "es6", + "target": "ES6", "module": "commonjs", - "moduleResolution": "node", + "noImplicitAny": true, "outDir": "dist", + "rootDir": ".", + "moduleResolution": "node", "typeRoots": [ "node_modules/@types" ] diff --git a/tsconfig.esm.json b/tsconfig.esm.json new file mode 100644 index 0000000..53692fe --- /dev/null +++ b/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index d4b2d44..cb14607 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "compilerOptions": { - "target": "ESNext", - "module": "CommonJS", - "lib": ["ESNext", "DOM"], + "target": "ES6", + "module": "commonjs", "moduleResolution": "node", "rootDir": "./src", "outDir": "./dist", @@ -11,7 +10,7 @@ "sourceMap": true, "importHelpers": true, "strict": true, - "noImplicitAny": true, + "noImplicitAny": false, "strictNullChecks": true, "strictFunctionTypes": true, "strictBindCallApply": true, @@ -25,7 +24,10 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "typeRoots": [ + "node_modules/@types" + ] }, "include": [ "src/**/*"